Jan-Philipp Litza

Blog - Page 3

GPG attacks

While communicating with the CCC office, I was informed that they couldn’t send me GPG encrypted mails because of the error “GPGME: Ambiguous name”. Of course there is more than one key if you search for my mail address (I had other keys in the past), but they also quoted my correct key ID.

Subtle

I just stumbled across this great coding error of mine and thought I could share it while waiting for the corrected program to finish its run.

Dotfile repository

Something that I should have done waaaay earlier: I finally collected some of the configuration files that I would like to have on every computer (and that I mostly only stole from someone else myself) into a dotfile repository for me to keep in sync and everybody else to copy and use ad libitum.

Terminal bell after long running commands

Sometimes I wonder “Why on earth didn’t I think of this before?”. Today was such a day, when I thought: Why not get notified automatically when long running commands in a terminal finish? Actually, there’s a mechanism in the window manager for highlighting windows needing attention. Why shouldn’t a terminal prompt after a long running command be such a situation?

Sandboxing processes

Yesterday, my interest in sandboxing a program I didn’t fully trust finally surpassed my laziness to look at namespaces again. And after a few hours of coding, I created a small script that uses unshare to encapsulate the newly launched process in new namespaces of all kinds (not much work there) and hardens the filesystem so that effectively, (hopefully) the only writable persistent directory is $PWD, the process sees a minimal /dev and fresh copies of temporary filesystems. In case you are interested in the script, here it is: