Tuesday, August 25, 2009

svn: Directory .svn containing working copy admin area is missing

While working with Subversion, I removed a directory (specifically .sass-cache/) after placing it under version control without knowledge. Subversion failed to commit. I had to forcefully remove the already removed file to proceed.

svn remove --force .sass-cache/

Thursday, May 14, 2009

SSH Hosts

Why should ssh shell.example.com -p 2345 -l example be used when you can use ssh shell?

Create $HOME/.ssh/config file if it does not already exist. Populate it with the following data:

Host shell
User example
Hostname shell.example.com
Port 2345

That is it! You can now just ssh shell.

Thursday, December 25, 2008

Finding the latest linux kernel version

I always like to run the latest linux kernel. I found that I kept checking http://kernel.org/ at regular intervals. Thus this script was born: latest_kernel.pl.

Wednesday, December 24, 2008

WWW::Rapidshare::Free

Just released WWW::Rapidshare::Free Perl module for all free users of Rapidshare. Check out the example directory for a sample script. You can expect a GUI soon!

Tuesday, December 23, 2008

Christmas Tree

perl -MAcme::POE::Tree -e 'Acme::POE::Tree->new()->run()'

Wednesday, November 26, 2008

Checking External (WAN) IP

You can use:


curl whatismyip.org
wget -qO - whatismyip.org

There are many other ways too.

Tuesday, November 11, 2008

General Purpose Bit Flag not being set

This is an unreported bug in the Archive::Zip Perl module. This means that the level of compression will not be stored in the archives that are created, which may cause trouble with some extractors while inflating. PKWARE's application note on the .Zip file format states that these flags should be set.

Please see: http://use.perl.org/~alanhaggai/journal/37727 and http://use.perl.org/~alanhaggai/journal/37735.