quite random domain name

debugging ANTLR4 Lexer

grun MyLexer tokens -tokens < testfile

invokes the TestRig on the Lexer spilling out the tokens it recognized. Example stdout:


Format of this output: A list of tokens, where ...

grep -f

grep -f patterns.txt is horribly slow. Even for l in cat patterns.txt ; do grep $l ; done is magnitudes faster.

TIL - htop graphs

Today I learned: htop can show value history of the meters in the top bar: Go to configure them, then select any which has a [mode] in square brackets behind it - F4 toggles that mode, including live preview of plain number view, ascii-graphed history, and "LED" which are big ascii-arted ...

Geld ist Müll

Hat so eine Papierverbrennungs/-recyclingsanlage eigentlich nen Modul um weggeschmissenes Papiergeld rauszufiltern? So den Geburtstagsumschlag mit 200€ von Oma und so? Oder ist das einfach weg?

TIL - Ofen

Heute gelernt: Wenn der Ofen nicht an geht, die Herdplatten aber tun, einfach mal die integrierte Uhr stellen - so als kleiner Schubs in Richtung "Strom ist wieder an, und wir bauen nicht mehr. Darfst weitermachen."


Brick It!

How to destroy your linux system… in multiple acts:

  1. Brick your shell:

Lol, Unicode…

Some Unicode findings:

  • 🍝 U+1F35D : SPAGHETTI

Migrating a router from DD-WRT to OpenWRT

How to exchange the DD-WRT firmware on your router by OpenWRT.

my Router: TL-WR1043ND Version (DE)v1.0

Old firmware: DD-WRT r19519

New firmware: OpenWRT "Attitude Adjustment" 12.09 Beta 2, filename: openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-factory.bin

First revert back to the original TP-Link firmware[1]. Use the Web flash interface and a ...

quick'n'dirty PXE

… on Archlinux:

wget -O /var/ftpd/ipxe.pxe http://releng.archlinux.org/pxeboot/
pacman -S tftp-hpa
sudo in.tftpd -L

append to dnsmasq-config on your dhcp-server:


E135 backlight

Disclaimer: this article is rather old, and does not reflect linux' current state of brightness on the Thinkpad E135

first, it was fixed on maximum. no tool could change it, /sys/class/backlight/acpi_video0/brightness could be written to and changed, but the backlight didn't. Tried the solutions in ...

KMix with multiple identically named master channels

On the Thinkpad Edge E135, ALSA recognizes 2 sound cards (0 and 1), of which #1 is the analog one I want to use and control - but not the default one. alsamixer can control it via selecting the entries in its F6 menu, but still it's not the default ...

32bit wine-prefixes

tl;dr: WINEARCH=win32 creates a 32bit prefix, to confirm check if $WINEPREFIX/drive_c/Program Files (x86) exists

A wine prefix is a directory containing a lot of the files wine needs to simulate a windows installation. The "standard" wine prefix ~/.wine is used whenever you don't specify a ...