Cont: Get yourself some more conkyrc files.

2011-10-12 1 min read bash Learning Linux
Last time we got ourselves some conkyrc files from the ubuntu forums. But that scripts gets the files only from the First page of the thread. Lets extend this further and get the script to get all the conkyrc files. There are some 1048 pages in the thread, I am showing pages 1 to 3 but you can change 3 to whatever number you want 🙂 count=0 for i in {1. 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

debug call function() to debug a function in vim

2011-09-04 1 min read Vim Tips
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. Continue reading

GPG error on N900 when doing update on command line

2011-06-22 1 min read Maemo N900
Image via Wikipedia If you have added some extra repositories to your Nokia N900 and are trying to do something ( like update, install or any other apt-get operation) you might see some errors or warnings related to the GPG keys. The errors would come because the Public keys for the reporisitories are not present in the gpg database 🙂 Cool, now you know the reason, but what to do… Add them as below: Continue reading

vim autocomplete – automagically without tab.

2011-04-16 1 min read Learning Linux Vim Tips
Lets first do the setup in one line. Get my vim script downloader. Use the script to add the script with script ID : :1879 (vim-autocomplpop) to your list of plugins for vim and you are done. If you are using snipmate, then make sure that you read the description of the plugin to add the required lines to the vimrc file to get the full functionality. You would love to type henceforth in your favourite editor. Continue reading

what is vim in 6Kb..

2011-03-16 1 min read Learning Linux Vim Tips
If you thought that vim is very bloated and nothing abuot this editor can be small, then you are not alone. I was myself in the same bandwagon. Well, I never thought that there could be anything about vim that can be explained in Kb’s, lest alone the complete vim features. But looks like vim.org had thought about this and thus came up with this. And here is the direct link to the vim in 6kb in English. Continue reading

All in one solution for all the scripts of vim from vim.org

2011-03-09 9 min read bash Fedora Learning Linux Vim Tips
For quite sometime now, I was looking for some console based program which would help me get the scripts from vim.org. A simple solution would have been to do a wget for the scripts. But since there are so many scripts coming up daily and with a need to search based on script ID and name of the script, I thought better to write a script that can do all of those things. Continue reading
Older posts Newer posts