Created
February 19, 2016 08:46
-
-
Save fonylew/edffed790dc404414a48 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#export PATH=$PATH:~/bin | |
export PATH=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$PATH | |
export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/site-packages | |
export PATH=${PATH}:$HOME/gsutil | |
#export EDITOR='subl -w' | |
alias sl="ls" | |
alias สห="ls" | |
alias แก="cd" | |
alias howmuch="tree .|wc" | |
alias prettyjson='python -m json.tool' | |
alias headlessbsd="VBoxHeadless --startvm FreeBSD --vrdp=off" | |
alias sshbsd="ssh -p 2222 root@localhost" | |
alias sshps="ssh root@10.10.6.91" | |
alias ssha1="ssh root@10.10.6.92" | |
alias ssha2="ssh root@10.10.6.93" | |
alias ssh94="ssh root@10.10.6.94" | |
alias web="cd /Library/WebServer/Documents" | |
alias cellar="cd /usr/local/Cellar" | |
alias chrome="open /Applications/Google\ Chrome.app/ --args --disable-web-security" | |
alias alarm="afplay /System/Library/Sounds/Submarine.aiff -v 10" | |
alias ubuntu="docker run -i -t ubuntu:latest /bin/bash" | |
alias sshcp="ssh -L 7575:localhost:7474 hadoop@172.16.2.1" | |
alias neocp="ssh -L 7575:localhost:7474 hadoop@172.16.2.7" | |
function y2mp3(){ | |
youtube-dl --extract-audio --audio-format mp3 $1 | |
} | |
function toileter(){ | |
toilet --gay -f mono12 $1 | |
} | |
function freebsd(){ | |
VBoxManage startvm FreeBSD --type headless $1 | |
} | |
function myip(){ | |
curl ipecho.net/plain ; echo | |
} | |
function ip(){ | |
ifconfig en0 | grep inet | awk '{ print $2 }' | |
} | |
function replacestr(){ | |
find . -name $1 -print0 | xargs -0 sed -i '' -e 's/$2/$3/g' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment