Sunday, 27. July 2025 Week 30
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
The Bash trick you need is:
trap 'echo "Exit status $? at line $LINENO from: $BASH_COMMAND"' ERR
(via)
Thursday, 24. July 2025 Week 30
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
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
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
STFU it's TGV Tuesday
(via)
Monday, 14. July 2025 Week 29
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
My feeds have the Access-Control-Allow-Origin: *
header, do yours? 🫵ðŸ˜
I answered the above shoutout from David Bushell by adding the following statement to my nginx config:
if ( $uri ~* ^/rss\.xml$ ) {
more_set_headers "Access-Control-Allow-Origin: *";
}
Thursday, 10. July 2025 Week 28
The slides from the Agentic Coding presentation inspired my inner frontend developer and I created a new style for the blog. ✨
Things are still a bit rough, not everything is fitting nicely yet.
General functionality should work, but please let me know if you encounter something that is broken.
I researched various CSS tricks to achieve the design change without changing any HTML.
After recreating the PDF style in CSS, I double-checked the origin of the presentation layout.
And turns out that it is based on the unnamed community theme created by Elio Struyf for Slidev. 😃
Monday, 7. July 2025 Week 28
In spirit of the More Purple Links, Please article, I've added some purple color to the visited link style on the blog.
To blend in with the existing text color, I've used the color-mix() CSS function:
:root {
--body-text-color: #454545;
--body-visited-link-color: color-mix(in srgb, var(--body-text-color), #518 75%);
}
a:visited {
color: var(--body-visited-link-color);
text-decoration-color: var(--body-visited-link-color);
}