Check These Out
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.
usage: sitepass MaStErPaSsWoRd example.com
description: An admittedly excessive amount of hashing, but this will give you a pretty secure password, It also eliminates repeated characters and deletes itself from your command history.
tr '!-~' 'P-~!-O' # this bit is rot47, kinda like rot13 but more nerdy
rev # this avoids the first few bytes of gzip payload, and the magic bytes.
Might as well include the status code it exited with so you know right away if it failed or not.
Next time you are leaching off of someone else's wifi use this command before you start your bittorrent ...for legitimate files only of course.
It creates a hexidecimal string using md5sum from the first few lines of /dev/urandom and splices it into the proper MAC address format. Then it changes your MAC and resets your wireless (wlan0:0).
Use the command watch, which is really hard to pass nested quotes to, and insert newlines where they are supposed to go in the HTTP request. that is after 1.1 after the host and two newlines at the end before the EOF.
i use this all day
what? no support for HEREDOCs on commandlinefu's interface? need more fu.
this bzips a folder and transfers it over the network to "host" at 777k bit/s.
cstream can do a lot more, have a look http://www.cons.org/cracauer/cstream.html#usage
for example:
$ echo w00t, i'm 733+ | cstream -b1 -t2
hehe :)
from http://git-scm.com/book/en/Git-Tools-Stashing
Useful for when stash cannot be applied to current branch
To change to $HOME in that manner you need to set a shell option. In zsh it is auto_cd, hence
$ setopt -o auto_cd
in bash4 it is autocd, hence
$ shopt -s autocd
What the option does is allow you to cd to a directory by just entering its name. This also works if the directory name is stored in a variable:
$ www=/var/www/lighttpd; $www
sends you to /var/www/lighttpd.
CAUTION: If a command or function name identical to the directory name exists it takes precedence.
Sort disk usage from directories in the current directory