get the contents of whole site like some wiki or wikia

2014-02-24 1 min read Learning Uncategorized
For wikis and wikia, generally if you are trying to get some url mirror, then websucker.py 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/websucker. Continue reading

cksum – compare for multiple files.

2013-04-30 1 min read Fedora Learning Linux
If you have to compare cksum for couple of files, the you know how cumbersome it is. So, I wrote a simple script, wherein you can create a file called cksums in the current directory and copy paste the result of “**cksums ***” into this file, and then run this script. Cool 🙂 #!/bin/bash - #=============================================================================== # # FILE: checkcksums.sh # # USAGE: ./checkcksums.sh # # DESCRIPTION: Compare cksums of multiple files. Continue reading

viewvc – serve current directory in web interface.

2013-02-18 1 min read Fedora
Here is the description of viewvc: ViewVC is a browser interface for CVS and Subversion version control repositories. It generates templatized HTML to present navigable directory, revision, and change log listings. It can display specific versions of files as well as diffs between those versions. Basically, ViewVC provides the bulk of the report-like functionality you expect out of your version control tool, but much more prettily than the average textual command-line program output. Continue reading

Script to get yourself some conkyrc files

2011-10-08 1 min read Fedora Learning Linux
Continuing from where we left, here is a script that can do all this for you 🙂 curl http://ubuntuforums.org/showthread.php?t=281865\&page=$i | sed -n '/\\/pr/ p'| sed '// d'| sed 's##\n-----------------------------------\n\n\n#' >conkyrc dos2unix conkyrc cp conkyrc .test while [ $(wc -l .test|sed 's/[^0-9]//g') != 0 ] do sed -n '1,/------------------------/ p' .test|sed '$d' >conkyrc.$count diff .test conkyrc.$count |sed 's/^<.//'|sed '1, /---------------------/ d;2d'>.test ((count++)) done This will create couple of conkyrc.files in the current directory. Continue reading