Check These Out
This should handle whitespaces well and will not get confused if your filenames have "?" in them
Trace python statement execution and syscalls invoked during that simultaneously
Create a tgz archive of all the files containing local changes relative to a subversion repository.
Add the '-q' option to only include files under version control:
$svn st -q | cut -c 8- | sed 's/^/\"/;s/$/\"/' | xargs tar -czvf ../backup.tgz
Useful if you are not able to commit yet but want to create a quick backup of your work. Of course if you find yourself needing this it's probably a sign you should be using a branch, patches or distributed version control (git, mercurial, etc..)
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"
Trace python statement execution and syscalls invoked during that simultaneously
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
0 can also be replaced by the source name, e.g. alsa_output.pci-0000_00_1b.0.analog-stereo
Find if $b is in $a in bash
This is useful when you're diffing two files of the same name in radically different directory trees. For example:
Set
$ path1='/some/long/convoluted/path/to/all/of/your/source/from/a/long/dead/machine'
then
$ path2='/local/version/of/same/file'
then run the command. Much easier on the eyes when you're looking back across your command history, especially if you're doing the same diff over and over again.
Run as root. Path may vary depending on laptop model and video card (this was tested on an Acer laptop with ATI HD3200 video).
$ cat /proc/acpi/video/VGA/LCD/brightness
to discover the possible values for your display.