Configure Vim to write Hebrew text

If you want your Vim to be able to read and write Hebrew text, open up your .vimrc file and paste the following: set guifont=-Hebrew-Bible-Medium-R-Normal–16-160-75-75-M-80-ISO8859-8

Lock your KDE screen from the command line

Did you know you can lock your current KDE screen by using the command line? For the 3.x series use dcop kdesktop KScreensaverIface lock and for KDE 4.x try qdbus org.freedesktop.ScreenSaver /ScreenSaver Lock With the help of these you should be able to craft a simple shell script that will lock your screen at given… Read More »

Batch convert images from the command line

A simple way to convert images in Linux is by using the command line: convert image.jpg newImage.gif will convert the JPG file to a GIF file. convert -quality 78% file.jpg will set the quality of the JPEG file to 78% convert -resize 800×600 file.jpg will resize the image.Alternatively, if you wish to use a GUI… Read More »

Make the lights of your NIC blink

If you work on a large network and you get sent to the server room to check out a certain network card, you might get lost in the multitude of network hardware. To find your certain NIC, SSH to the machine in question and do a sudo ethtool -o eth0 The lights of the network card should start… Read More »