Skip to content

Instantly share code, notes, and snippets.

:octocat:
Coding

Renan Borges renanborgez

:octocat:
Coding
Block or report user

Report or block renanborgez

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@renanborgez
renanborgez / clear-docker
Created Sep 4, 2019
remove dangling volumes of docker
View clear-docker
# Removing dangling volumes
docker volume rm $(docker volume ls -f dangling=true -q)
@renanborgez
renanborgez / docker-destroy-all.sh
Created Jan 18, 2019 — 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)
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
View clear-local-branches.txt
## Delete local braches already merged
git fetch --prune && git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d
## Delete local braches
git fetch --prune && git branch | egrep -v "(^\*|master|dev)" | xargs git branch -d
You can’t perform that action at this time.