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
# nuke the queue | |
redis-cli FLUSHALL | |
# nuke anything currently running | |
pkill -9 celeryd | |
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
# alias to edit commit messages without using rebase interactive | |
# example: git reword commithash message | |
reword = "!f() {\n GIT_SEQUENCE_EDITOR=\"sed -i 1s/^pick/reword/\" GIT_EDITOR=\"printf \\\"%s\\n\\\" \\\"$2\\\" >\" git rebase -i \"$1^\";\n git push -f;\n}; f" | |
# delete all repos with 1 per line in a text file in powershell | |
Get-Content .\repos-to-delete.txt | ForEach-Object { gh repo delete $_ --yes } | |
# delete all private repos (this can not be undone) | |
gh repo list --limit 1000 --json isPrivate,nameWithOwner | jq -r '.[] | select(.isPrivate == true) | .nameWithOwner' | xargs -n 1 gh repo delete --yes |