Monday, December 17, 2012

Tips to keep your inbox clutter free

1. Delete: Every time you read an email, decide if the information is relevant to you. If not, delete it.

2. Do: If you can do whatever the email is requesting in two minutes, do it there and then.

3. Delegate: If it can't be done in two minutes but you are in a position todelegate it, pass it on to somebody else.

4. Defer: If you can't do the task immediately but it will take longer than two minutes, pick a time when you will get it done and add it to a to-do list.

5. Diminish: Cut down your email load by making rules in your inbox and directing emails into different folders.

6. Daily: Get your unread email count down to zero and do it daily.

Ref: http://timesofindia.indiatimes.com/life-style/relationships/work/6-Ds-to-keep-your-inbox-clutter-free/articleshow/17570989.cms

Friday, December 14, 2012

Command line command to auto kill a command after a certain amount of time

Ref: http://stackoverflow.com/questions/601543/command-line-command-to-auto-kill-a-command-after-a-certain-amount-of-time


( /path/to/slow command with options ) & sleep 5 ; kill $!
This runs the first command, inside the parenthesis, for five seconds, and then kills it. The entire operation runs synchronously, i.e. you won't be able to use your shell while it is busy waiting for the slow command. If that is not what you wanted, it should be possible to add another &.
The $! variable is a Bash built in that contains the process ID of the most recently started subshell. It is important to not have the & inside the parenthesis, doing it that way loses the process ID.