Check These Out
A null operation with the name 'comment', allowing comments to be written to HISTFILE. Prepending '#' to a command will *not* write the command to the history file, although it will be available for the current session, thus '#' is not useful for keeping track of comments past the current session.
Ssh to host1, host2, and host3, executing on each host and saving the output in {host}.log.
I don't have the 'parallel' command installed, otherwise it sounds interesting and less cryptic.
Send an e-mail to SMS reminder in 15 minutes from now, to call my wife. See list of carriers bellow
Carrier Email to SMS Gateway
Alltel [10-digit phone number]@message.alltel.com
AT&T (formerly Cingular) [10-digit phone number]@txt.att.net
[10-digit phone number]@mms.att.net (MMS)
[10-digit phone number]@cingularme.com
Boost Mobile [10-digit phone number]@myboostmobile.com
Nextel (now Sprint Nextel) [10-digit telephone number]@messaging.nextel.com
Sprint PCS (now Sprint Nextel) [10-digit phone number]@messaging.sprintpcs.com
[10-digit phone number]@pm.sprint.com (MMS)
T-Mobile [10-digit phone number]@tmomail.net
US Cellular [10-digit phone number]email.uscc.net (SMS)
[10-digit phone number]@mms.uscc.net (MMS)
Verizon [10-digit phone number]@vtext.com
[10-digit phone number]@vzwpix.com (MMS)
Virgin Mobile USA [10-digit phone number]@vmobl.com
Put this command in .bashrc and every time you open a new terminal a random quote will be downloaded and printed from onelinerz.net.
By altering the URL in the w3m statement you can change the output:
1 to 10 lines - http://www.onelinerz.net/random-one-liners/(number)/
20 newest lines - http://www.onelinerz.net/latest-one-liners/
Top 10 lines - http://www.onelinerz.net/top-100-funny-one-liners/
Top 10 lines are updated daily.
Comcast is an ISP in the United States that has started hijacking DNS requests as a "service" for its customers. For example, in Firefox, one used to be able to do a quick "I'm Feeling Lucky" Google search by typing a single word into the URL field, assuming the word is not an existing domain when surrounded by www.*.com. Comcast customers never receive the correct NX (non-existent domain) error from DNS. Instead, they are shown a page full of advertising. There is a way to "opt out" from their service, but that requires having the account password and the MAC address of your modem handy. For me, it was easier just to set static DNS servers. But the problem is, which ones to choose? That's what this command answers. It'll show you the three _non-hijacked_ Comcast DNS servers that are the shortest distance away.
Perhaps you don't have Comcast (lucky you!), but hopefully this command can serve as an example of using netselect to find the fastest server from a list. Note that, although this example doesn't show it, netselect will actually perform the uniq and DNS resolution for you.
Requires: netselect, curl, sort, uniq, grep
The loop is to compare cookies. You can remove it...
Maybe you wanna use curl...
$ curl www.commandlinefu.com/index.php -s0 -I | grep "Set-Cookie"
does the -i option open a tmp file?
this method does not.
Returns logs between HH:M[Mx-My], for example, between 13:40 and 13:45.