Displaying posts tagged: linux

Persec python script

No Comments
A while ago I wrote a python script that does a similar job to GNU's watch command. You use it like so: ./persec.py [--interval=<n>] <command> so for example ./persec.py ifconfig Now in a similar way to watch, it executes the command every second, and highlights the differences between each execution. However, in addition to this it ...

Humble Indie Bundle md5sums

No Comments
I just purchased the Humble Indie Bundle, 5 games which run on Windows, Linux and Mac. They kindly offered md5 hashes, however they weren't in a convenient format, so I created a md5sums file. 187287db6226ef6a306a4cd0cfa8dd45 *Aquaria111.2008.12.12.exe 8b24ddeeb553e028bbd501102f891cc2 *aquaria-lnx-humble-bundle.mojo.run 336d89eb431e0b00535a2b50146c579d *WorldOfGooSetup.1.30.exe f5afa40893d0fbcc37885191404f6d8c *WorldOfGooSetup.1.41.tar.gz b373132f6e78665f1076752b038a8218 *gish153-1.tar.gz 94e82d53e2104914f19ec97f7cf5da42 *gish1531.zip 41ea2e41fe42c40b5ad017ae1afb45c7 *lugaru-full-linux-x86-1.0c.bin d40d4076ed3ffa2a9bc9913202c55a06 *lugaru-windows.zip 56060bb550e0cd7e90bc7bc60d7c4c23 *penumbra_overture_1.1.exe 539567b590cf53e65a8e8f1b2bc728b3 *penumbra_overture_1.1.sh and for ...

VMWare breaks shift key

No Comments
I came into my office today to find that my keyboard would no longer type capital letters. The shift, caps lock, and even num lock keys seemed to be broken. After a quick WTF it was pointed out to me that VMWare occasionally does this to Linux machines. Thanks to Matt who showed me a quick ...

Redirect local traffic to a web cache with iptables

No Comments
Very occasionally I come across an Linux application that does not respect the http_proxy variable. This stops me from using the application at university as they forbid traffic on port 80 unless it goes via their webcache. So today I came up with a hack of a solution that involves iptables: # IP address and port ...

Installing packages into your user directory

No Comments
Today I had the need to install some FreeBSD and Ubuntu packages inside my home directory because I did not have root permissions to install them. It was quite simple to install the packages on FreeBSD pkg_add -rRP /home/bramp nano Where nano is the name of the package I wanted. I should point out you don't ...