Thursday, 31. July 2025 Week 31
[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
Joel Dare explains Why Iām Writing Pure HTML & CSS in 2025.
Pure HTML is evergreen
HTML was invented by Tim Berners-Lee in 1991 as he worked on the World Wide Web at CERN. Some of the earliest examples of web pages are contained in the documentation on the WWW project.
These pages still render in modern web browsers.
(via)
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: *";
}