Skip to content

Instantly share code, notes, and snippets.

Avatar
Coffee lover 🤟🏽

Renan Borges renanborgez

Coffee lover 🤟🏽
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am renanborgez on github.
  • I am renanborgez (https://keybase.io/renanborgez) on keybase.
  • I have a public key ASC9Sn3-xyCSjcsEBxedYMY0MEXYpOBSoxG1GJquLI8nGAo

To claim this, I am signing this object:

@renanborgez
renanborgez / docker-destroy-all.sh
Last active Jun 21, 2021 — forked from JeffBelback/docker-destroy-all.sh
Destroy all Docker Containers and Images
View docker-destroy-all.sh
#!/bin/bash
# Stop all containers
docker stop $(docker ps -a -q) -f
# Delete all containers
docker rm $(docker ps -a -q) -f
# Delete all images
docker rmi $(docker images -q) -f
# Delete all volumes
docker system prune
View clear-local-branches.txt
## Delete local branches already merged
git fetch --prune && git branch --merged | egrep -v "(^\*|master|develop|main)" | xargs git branch -d
## Delete local branches (with force)
git fetch --prune && git branch | egrep -v "(^\*|master|develop|main)" | xargs git branch -d -f