Skip to content

Instantly share code, notes, and snippets.

View ghaake's full-sized avatar

Gerrit Haake ghaake

View GitHub Profile
@ghaake
ghaake / clear_images.sh
Created April 21, 2022 12:05
Docker: remove all untagged and unused images
docker rmi $(docker images -f "dangling=true" -q)
@ghaake
ghaake / clone-all.sh
Created April 29, 2021 08:58
Clone All Repositorys from an User or Organisation
CNTX={users|orgs}; NAME={username|orgname}; PAGE=1
curl "https://api.github.com/$CNTX/$NAME/repos?page=$PAGE&per_page=100" |
grep -e 'git_url*' |
cut -d \" -f 4 |
xargs -L1 git clone
@ghaake
ghaake / gitconfig.sh
Created May 21, 2019 19:42
Usefull alias git commands for lazy shell users
git config --global alias.co checkout
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.br branch
git config --global alias.ba "branch -a"
git config --global alias.bl "branch -l"
git config --global alias.hist "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short"