Skip to content

Instantly share code, notes, and snippets.

@helloworld
Created June 30, 2016 21:19
Show Gist options
  • Select an option

  • Save helloworld/1e8663e6511956774fc1df606f5caffb to your computer and use it in GitHub Desktop.

Select an option

Save helloworld/1e8663e6511956774fc1df606f5caffb to your computer and use it in GitHub Desktop.
#ZSH
alias zshconfig="subl ~/.zshrc"
alias zconfig="sublime ~/.zsh"
alias zsource="source ~/.zshrc"
alias zalias="subl ~/.zsh/aliases.zsh"
alias ohmyzsh="subl ~/.oh-my-zsh"
#aliases
alias aliasl="cat ~/.zsh/aliases.zsh"
#tmux
alias tn="tmux new -s"
alias ta="tmux attach -t"
alias tswitch="tmux switch -t"
alias tlist="tmux list-sessions"
alias td="tmux detach"
alias tkill="tmux kill-session -t"
alias tsw="tmux split-window"
alias tswh="tmux split-window -h"
alias tsu="tmux select-pane -U"
alias tsd="tmux select-pane -D"
alias tsl="tmux select-pane -L"
alias tsr="tmux select-pane -R"
alias tsn="tmux select-pane -t"
#tj
alias tj="ssh -Y [email protected]"
alias heisenberg="ssh [email protected]"
# sudo sshfs [email protected]:/ Mnt/Heisenberg
# sudo sshfs -o IdentityFile=~/.ssh/id_rsa [email protected]:/ Heisenberg
#websites
alias chrome="/usr/bin/open -a '/Applications/Google Chrome.app'"
alias messenger="chrome 'https://messenger.com'"
alias fb="chrome 'https://fb.com'"
alias gmail="chrome 'https://gmail.com'"
alias google="chrome 'https://google.com'"
alias gist="chrome https://gist.github.com/"
alias bb="chrome http://fcps.blackboard.com"
#messenger
alias rli="chrome 'https://messenger.com/t/rachael.li.33'"
alias tej="chrome 'https://messenger.com/t/tejasvi.kumar.3'"
alias ankit="chrome 'https://messenger.com/t/ankit.deshmukh.142'"
#finder
alias showhiddenfiles="defaults write com.apple.finder AppleShowAllFiles TRUE; killall Finder;"
alias hidehiddenfiles="defaults write com.apple.finder AppleShowAllFiles FALSE; killall Finder;"
#sublime
alias sublime="subl -a"
#scripts
alias scripts="sublime ~/.scripts"
alias clean="~/.scripts/clean.sh"
#college apps
alias cedit='cd /Users/Sashank/Projects/College-Essay/files; subl .'
alias copen='open /Users/Sashank/Projects/College-Essay/files'
alias cview='cd /Users/Sashank/Projects/College-Essay/; open http://localhost:8000/; node server.js;'
#finder
alias finder="cd "$(osascript -e 'tell app "Finder" to POSIX path of (insertion location as alias)')""
#session
alias lock="/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend"
alias slp="pmset sleepnow"
alias cbp="pbpaste"
alias cbc="pbcopy"
#school
alias multihw="open ~/Downloads/Blackboard/Multi/MV2015Assign.pdf"
alias openbci='open /Users/$USER/Projects/Neuro-Rli/OpenBCI/OpenBCI_GUI/EEG_Processing.pde; cd /Users/Sashank/Projects/Neuro-Rli/Client; electron .'
#tools
alias notes="subl /Users/Sashank/Documents/Misc/notes.md"
alias up="cd /Users/Sashank/Projects/Pull-Up/Alexa; zip -r archive.zip index.js AlexaSkill.js node_modules;aws lambda update-function-code --function-name PullUp --zip-file fileb://archive.zip"
alias up2="cd /Users/Sashank/Projects/Pull-Up/Alexa-Message; zip -r archive.zip index.js AlexaSkill.js node_modules;aws lambda update-function-code --function-name Phone --zip-file fileb://archive.zip"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment