last_updated: 2026-02-18

26-02#

Generate big PDF file (20 MB, 50 MB)#

Create a PDF containing an image with N pixels. Each pixel has 3 bytes (RGB). For 20MB [1], you need 20*1024*1024/3 pixels.

make_pdf() {
  meg=$1
  convert -size 1024x$(( $meg * 1024 / 3)) xc:white +noise Random ${meg}M.pdf
  ls -lh ${meg}M.pdf
}

make_pdf 20
make_pdf 50

Replacing xfce4-screenshooter with maim#

My xfce4-screenshooter refused to copy to clipboard. Maybe xfsettingsd, maybe clipman according to https://bbs.archlinux.org/viewtopic.php?pid=2161470#p2161470.

Flameshot looked good, but did not return focus to my terminal after being called with flameshot gui --clipboard --accept-on-select. It also does too much. Further, it cannot select a window.

maim is simpler. I like it.

Before:

xfce4-screenshooter --region --clipboard

After:

maim --select | clipboard

docker-compose network_mode: service:foo#

https://docs.docker.com/reference/compose-file/services/#network_mode

Same network NS as service called foo, thus:

curl localhost
# returns response from foo service

flatpak update for graphics driver#

After updating nvidia driver on the host, run flatpak update --assumeyes.

Youtube#

Wie erwartet: Jetzt ist die Zeit gekommen, in der Youtube Leuten wir mir, die mit Adblock daher kommen, den Hahn zudreht:

Sign in to confirm you’re not a bot This helps protect our community. Learn more

Spannend! Ich wusste noch gar nicht, dass “community” und “money” [2] synonym sind.