Check These Out
Usage: flight_status airline_code flight_number (optional)_offset_of_departure_date_from_today
So for instance, to track a flight which departed yesterday, the optional 3rd parameter should have a value of -1.
eg.
flight_status ua 3655 -1
output
---------
Status: Arrived
Departure: San Francisco, CA (SFO)
Scheduled: 6:30 AM, Jan 3
Takeoff: 7:18 AM, Jan 3
Term-Gate: Term 1 - 32A
Arrival: Newark, NJ (EWR)
Scheduled: 2:55 PM, Jan 3
At Gate: 3:42 PM, Jan 3
Term-Gate: Term C - C131
Note:
html2text needs to be installed for this command. only tested on ubuntu 9.10
Trace python statement execution and syscalls invoked during that simultaneously
You need to install "sshpass" for this to work.
apt-get install sshpass
How about this one ?
When you use a "for" construct, it cycles on every word. If you want to cycle on a line-by-line basis (and, well, you can't use xargs -n1 :D), you can set the IFS variable to .
making it "sound" more "natural" language like -- additionally sorting the longest words alphabetically:
this approach is using:
* to get at all lines of input
* post-"for" structure
* short-circuit-or in sort: if the lengths are the same, then sort alphabetically otherwise don't even evaluate the right hand side of the or
* -C sets all input and ouput channels to utf8
I often use it to find recently added ou removed device, or using find in /dev, or anything similar.
Just run the command, plug the device, and wait to see him and only him
Redirect the local port 2000 to the remote port 3000. The same but UDP:
$ nc -u -l -p 2000 -c "nc -u example.org 3000"
It may be used to "convert" TCP client to UDP server (or viceversa):
$ nc -l -p 2000 -c "nc -u example.org 3000"
Every time this is run it will change your background picture. For added fun
Add some DBUS magic:
. $HOME/.dbus/session-bus/`cat /var/lib/dbus/machine-id`-0
export DBUS_SESSION_BUS_ADDRESS
and a crontab entry:
*/5 * * * * above_command_in_script.sh >/dev/null 2>/dev/null
now wallpaper changes every 5 mins