dev-linux
X11β
- 2022-02-24 Xlib transparent window with OpenGL support
This program demonstrates how an X11 window with OpenGL support can be drawn transparent.
Systemdβ
2022-10-26 systemd Shutdown Units - Poseidon Labs
Designing a system to shutdown gracefully can be tricky. In an ideal world, every service would be managed by a systemd unit. ExecStart would start a process that handles SIGTERM by stopping itself and an ExecStop would inform the process and block to gracefully stop the process and its resources.
But not all software stops gracefully or does a full teardown of what it set up. In this post, weβll look at systemdβs shutdown behavior and strategies for writing systemd units that perform custom cleanup tasks before shutdown.
Kioskβ
yes:
% startx /usr/bin/google-chrome --kiosk
(or use any other webbrowser)
you could also add this to your .xinitrc / .xsession file:
exec /usr/bin/google-chrome --kiosk
Bash Snippetsβ
- 2022-05-21 Bash trap for debugging bash scripts
trap 'echo "# $BASH_COMMAND";read' DEBUG
echo line1
echo line2
echo line3
echo "Hello World";
Toolsβ
Data processingβ
- 2022-03-07 TomWright/dasel: Select, put and delete data from JSON, TOML, YAML, XML and CSV files with a single tool. Supports conversion between formats and can be used as a Go package.
Comparable to jq / yq, but supports JSON, YAML, TOML, XML and CSV with zero runtime dependencies.