Post Pidgin and Twitter status from command line

Linux, Pidgin, Twitter, bash, microblogging January 20th, 2010

I often want to post the same status message in Pidgin and Twitter. I wrote  simple bash script to accomplish this.

One can download the script from here: http://www.spsneo.com/scripts/poststatus.tar.gz

How to use it -

1) Change the permission of the file to make it executable: chmod +x poststatus

2) Then execute the file with the status message as the argument: ./poststatus "Status Message goes here in quotes"

3) The script will first post the status message in your pidgin and will then ask whether you want to post it on twitter.  If you say yes, the script asks you for your twitter username and password.

Start using the script and send me feedback to improve it.

Open any file from terminal in Gnome

GNOME, Linux April 5th, 2009

I normally use terminals to navigate through directories in my computer. I often have to remember the executable filename of different applications to open files. Like to open a pdf file I have to remember evince, for an audio or video file – vlc. But its really difficult to remember executable filenames for all types of files. For example I don’t remember how to open a .xls file from command line.

There’s a command which open files using GNOME file handlers – “gnome-open”. Now, when I have to open any file I just type in “gnome-open <filename>”. Simple !

To make things more simple I have made an alias ‘go’ for ‘gnome-open’. Now opening a file from terminal is as easy as typing “go <filename>” in terminal.