Skip to content

Instantly share code, notes, and snippets.

View reistiago's full-sized avatar

Tiago Reis reistiago

View GitHub Profile
@reistiago
reistiago / tools.md
Last active May 17, 2022 16:38
Tools that I use
@reistiago
reistiago / colima.md
Last active January 27, 2022 11:41
Setup colima instead of docker desktop macOS

Replace docker desktop by colima

Remove docker desktop application then:

rm -rf .docker
brew install docker
brew install docker-compose
brew install colima

colima start
@reistiago
reistiago / cleanup.sh
Created June 15, 2021 14:16
Delete remote branches older than 2 months
#!/bin/sh
for branch in $(git branch -a | sed 's/^\s*//' | sed 's/^remotes\///' | grep -v 'master$\|develop$'); do
if ! ( [[ -f "$branch" ]] || [[ -d "$branch" ]] ) && [[ "$(git log $branch --since "2 month ago" | wc -l)" -eq 0 ]]; then
name=$(echo "$branch" | sed 's/remotes\/origin\///')
git push origin --delete "${name}"
fi
done

Keybase proof

I hereby claim:

  • I am reistiago on github.
  • I am reistiago (https://keybase.io/reistiago) on keybase.
  • I have a public key whose fingerprint is 8C5E E26E 0328 4D54 7D2F 1FC5 87FF A0F8 1264 07D4

To claim this, I am signing this object: