Check These Out
create simple encrypted notes to yourself using a passphrase on sprunge.us
For this hack you need following function:
$ finit() { count=$#; current=1; for i in "$@" ; do echo $current $count; echo $i; current=$((current + 1)); done; }
and alias:
$ alias fnext='read cur total && echo -n "[$cur/$total] " && read'
Inspired by CMake progress counters.
Get simple description on each file from /bin dir, in list form, usefull for newbies.
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.
The download content part.
NOTE: the '-c' seems to not work very well and the download stuck at 99% sometimes. Just finish wget with no problem. Also, the download may restart after complete. You can also cancel. I don't know if it is a wget or Rapidshare glitch since I don't have problems with Megaupload, for example.
UPDATE: as pointed by roebek the restart glitch can be solved by the "-t 1" option. Thanks a lot.
Handy when you need to create a list of files to be updated when subversion is not available on the remote host. You can take this tar file, and upload and extract it where you need it. Replace M and N with the revisions specific to yours. Make sure you do this from an updated (svn up) working directory.
Even shorter:
$ seq -s '*' 120|tr -d '[0-9]'
This command will:
1. open an SSH tunnel to
2. go to background
3. wait for 10 seconds for the connection
4. during the 10 seconds wait it will localy run 'rdesktop' to connect to the remote host through the created SSH tunnel.
Password-less log in can be achieved (when server allows it) by adding '-p ' to the 'rdesktop' command
Changes pidgin status using its dbus interface. The status code can be obtained using command #4543.