Things I've Learned

Switch keymaps on the fly in Emacs

C-\ has made it 10x easier to write my Russian homework. Even evil-mode works!

TODO Escaping markup in Org Mode with zero width spaces

Concatonate .wav files with ffmpeg

If you rip audiobook cds then you'll inevitably end up with a bunch of .wav files that you'll want to concatonate together. To do this with ffmpeg, just create a file with the paths to the tracks like list.txt here:

file 'track1.wav'
file 'track2.wav'
file 'track3.wav'
...

Then stitch them together:

ffmpeg -f concat -i list.txt -c copy audiobook.wav  

This also works with mp3 files, and probably other formats as well.

Backlight on the Thinkpad x230

If you run Linux or BSD on a Thinkpad x230, and you're unable to adjust the backlight, try appending acpi_osi='!Windows 2012' to your boot options. In GNU Grub this means editing your /etc/defaults/grub/ like so:

...
GRUB_CMDLINE_LINUX_DEFAULT="...existing options... acpi_osi='!Windows 2012'"
...

… and regenerating your Grub config with grub-mkconfig -o /boot/grub/grub.cfg.

Last Modified: 2021-01-04 Mon 18:04