Skip to content

Instantly share code, notes, and snippets.

View dpmex4527's full-sized avatar

Daniel Perez dpmex4527

  • Austin, TX
View GitHub Profile
@primetheus
primetheus / docker_svn-server.md
Last active December 27, 2023 10:34 — forked from dpmex4527/docker_svn-server.md
Set up SVN server on docker
@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@JSONOrona
JSONOrona / parser.py
Last active January 4, 2021 16:37
Python command line argument example using argparse module
#!/usr/bin/python
''' Python command line argument example using argparse module
Example output:
./parser.py --server=pyserver --port=8080,443,25,22,21 --keyword=pyisgood
Server name: [ pyserver ]
@kylemacey
kylemacey / git-bomb.sh
Last active August 24, 2021 15:42
This gist will create a custom git script that will delete any branches that are fully merged into the currently checked out branch (usually run on master)
mkdir -p ~/scripts/git
echo 'git branch --merged | grep -wiv -e "main" -e "master" | xargs -n 1 git branch -d' > ~/scripts/git/git-bomb
echo 'git remote prune origin' >> ~/scripts/git/git-bomb
chmod +x ~/scripts/git/git-bomb
sudo ln -s ~/scripts/git/git-bomb /usr/bin/git-bomb
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active June 29, 2024 03:40
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k