Manually remove all the duplicate bookmarks in Firefox

2011-09-13 1 min read Firefox

LAS VEGAS - JANUARY 08:  The Nokia N900 phone ...
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

A diagram showing the key Unix and Unix-like o...
Image via Wikipedia

Here is a simple and fast way to cd across parallel directory.

  <td>
    <div class="text codecolorer">
      cd ${PWD/test/actual}
    </div>
  </td>
</tr>
1
Enhanced by Zemanta

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:

  <td>
    <div class="text codecolorer">
      sudo yum install afraid-dyndns
    </div>
  </td>
</tr>
1

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
Official Ubuntu circle with wordmark. Replace ...
  <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

  <td>
    <div class="text codecolorer">
      &nbsp;timelimit -t100 somecommand
    </div>
  </td>
</tr>
1

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

Continue reading

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.

  <td>
    <div class="text codecolorer">
      &nbsp;log() { (echo "$ $@";$@) | logger -t $USER; }
    </div>
  </td>
</tr>
1

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
Screenshot of Calculator.NET, a Free Open Sour...
  <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.

Continue reading
Older posts Newer posts