Juozas's Dump

A growing collection of anime, photos and any other kind of weird content.
[Tumblr|​X/Twitter|​Pillowfort|​Loforo|​Mastodon] [Random post]

 tags  journal  gallery  RSS

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
27.2.2023 14:35:54


reposted by demotivational memes
27.2.2023 14:32:45


reposted by fail kalesor
27.2.2023 14:29:42 reposted from demotivational

27.2.2023 14:28:36


reposted by larrygreensky severak raumfahrtagentur
26.2.2023 22:52:45

Electrocuted mouse


reposted by dit kalesor raumfahrtagentur
26.2.2023 21:13:08


reposted by kalesor looque
25.2.2023 10:37:41

Russian Missile Alert System Hacked

from https://www.youtube.com/watch?v=EYrRL0WQz5Q

24.2.2023 19:07:49


reposted by kalesor dit
23.2.2023 20:54:57

Zero Width Space

A vere useful where text needs to be wrapped and regular spaces cannot be used. The unicode for it is 0x200B, in linux it can be inserted by typing Ctrl+Shift+U with unicode characher code following right after that

This​is​a​test​paragraph​where​unicode​character​that​is​invisible​space​otherwise​called​zero​width​space​is​used.​It​wraps​around​the​edges​of​the​screen​and​/​or​parent​element​and​is​very​useful​in​other​places​.​Text​just​nicely​wraps​around​such​place​even​if​it​looks​weird​otherwise​.​I​used​it​in​my​blog​settings​so​my​social​links​would​wrap​around​nicely​where​needed.​Unicode​is​a​​very​useful​indeed.

Having a nbsp (0x00A0) in tags also returns weird results in when browsing and/or reading posts. It also can't be copy-pasted. It must be typed manually by using keyboard shortcut and hex code right after that.


reposted by test
23.2.2023 19:42:11 reposted from foobar123


reposted by telu
23.2.2023 19:41:45 reposted from kalesor

soupcycle

23.2.2023 19:38:48 reposted from gpkvt

23.2.2023 19:38:34 reposted from gpkvt

23.2.2023 19:36:45 reposted from desinteressement


reposted by telu
23.2.2023 19:35:26 reposted from desinteressement

from https://asset.soup.io/asset/14925/5426_9755_500.jpeg

2 comments
23.2.2023 23:59:57
that link, how do you do that
24.2.2023 06:40:06
dunno; this is just a repost of old post
23.2.2023 19:34:51 reposted from severak

23.2.2023 19:34:02 reposted from looque

from https://i.redd.it/315n6ijrqq3a1.jpg


reposted by looque
20.2.2023 19:30:06

20.2.2023 14:53:23 reposted from gpkvt

20.2.2023 14:52:29 reposted from gpkvt

20.2.2023 14:50:42 reposted from gpkvt

 
▼ see more... ▼
 

Timeline speed: 3.75 posts per day

Just 56 pages to end...

login