Skip to content

Instantly share code, notes, and snippets.

docker rmi -f $(docker images | grep "<none>" | awk "{print \$3}")
@timc13
timc13 / gist:e44f929a95abc999f95de62d38b6777e
Last active January 19, 2017 23:15 — forked from schacon/gist:942899
delete all remote branches that have already been merged into master
$ git fetch --prune;
$ git branch --remote --merged |
grep origin |
grep -v '>' |
grep -v master |
xargs -L1 |
cut -d"/" -f2- |
xargs git push origin --delete;
@timc13
timc13 / .bash_profile
Last active October 11, 2017 21:36
osx profile
COLOR_NC='\e[0m' # No Color
COLOR_WHITE='\e[1;37m'
COLOR_BLACK='\e[0;30m'
COLOR_BLUE='\e[0;34m'
COLOR_LIGHT_BLUE='\e[1;34m'
COLOR_GREEN='\e[0;32m'
COLOR_LIGHT_GREEN='\e[1;32m'
COLOR_CYAN='\e[0;36m'
COLOR_LIGHT_CYAN='\e[1;36m'
COLOR_RED='\e[0;31m'