Sunday, December 27, 2009

Shell script to post twit.

For posting a simple twit, I had to go on twitter every time, But for lazy person like me, Its too tough. I was looking for a simple tool to post twit. I found a very interesting and simple shell script to post twit from Linux command line.

*Install "curl" if you don't have already.
       #yum install curl
*Copy the colored code and save as twit.sh
*Replace USER with your Twitter A/c's user name and PASSWORD with password.
*make twit.sh executable.
       #chmod +x twit.sh

Your script is ready to post messages.Go to terminal. Use the following command.
$sh twit.sh "Your Message here."


------------------------script start  here--------------------------------------

#!/bin/bash
curl -u USER:PASS -d status="$*" http://twitter.com/statuses/update.xml > /dev/null
echo "Message posted successfully."
----------------------------------------------------------------------------------------- 
Note- This tutorial is for Redhat and Fedora Linux, although you can use this script on any distro if you have "curl" installed on your machine. To install curl on your distro look their installation manual.

Read more…

Thursday, December 24, 2009

How fast is your Thumb Drive ?

There are lot of tools available to check data transfer rate in Windows. But on Linux  you can check data transfer rate by just using one command.


Open Terminal.
Application >System Tools > Terminal.
Login with super user credential.
$su
password : (root password)



#hdparm -t /dev/sdb (in my case sdb is pendrive)

/dev/sdb:
Timing buffered disk reads:   60 MB in  3.00 seconds =  19.98 MB/sec





For detail usage of hdparm command go to terminal and type

#man hdparm
or
#hdparm --help

Note - Some command can be dengerous, Please use them carefully.

Read more…

Friday, October 9, 2009

Add "To Do" List in Gmail.

Today I am going to share to you "How to add To Do list in Gmail". Gmail already has "Task", but I wanted to show my To Do list all the time which is not possible in Task. In Task to add new Item or see the created items you have to click on it, Then a pop-up window opens. Tooooooo frustrating na. Atleast for a lazy person like me. Ok, lets do something smart .......

1.Open iGoogle. (Open www.google.com, click on iGoogle at top-right corner).
2.Click on "Add Stuff"
3.In Search for gadgets box type "to do" and hit enter.
4.Click on "ToDo" and then View Source at Right Hand side.
5.This will open a xml page. Copy url from Address bar.
6.Now Login to your gmail account.
7.Click on settings at top-right corner.
8.Click on "Gadgets" Tab
9.Paste your copied url in "Add a gadget by its URL:" box.
10.Click on add.

Its done ! Enjoy.....

Read more…