- download the
git-clean_branchand place it in a directory included in your PATH - (optional) set your default branch name to environment variable
GIT_DEFAULT_BRANCH- when each repository has a different default branch, it might be convenient to use direnv
- (optional) set alias ex.
git config alias.cb "clean_branch" - use
git clean_branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [normal] | |
| vagrant ansible_ssh_host=192.168.33.10 ansible_ssh_user=vagrant ansible_ssh_private_key_file=~/.vagrant.d/insecure_private_key | |
| [loopback] | |
| vagrant ansible_ssh_host=127.0.0.1 ansible_ssh_port=2222 ansible_ssh_user=vagrant ansible_ssh_private_key_file=~/.vagrant.d/insecure_private_key | |
| [ip_address] | |
| 192.168.33.10 ansible_ssh_user=vagrant ansible_ssh_private_key_file=~/.vagrant.d/insecure_private_key | |
| [loopback_ip] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pixela2img import Pixela2Img | |
| from PIL import Image | |
| converter = Pixela2Img() | |
| congratul = converter.convert('ryosms', 'congratulations', date='20180210') | |
| ations = converter.convert('ryosms', 'congratulations', date='20190216') | |
| width = congratul.width + ations.width + 1 | |
| height = congratul.height |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param( | |
| [int]$ExitCode = 0, | |
| [int]$WaitSeconds = 60 | |
| ) | |
| Write-Output("Start awesome-batch (WaitSeconds: {0})" -f $WaitSeconds) | |
| # wait 1 minute | |
| Start-Sleep -Seconds $WaitSeconds |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # how to use | |
| # 1. download this file (e.g. ~/.git_alias) | |
| # 2. include this file from .gitconfig | |
| # [include] | |
| # path = ~/.git_alias | |
| [alias] | |
| # Delete all merged local branch | |
| cleanbranch = !"git switch develop && git pull --prune && git branch --merged | egrep -v '(accept|develop|production|master|main)' | xargs -n1 git branch -d" | |
| cb = cleanbranch |
OlderNewer