get the contents of whole site like some wiki or wikia

For wikis and wikia, generally if you are trying to get some url mirror, then is an excellent option. This script is in the python sources so, to get this tool,

yumdownloader --source python

Install the rpm downloaded in current directory and then go to ~/rpmbuild/SOUURCES.  You should find a Python-*.tar.xz file here, just extract with

tar xvf Python*.tar.xz

and there you go, you should find the tool in Tools/webchecker/

Enhanced by Zemanta

debug call function() to debug a function in vim

Drawn in Autosketch + pasting in words from Excel
Image via Wikipedia

Have you ever wished that you could either see what is going on initially at the vim startup like you could do with C program in the gdm mode, but really did not want to go through gdb. Or rather you sometime felt that some function defined by some plugin is causing some issue and you wanted to debug just that function. Well you need not wish anymore, the functionality is already there.


If you want to debut a function then you can simply call the function in debug mode, while you are in vim mode.

 :debug call()

You can use continue/next/quit and finish like in any other debugger out there in the wild.

And if you wanted to debug the startup then you can do this :

vim -D


You can get more info here.


Enhanced by Zemanta

prints line numbers

$ nl<filename>

perl -ne \’print \”$. – $_\”\’ $1
grep -n . $1
perl -pe \’print \”$. \”\’ $1
cat -n $1


by David Winterbottom (