last_updated: 2026-03-03

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

services:
  foo:
    # exposes :8080
    image: tenzer/http-echo-test

  bar:
    image: curlimages/curl
    command: [ 'curl', '-fSsL', 'localhost:8080' ]
    network_mode: service:foo
    depends_on:
      - foo

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.

Replacing rofimoji with emoji-picker#

fdw/rofimoji served me well for well over a year, but one itch always remained: I wanted a grid.

Today I replaced it with my own emoji-picker:

I still keep using rofimoji for its complete unicode list (bound to Ctrl+Alt+u):

~/.local/bin/rofimoji --files all

Neovim :TermExec with toggleterm.nvim#

akinsho/toggleterm.nvim

Example ad-hoc mapping to build Caddy:

:map <F5> :w<bar>:TermExec cmd="docker-compose up -d --build --remove-orphans --wait caddy"<CR>

That, to me, is the true power of (neo)vim: You can adapt your workflow instantly.

Thunar: aunpack instead of “extract to”#

Remove context menu “Extract here”, “Extract to”:

sudo apt remove thunar-archive-plugin

Add custom action:

  • Name: aunpack

  • Command: aunpack %F

  • Icon: emblem-package

  • File Pattern: *.zip;*.gz;*.bz2;*.rar

  • Other Files

See ~/.config/Thunar/uca.xml.

Django Packages (djangopackages.org)#

I like browsing software lists, especially lists like Django Packages : Most Liked Packages. 🤓 Some things that are either gems I know or things that look promising:

Django Projects on Github#

Github search “django language:Python stars:>100 is:public archived:false”

mise registry#