tEcHrAjEsH's sPaCe

my life within and outside computers…

Tweet via linux terminal : the geek way

Do you work most of the time via terminal? Do you hardlay get chance to switch to GUI from CLI?  Do you want to look like geek working in terminal even to tweet ur posts? Yes, there is a way now to do it. Below is a step by step instruction on how to do that:

Install a package called Curl (for Debian/Ubuntu) with the command

sudo apt-get install curl

Then, create a file named ‘twitter’ in /usr/bin using the command.

gedit /usr/bin/twitter

Now in the file ‘twitter’, paste the below code by replacing yourusername and yourpassword with your actual twitter username and password respectively.

curl –basic –user “yourusername:yourpasswd” –data-ascii “status=`echo $@|tr ‘ ‘ ‘+’`” “http://twitter.com/statuses/update.json” -o /dev/null; echo Message Sent!

Now give the file executable permission by using the command:

sudo chmod +x /usr/bin/twitter

Thats it. You’re done. Just start tweeting now in the command line by typing twitter{space}{your message}

My first command like tweet reads like:

techrajesh@techrajesh-laptop:~$ twitter my first command line tweet! For command line tweeting, vist www.techrajesh.wordpress.com

What did your first command line tweet read like?

June 21, 2009 Posted by | How to, Social Engineering, Tips and Tricks, Ubuntu | , , , , | 2 Comments

How to remove quiz and games notifications from your Facebook page

I was fed up with all those crappy quizzes and games notification in my facebook page. Whenever i logged in to my facebook page, those annoying quizzes notifications were the first ones to appear, so i decided to get rid of it and started my hunt. This is what i found and let me share it with all you guys.

First of all, you need to be a Firefox user to do this. Under firefox, install an add-on called GreaseMonkey. Once installed a small icon will appear on the status bar of your browser. Next, you need to install the Facebook Purity Script for the GreaseMonkey. Then make sure that both the GreaseMonkey and Facebook Purity Script is enabled by right clicking the icon in the status bar and checking the “manage user scripts” option. Once done, open your Facebook page and see the results. The greasemonkey script “Facebook Purity Script” removes all the third pary application’s notifications  such as quizzes and games created by external developers leaving behind your original notifications about status, messages, comments and so on. Now the facebook becomes pure as it should be.

P.S. Facebook Account Settings always do not have the option to strongly disable these third party notifications, so this script for GreaseMonkey really gets the job done. If you have any better ways to do so, please respond in comments below.

June 17, 2009 Posted by | How to, Social Engineering | , , | Leave a Comment

   

Follow

Get every new post delivered to your Inbox.