This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker ps -q | xargs -n 1 docker inspect --format '{{ .Name }} {{range .NetworkSettings.Networks}} {{.IPAddress}}{{end}}' | sed 's#^/##'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create back up | |
cat /etc/resolv.conf > resolv.conf.old | |
// add shekan dns for in /etc/resolv.conf | |
curl -fsSL get.docker.com -o get-docker.sh | |
sh get-docker.sh | |
// check version of docker |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// delete all origin branch that deleted from origin and stay in your local | |
git fetch -p | |
// chekout to main brach to prevent delete it from local | |
git checkout master | |
// delete all local branch | |
git branch | xargs git branch -d | |
// delete all origin branch that don't deleted from origin and stay in your local | |
git branch | xargs git branch -D | |
// now you have master branch in local |