Hack

Jannich Brendle on March 1st, 2010

Some time ago I read about random numbers and the linux kernel. The problem was (and still is) that the linux kernel uses things like network activity and keyboard/mouse interrupts to gather entropy for its random number generator. So.. What is entropy? Entropy is a measure of the uncertainty associated with a random variable. This [...]

Continue reading about Improving randomness and entropy in ubuntu 9.10

Jannich Brendle on December 3rd, 2009

This is a small shellscript I wrote, to ease starting irssi on my VPS:
#!/bin/sh
if screen -ls | grep -q IRC ; then
msn_pid=$(screen -ls | grep IRC | cut -f1 -d. | sed ’s/\t//’)
screen -r -d $msn_pid.IRC
else
screen -S IRC irssi
fi
If irssi is already running in screen, it resumes the session, otherwise it will start a new [...]

Continue reading about A little tip if you’re using IRSSI and screen

Jannich Brendle on October 28th, 2009

I was reading a blog post about adjusting the level of swapping done by the linux kernel, and I wrote a simple shell script to adjust this level, based on the load of the machine.

Continue reading about Autoadjusting Linux VM Swappiness