Skip to content

Instantly share code, notes, and snippets.

View randypitcherii's full-sized avatar
🌞

Randy 🌞 randypitcherii

🌞
View GitHub Profile
@randypitcherii
randypitcherii / .bashrc
Created August 12, 2018 21:40
Shell Customization - SSH
# ssh shortcuts
alias acerShell='ssh randy@192.168.1.9 -p 3141'
alias awsIofogShell='ssh ubuntu@13.59.38.225'
@randypitcherii
randypitcherii / .bashrc
Created August 12, 2018 21:35
Shell Customization - Python
# pycache cleaner
export PYTHONDONTWRITEBYTECODE=1
pyclean () {
find . -regex '.*\(__pycache__\|\.py[co]\)' | xargs rm -rf
}
@randypitcherii
randypitcherii / .bashrc
Created August 12, 2018 21:27
Shell Customization - Golang
# Golang setup
export GOVERSION=$(brew list go | head -n 1 | cut -d '/' -f 6)
export GOROOT=$(brew --prefix)/Cellar/go/${GOVERSION}/libexec
export GOPATH="$HOME/go"
export PATH=$PATH:$GOPATH/bin
export GOPATH="$GOPATH:$(echo ~)/projects/tempus-edge/lib/go"
export GOPATH="$GOPATH:$(echo ~)/projects/tempus-edge/applications/mqtt-client-go"
export GOPATH="$GOPATH:$(echo ~)/projects/tempus-edge/protobuf-definitions/go-protobuf-output"
@randypitcherii
randypitcherii / .bashrc
Created August 12, 2018 21:23
Shell Customization - GIT
# git shortcuts
alias branch='git branch'
alias gs='git status'
alias gcam='git commit -am'
@randypitcherii
randypitcherii / .bashrc
Last active August 12, 2018 21:12
Shell Customization - Docker and k8s
# k8s shortcuts
alias kbaws='kubectl --kubeconfig ~/.kube/aws.secure.kubeconfig'
alias kbmin='kubectl --kubeconfig ~/.kube/minikube.kubeconfig'
# docker shortcuts
alias drun='docker run -it --rm'
alias drm='docker rm -f'
alias drmi='docker rmi'
alias dps="docker ps --format 'table {{.Names}}\t{{.Image}}\t{{.Ports}}' -a"
@randypitcherii
randypitcherii / .bashrc
Last active August 12, 2018 20:56
Shell Customization Post - LS
# colorize / verticalize ls
alias ls='ls -G1'
# cd shortcuts
alias te='cd ~/projects/tempus-edge'
alias tde='cd ~/projects/TempusDevEnvironment'
alias hloom='cd ~/projects/Heirloom'
alias ..='cd ..'