July 2010 Archives

2010-07-24 17:10:36

yaydl 1.5.2

yaydl 1.5.2 fixes the support for youtube....


Posted by haui | Permanent Link | Categories: projects

2010-07-20 22:08:42

Bandwidth monitors

There are many tools available, that allow you to monitor (among other things) the current downstream of your internet connection. Some of them, like dstat and bwm-ng are handy console applications, whereas others integrate nicely into your desktop. Two popular examples for this would be conky or gkrellm.
So, in general there's no real need for the following bash one-liner, unless you're just an ordinary user working on some poorly equipped linux box which doesn't offer any of the tools mentioned above. In that case, you'll be glad to have a dirty solution like the following available:

r=$(cat /sys/class/net/eth0/statistics/rx_bytes) ; while [ 1 ]; do n=$(cat /sys/class/net/eth0/statistics/rx_bytes); d=$(((n-r) / 1024 ));r=$n; echo "$d KB/s"; sleep 1;done

There is no need to mention,that eth0 must be replaced by your primary interface's name.

Posted by haui | Permanent Link | Categories: linux

2010-07-18 21:24:27

Remove Exif data

Sometimes it's advantageous to remove Exif metadata from image files, for example when posting images online. Fortunately, that's not a big deal since we're using linux:

mogrify -strip image.jpg
...or if you want to process more files:
mogrify -strip *.jpg

Posted by haui | Permanent Link | Categories: linux

2010-07-18 21:04:55

Important notice!!11


Posted by haui | Permanent Link | Categories: misc