$ docker rm $(docker ps -a -q)$ docker rmi $(docker images -q)| function stringTColor(str) { | |
| let hash = 0; | |
| for (let i = 0; i < str.length; i++) { | |
| hash = str.charCodeAt(i) + ((hash << 5) - hash); | |
| } | |
| let color = '#'; | |
| for (let i = 0; i < 3; i++) { | |
| let value = (hash >> (i * 8)) & 0xFF; | |
| color += ('00' + value.toString(16)).substr(-2); | |
| } |
| # In .bashrc, .bash_profile, .zshrc, insert following the following | |
| alias g=git | |
| alias ga='git add' | |
| alias gaa='git add --all' | |
| alias gapa='git add --patch' | |
| alias gau='git add --update' | |
| alias gb='git branch' | |
| alias gba='git branch -a' | |
| alias gbd='git branch -d' |