Skip to content

Instantly share code, notes, and snippets.

@gardner
Created March 13, 2014 00:55
Show Gist options
  • Save gardner/9519903 to your computer and use it in GitHub Desktop.
Save gardner/9519903 to your computer and use it in GitHub Desktop.
~/.bash_profile
export TERM="xterm-color"
export PS1='\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\]:\[\e[0;34m\]\w\[\e[0m\]\$ '
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
findcasei() {
find . -type f -print0 | xargs -n 1 -P 8 -0 grep -Hi "$1"
}
alias f=findcasei
gitpush() {
git fetch origin && git pull origin && git commit -am "$@" && git push origin
}
alias gp=gitpush
function getcertf() {
host_port=$1
if [[ "$1" != *":"* ]]; then
# if no port is specified then default to 443
host_port="$host_port:443"
fi
openssl s_client -showcerts -connect $host_port </dev/null
}
alias getcert=getcertf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment