Skip to content

Instantly share code, notes, and snippets.

@jabelk
Created November 23, 2020 22:04
Show Gist options
  • Save jabelk/dffcc8ac16a8bff6e286cd5e606d97d2 to your computer and use it in GitHub Desktop.
Save jabelk/dffcc8ac16a8bff6e286cd5e606d97d2 to your computer and use it in GitHub Desktop.
helpful aliases
export BASH_SILENCE_DEPRECATION_WARNING=1
# remove clutter from prompt
export PS1="\W$ "
export ANSIBLE_NOCOWS=1
alias mkgitignore='cat ~/.gitignore_global > .gitignore'
alias loginjumpsandbox='ssh [email protected]'
alias loginjumpsandboxprod='ssh [email protected]'
alias copysandboxkeys='sshpass -pC1sco12345 ssh-copy-id [email protected]'
alias copysandboxkeysprod='sshpass -pC1sco12345 ssh-copy-id [email protected]'
alias labvirlssh='ssh [email protected]'
alias jupyter-gui='ssh -L 8002:localhost:8888 '
alias servicepackage='ncs-make-package --service-skeleton python-and-template --augment /ncs:services '
alias kickoffnso='ncs_cli -u admin -C'
alias reloadbash='source ~/.bash_profile'
alias iforgot='history | grep '
alias lm='ls -la | more'
alias branchremotepush='git push --set-upstream origin'
alias brewery='brew update && brew upgrade && brew cleanup'
alias nsovagrant='vagrant ssh'
# Display file list with colors, sizes, and in list format
alias ll='ls -FGlAhp'
# Handy aliases to find resource hogs
alias memHogsTop='top -l 1 -o rsize | head -20'
alias memHogsPs='ps wwaxm -o pid,stat,vsize,rss,time,command | head -10'
alias cpu_hogs='ps wwaxr -o pid,stat,%cpu,time,command | head -10'
# Some networking aliases for macOS
alias flushDNS='dscacheutil -flushcache'
alias openPorts='sudo lsof -i | grep LISTEN'
# Remove all exited/stopped docker containers
alias docker_rm='docker rm -v $(docker ps -aq -f status=exited)'
export HISTSIZE=1000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment