Skip to content

Instantly share code, notes, and snippets.

@thijzert
Last active October 2, 2015 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thijzert/2277347 to your computer and use it in GitHub Desktop.
Save thijzert/2277347 to your computer and use it in GitHub Desktop.
Useful bash aliases
alias IP="grep -oP '([0-9]+\.){3}[0-9]+' | grep -vP '192\.168\.[0-9]+\.[0-9]+'"
alias rdp="rdesktop -g 1600x1000 -a 16 -N -u Administrator -k en-us -r clipboard:PRIMARYCLIPBOARD"
alias bbc3='mplayer http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio3_mf_q'
alias klara='mplayer http://mp3.streampower.be/klara-high.mp3'
alias radio4='mplayer http://icecast.omroep.nl/radio4-bb-mp3'
alias svngrep='find . \
-path ".git" -prune -o -path "*.git" -prune \
-o -path ".svn" -prune -o -path "*/.svn" -prune \
-o -name "*.svn-base" -prune -o \
-type f -print0 | xargs -0 -e grep --color=always -Ine'
alias less='less -RS '
alias nano='vim '
alias sudo='sudo '
alias update-aliases='wget -O ~/.bash_aliases "https://gist.githubusercontent.com/ametheus/2277347/raw/.bash_aliases" && source ~/.bash_aliases'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment