8.3.2023 16:51:22

7.3.2023 15:58:25

7.3.2023 15:56:02


reposted by kalesor
1.3.2023 20:51:12

1.3.2023 20:50:52


reposted by raumfahrtagentur
1.3.2023 20:50:41


reposted by kalesor
1.3.2023 20:50:31

1.3.2023 20:49:58


reposted by kalesor dit telu
1.3.2023 20:49:02


reposted by kalesor telu
1.3.2023 20:48:46


reposted by kalesor
1.3.2023 20:48:29 reposted from desinteressement

1.3.2023 20:48:22

1.3.2023 20:48:02


reposted by tank
1.3.2023 20:47:46

1.3.2023 20:45:33 reposted from juozaspo

1.3.2023 18:19:59

1 comments
1.3.2023 20:45:57
the hobbits the hobbits the hobbits the hobbits to Isengard to Isengard
1.3.2023 18:06:32


reposted by looque
28.2.2023 21:47:08

Oneline random image html file generator

The command below generates a html file pointing to 100 random image files found in the directory tree of the working directory. You can adjust it to your needs by putting the paths you want to exclude or adding more extensions to placeholders as shown below. The output file shows images centered on screen, with max widths no larger than screen.

echo -e "<html>\n<head>\n<title>Random Images</title>\n</head>\n<style>\nimg {max-width:100%; height:auto}\nbody{text-align:center}\n</style>\n<body>\n$(find -type f -not \( -ipath "./paths/*" -or -ipath "./to/*" -or -ipath "./exclude/*" \) -and \( -iname "*.jpg" -or -iname "*.jpeg" -or -iname "*.png" -or -iname "*.gif" -or -iname "*.webp" -or -iname "*.bmp" \) | cut -d\/ -f2- | sort | shuf -n 100 | tr '\n' '\0' | xargs -0 -I{} echo "<div style=\"margin:auto\"><img title=\"{}\" src=\"$(realpath "{}")\"></div>")</body>\n<html>" > /tmp/random.htm

The output file is saved as /tmp/random.htm


reposted by linux
 
▼ see more... ▼