Available via github
sudo easy_install http://pypi.python.org/packages/2.7/t/tyrs/tyrs-0.5.0-py2.7.egg
Available via github
sudo easy_install http://pypi.python.org/packages/2.7/t/tyrs/tyrs-0.5.0-py2.7.egg
sudo gedit /usr/bin/zenplayer
#!/bin/bash
zenity --list --width 500 --height 500 --column 'radio' --column 'url' --print-column 2$(curl -s http://www.di.fm/ | awk -F '"' '/href="http:.*\.pls.*96k/ {print $2}' | sort | awk -F '/|\.' '{print $(NF-1) " " $0}') | xargs mplayersudo chmod +x /usr/bin/zenplayer
| grep --line-buffered "StreamTitle='.*S" -o | grep --line-buffered "'.*'" -o > mus & tail -n0 -f mus | while read line; do notify-send "Zen Player" "$line";donebzr branch lp:cheatsheet
telnet towel.blinkenlights.nl
gedit /home/user/.googlecl/config
auth_browser = w3m
apt-get install surfraw surfraw-extra w3msudo gedit /etc/surfraw.confsr google <subject>gedit /home/<user>/.bashrc
alias google="sr google"
/usr/lib/surfraw/ or /usr/local/lib/surfraw//usr/lib/surfraw/ and placing it in /usr/local/lib/surfraw/ or vice versa. You really only want one surfraw directory in your path!!!
ssh new@<name-of-the-server>
The Bash shell has this sweet feature where you can use the TAB key to auto-complete certain things. For example, when I am in my home directory, the following command:
$cd Do[TAB-key]
will automatically yield:
$cd Documents
If you are an absolute novice, like I was, not so long ago, discovering tab completion in the terminal can make you go “Wow!â€. Wait till you hear the rest now :)
Though you can use the TAB key to complete the names of files and directories, by default the completion is pretty “dumbâ€. If you have already typed $cd D you would expect that the tab key would cause only the directory names to be completed, but if I try it on my machine, the tab completion tool uses filenames too.
Now, don’t despair! There is now a smart bash tab completion trick you can use. Smart completion even complete the arguments to commands!!
To enable smart completion, edit your /etc/bash.bashrc file. Uncomment the following lines, by removing the # in the beginning of the lines:
#if [ -f /etc/bash_completion ]; then
# . /etc/bash_completion
#fi
Now you can use tab completion to power your way through commands.
You can even extend bash smart completion to your own favourite commands by using /etc/bash_completion, the “complete†utility and /etc/bash_completion.d . Explaining the nitty-gritty is beyond me. I refer you to the Debian Administration gurus for more information regarding smarter bash completion.
.Xresources in your home folder*. In that file, you put the configuration for yeahconsole, like this:yeahconsole*toggleKey: None+F2
yeahconsole*consoleHeight: 20
yeahconsole*aniDelay: 0
yeahconsole*stepSize: 10
yeahconsole*faceName: ProFontWindows:style=Regular
yeahconsole*faceSize: 9man yeahconsole), apart from which font to use. This is the faceName and faceSize options above, and here you have to delve a bit (I told you this was old-fashioned; I started writing a yeahconsole-properties configuration utility that did all this for you, but couldn't be bothered). In a terminal, run fc-list. This lists all the TrueType fonts that you can use in an xterm. Choose one, and put it in faceName above. Now, simply start yeahconsole for the first time (press Alt+F2, type yeahconsole), and then press F2 (or your key of choice). Pow, a dropdown terminal, like Tilda, but one that won't keep crashing and make you cry. One other thing: if you hit Ctrl-D to log out by mistake, it'll close yeahconsole (tilda did this too), and that's really irritating. To fix this, put the following in a file called bashloop in your home folder:#!/bin/bash
while true; do bash; doneyeahconsole -e /home/username/bashloop. Now Ctrl-D won't close yeahconsole.
...
# mappings for "page up" and "page down" to step to the beginning/end
# of the history
"\e[5~": beginning-of-history
"\e[6~": end-of-history
# alternate mappings for "page up" and "page down" to search the history
# "\e[5~": history-search-backward
# "\e[6~": history-search-forward
...
# mappings for "page up" and "page down" to step to the beginning/end
# of the history
# "\e[5~": beginning-of-history
# "\e[6~": end-of-history
# alternate mappings for "page up" and "page down" to search the history
"\e[5~": history-search-backward
"\e[6~": history-search-forward
For people accustomed to MS-DOS commands, the following aliases can be defined so that a Unix-like operating system appears to behave more like MS-DOS:alias dir="ls"alias copy="cp"alias rename="mv"alias md="mkdir"alias rd="rmdir"alias del="rm -i"
However, some experienced users of Unix-like systems contend that this may not be a good idea and that it might just make Linux seem more confusing, rather than simpler. Instead, they advocate having Linux users become accustomed to the UNIX terminology right from the start.
alias new_name='command -options'
fixkey XXXXXXXX
$ sudo apt-get intall subversion
$ nano ~/.subversion/servers
http-proxy-host = your.proxy
http-proxy-port = 8080 #your proxy port
http-proxy-exceptions = localhost #etc
http-proxy-username = your_user
http-proxy-password = your_password
888 8 8 8 8 8 w
8 8d8b. .d88 8 .d8b. Yb dP 8 8 8 8 88b. 8 8 8d8b. w8ww 8 8
8 8P Y8 8 8 8 8' .8 YbdP 8b d8 8b..d8 8 8 8b d8 8P Y8 8 8b d8
888 8 8 `Y88 8 `Y8P' YP `Y8P8 `Y88P' 88P' `Y8P8 8 8 Y8P `Y8P8sudo apt-get install figlet
figlet <text>
W: GPG error: http://ppa.launchpad.net hardy Release:
The following signatures couldn't be verified because the public key
is not available: NO_PUBKEY EF4186FE247510B
gpg --keyserver hkp://subkeys.pgp.net --recv-keys KEY
gpg --export --armor KEY | sudo apt-key add -
sudo apt-get update
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C5E6A5ED249AD24C