Skip to content

Instantly share code, notes, and snippets.

@amoshyc
Created December 22, 2017 05:03
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 amoshyc/452372c1bbb660e41b72688f78e95265 to your computer and use it in GitHub Desktop.
Save amoshyc/452372c1bbb660e41b72688f78e95265 to your computer and use it in GitHub Desktop.
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
export EDITOR=code
export VISUAL=code
bind "TAB:menu-complete"
bind "set show-all-if-ambiguous on"
bind "set menu-complete-display-prefix on"
alias myg++="g++ -Wall -Wshadow -std=c++14"
alias mytxt=mytxt_func
alias mymp3="youtube-dl -o '%(playlist_index)s. %(title)s.%(ext)s' -x --audio-format 'mp3' --audio-quality 0 -i"
alias activ="source ./venv/bin/activate"
alias tocsie0="ssh hycheng103u@csie0.cs.ccu.edu.tw"
alias tocsie1="ssh hycheng103u@csie1.cs.ccu.edu.tw"
alias tocsie2="ssh hycheng103u@csie2.cs.ccu.edu.tw"
alias tolinux="ssh hycheng103u@linux.cs.ccu.edu.tw"
alias tom="ssh amoshuangyc@140.123.95.176" # to master
alias mm1="sshfs -p 2222 amoshuangyc@140.123.97.173:./ ./remote"
alias mm2="sshfs -p 2223 amoshuangyc@140.123.97.173:./ ./remote"
alias mm3="sshfs -p 2224 amoshuangyc@140.123.97.173:./ ./remote"
alias unmm="fusermount -u ./remote" # unmount master
alias to1="ssh -p 2222 amoshuangyc@140.123.97.173"
alias to2="ssh -p 2223 amoshuangyc@140.123.97.173"
alias to3="ssh -p 2224 amoshuangyc@140.123.97.173"
alias to110="xfreerdp -size 1600x900 -u amoshyc -v 140.123.97.110"
alias to111="xfreerdp -size 1600x900 -u maniac -v 140.123.97.111"
alias condaOn='export PATH="/home/amoshyc/miniconda3/bin:$PATH"'
mytxt_func() {
iconv -c -f gbk -t utf-8 $1 -o _tt.txt
opencc -c s2tw.json -i _tt.txt -o $2
rm _tt.txt
}
# added by Miniconda3 4.3.21 installer
# export PATH="/home/amoshyc/miniconda3/bin:$PATH"
# alias python="/usr/bin/python"
# alias python3="/usr/bin/python3"
export GOROOT=$HOME/go
export GOPATH=$HOME/workspace/go
export PATH=$GOROOT/bin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment