Manually remove all the duplicate bookmarks in Firefox

2011-09-13 1 min read Firefox
Image by Getty Images via @daylife I was trying to install the duplicate Bookmark remover for the Firefox but for some reasons, was not able to install it. That apart, the point is that I was trying to get a program to do this for me rather than a plugin. So, after some search, finally I found here. This is a ruby script. The script requires ruby gems-json for doing this. Continue reading

CR Post to Ping.fm not working – resolved.

2011-06-02 1 min read Wordpress
Last couple of months I was having a tough time getting the plugins in my wordpress to work with the ping.fm service. This is the only service that I rely on to post my blogs. So, basically I was left with no mechanism to publish my new posts 🙁 Now thanks to this post I am able to use the plugin again and thus update my status at multiple places again. Continue reading

cd across parallel directories

2011-03-14 1 min read bash Linux
Image via Wikipedia Here is a simple and fast way to cd across parallel directory. 1 <td> <div class="text codecolorer"> cd ${PWD/test/actual} </div> </td> </tr> Related articles Linux command line tips: wget (ghacks.net) Article Directory Submissions (tjantunen.com) Article Directory Submissions (cash-bandit.com) Create a repository from your fedora DVD (annupandey.wordpress.com)

configuration for afraid-dyndns on Fedora and other similar distro.

2011-03-04 1 min read Fedora Linux
First install afraid-dyndns with the command: 1 <td> <div class="text codecolorer"> sudo yum install afraid-dyndns </div> </td> </tr> Now open the configuration file /etc/afraid-dyndns.cfg and we need to change the following: Notify = root@localhost # leave empty to suppress notifications CacheFile = /var/cache/afraid-dyndns/IP AccountHash = For the Account hash, head over to http://freedns.afraid.org/api/ login and then click one of the XML or the ASCII links there. Once the page has loaded, look at the URL which is of form: Continue reading

Execute a command with a timeout

2010-12-29 1 min read bash Learning
<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;"> Image via <a href="http://commons.wikipedia.org/wiki/File:Ubuntu_logo.svg">Wikipedia</a> </dd> </dl> Execute a command with a timeout 1 <td> <div class="text codecolorer"> &nbsp;timelimit -t100 somecommand </div> </td> </tr> I found this in Ubuntu repos, and consider it better than timeout. * View this command to comment, vote or add to favourites * View all commands by CodSpirit commandlinefu.com by David Winterbottom (codeinthehole.com) URL: http://feedproxy.google.com/~r/Command-line-fu/~3/h72xZsssE4o/execute-a-command-with-a-timeout

write the output of a command to /var/log/user.log… each line will contain $USER, making this easy to grep for.

2010-12-28 2 min read bash Learning Linux
write the output of a command to /var/log/user.log… each line will contain $USER, making this easy to grep for. 1 <td> <div class="text codecolorer"> &nbsp;log() { (echo "$ $@";$@) | logger -t $USER; } </div> </td> </tr> This command is useful if you want to copy the output of a series of commands to a file, for example if you want to pastebin the output from ‘uname -a’, ‘lspci -vvv’ and ‘lsmod’ for video driver trouble-shooting on your favorite Linux forum. Continue reading

Empty a file

2010-12-26 1 min read Learning Linux
<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;"> Image via <a href="http://commons.wikipedia.org/wiki/File:Calculator.NET_Screenshot.png">Wikipedia</a> </dd> </dl> This one is for those who know the “touch” command. Hope all of us do not follow a command just because it is on one of the popular site without trying to understand the command and the output. Empty a file 1 <td> <div class="text codecolorer"> touch file </div> </td> </tr> * View this command to comment, vote or add to favourites * View all commands by noisy Continue reading
Older posts Newer posts