Thursday, 31. July 2025 Week 31

Serious coding with AI in 2025

[Keep] a very tight leash on this new over-eager junior intern savant with encyclopedic knowledge of software, but who also bullshits you all the time, has an over-abundance of courage and shows little to no taste for good code. And emphasis on being slow, defensive, careful, paranoid, and on always taking the inline learning opportunity, not delegating.

— Andrej Karpathy, twitter

(via)

Tuesday, 29. July 2025 Week 31
Sunday, 27. July 2025 Week 30

pgp-expiry-monitor now skips revoked subkeys

I revoked a signing subkey of my GPG key.
The expiry date of this subkey will no longer be updated (as the key is revoked).
But I plan to keep the revoked subkey itself in my public key (so people can still associate old signatures with me).

The pgp-expiry-monitor would now alert for all eternity on the expiry date once it passes.
To avoid this, I now added functionality to read the revocation status of a subkey and skip the expiry date check if it has been revoked.

You can install the newest version of pgp-expiry-monitor from GitHub:

go install github.com/x-way/pgp-expiry-monitor@latest
Saturday, 26. July 2025 Week 30
Thursday, 24. July 2025 Week 30

Taking screenshots with GNU Screen

In the tmux and gist and trying to make students happier article, Jan-Piet Mens explains how to take screenshots with tmux.

As I still haven't migrated from Screen to tmux, I was wondering if this is also possible in Screen.
And turns out that there is indeed a similar mechanism that can be used in Screen.

By using the hardcopy command, Screen can write the current scrollback buffer to a file.
This can also be done for a detached session:

screen -X hardcopy -h /tmp/myscreenshot.txt

It's also possible to specify an explicit session and pane to use:

screen -p 0 -S 12345.pts-0.rocky -X hardcopy -h /tmp/myscreenshot.txt
Wednesday, 23. July 2025 Week 30

Poor man's docker autoheal

Turns out docker only restarts unhealthy containers when running in a Docker Swarm setup.

For other setups, the following crontab entry provides a quick and dirty alternative that checks for unhealthy containers and restarts them.

*/15 * * * * /usr/bin/docker ps -q -f health=unhealthy | /usr/bin/xargs --no-run-if-empty -L 1 /usr/bin/docker restart
Saturday, 19. July 2025 Week 29

List past docker events

By providing the --since parameter, we can list the past docker events:

docker events --since=60m

This can be further combined with --filter parameters to drill down to specific events of a specific container:

docker events --filter event=restart --since=24h --filter container=<containername>
Tuesday, 15. July 2025 Week 29
Monday, 14. July 2025 Week 29

Classic Web

Classic Web – Screenshots of classic websites and blogs from Dot-Com, Web 2.0 and the 2010s.

Classic Web is a fun account to follow on Mastodon. Curator Richard MacManus posts half a dozen or so screenshots per day of, well, classic websites from the late 1990s and 2000s. Makes me feel old and young at the same time.

(via)

Saturday, 12. July 2025 Week 28