Provides random music genres
CLI password safe
Interface to EFA-based itinerary services
Interface to HAFAS-based arrival/departure monitors
Interface to the Deutsche Bahn IRIS arrival/departure monitor
Interface to URA-based realtime departure monitors
Interface to EFA-based departure monitors
vcs-home inspired dotfile manager
Electrocardiograph-like graphical and audible ping
save and restore environment variables
imlib2 based image viewer
Publish multiple MQTT messages at once
Firmware and Hardware
8x8 LED board with audio-based programmer
Light and power remote control
USB ↔ I²C adapter
These projects are neither developed nor maintained any more. Some do offer basic functionality, though.
Icinga1 Commandline Interface
Project status overview
automated mirrorer for webcomics and image galleries
Create thumbnail index for a set of images
Whitelist remote commands via ssh config
To increase flash lifetime and avoid problems with unexpected power cuts, I run all of my embedded Linux systems from a readonly root filesystem. This is a moving target: Depending on the software in use as well as the version and configuration of systemd and userland software, different adjustments may be needed.
I have created a readonly linux reference page containing all tweaks I
know of at the moment, which are mostly tmpfs mounts and
entries. I'll update it when I run by something new.
Preseeding is a handy way of automating Debian installations. With a proper preseed.cfg, a Debian installation can run completely unattended in about 10 minutes, including setup of users, sudo and SSH keys.
For future reference, here are the things I found helpful
custom post-installation commands
d-i preseed/late_command executes arbitrary commands after the installation
is completed. I use this to set up SSH keys and sudo, like so:
in-target mkdir -p /root/.ssh /home/derf/.ssh; \ in-target wget -O /root/.ssh/authorized_keys https://.../keys-root; \ in-target wget -O /home/derf/.ssh/authorized_keys https://.../keys; \ in-target chmod 700 /root/.ssh /home/derf/.ssh; \ in-target chmod 600 /root/.ssh/authorized_keys /home/derf/.ssh/authorized_keys; \ in-target chown -R derf:derf /home/derf/.ssh; \ apt-install sudo; in-target adduser derf sudo
Adding preseed.cfg to virt-install images
--initrd-inject embeds arbitrary files into the root of the installation
image. So, for preseeding, just add
--initrd-inject .../preseed.cfg to your
Adding preseed.cfg to USB images (with UEFI support)
This is a bit more tricky. Basically: Download and unpack ISO, inject preseed.cfg into initrd, refresh md5sums, rebuild ISO and add UEFI support.
The following script should do the job for most amd64 systems.
#!/bin/sh set -e ISO="$1" WD="$(mktemp -d)" 7z x -o$WD $ISO cd $WD gunzip install.amd/initrd.gz cp /tmp/preseed.cfg . echo preseed.cfg | cpio -o -H newc -A -F install.amd/initrd rm preseed.cfg gzip install.amd/initrd find -follow -type f -print0 | xargs --null md5sum > md5sum.txt cd xorriso -as mkisofs -o $ISO -isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin \ -c isolinux/boot.cat -b isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 \ -boot-info-table -eltorito-alt-boot -e boot/grub/efi.img -no-emul-boot \ -isohybrid-gpt-basdat $WD
findmnt --raw --noheadings --output options --target SOME_DIRECTORY | grep -qE '(^|,)ro($|,)'
findmntis a handy alternative to
mountwhen writing scripts
- SOME_DIRECTORY does not have to correspond to a mountpoint. If it doesn't, findmnt will traverse its parent directories until it finds the corresponding filesystem / mountpoint.
- a simple
grep rowould also match options like
errors=remount-ro, so we make sure to only match the single
rooption. It must be delimited by commas or the start/end of the option string.
I have a set of maildirs (one for each mailing list / other context) and want to know which of them contains unread mail without firing up my MUA.
Luckily, this is easy to do on the commandline without even looking at mail contents, as there's (mostly?) two kinds of unread mail:
- new and unprocessed mail. These messages are stored in
Maildir/new, so if there's anything in there, it's an unread mail
- new but no longer "Recent" mail. These messages have not been read yet, but
have already been transferred to a MUA using a Read-Write operation, causing
them to be marked as no longer new on the server side. They are stored in
Maildir/curalongside read mail, but do not have the "Seen" (S) flag set.
This is easy to check with zsh globbing:
new/*(N) expands to a non-empty
list if new and unprocessed mail is present, and
cur/*~*,*S*(N) expands to
a non-empty list if old but unread mail is present. Note that it requires
extended_glob zsh option to be set.
TIL: If esptool can successfully communicate with an ESP8266, but the chip seems stone dead otherwise (i.e., no flashed programs work), it may be due to a wrong flash mode.
- The ESP8266 bootloader sends some debug output at 74880 baud after each reset.
- This baud rate is not supported by screen – miniterm.py (provided by python-serial) can handle it just fine, though.
- If it complains about a “
csum err”, you probably flashed the wrong file / at the wrong address / used the wrong flash mode (there are differences e.g. between various NodeMCU / D1 mini shipments!)
esptool -fm doutseems to be a safe (but slow) fallback
- Fix miscalculated delays of prematurely terminating trains
- Lookahead and lookbehind are now interpreted with 1-minute granularity. Note that this also affects the default lookahead.
- Fix floating point-related test failures on some architectures
- Performance improvements
- Distinguish between cancelled/additional arrivals and departures
Travel::Status::DE::IRIS::Result: New accessors
is_cancellednow only returns true if both arrival and departure have been cancelled.
- Remove support for Vorarlberger Verkehrsverbund (VVV) backend (no longer working, apparently superseded by non-EFA software)
- Update EFA URLs for Verkehrsverbund Rhein-Ruhr (VRR2) and Verkehrsverbund Rhein-Neckar (VRN) backends
- Add support for Braunschweiger Verkehrs-GmbH (BSVG)