Skip to content

Instantly share code, notes, and snippets.

@dbapl
dbapl / git-rename.sh
Last active January 19, 2018 19:01 — forked from knu/gist:111055
How to mass-rename tags and push them with Git
# Rename tags named 1.X.X to 1.0X.X and push the tag changes
git tag -l | grep 1. | while read t; do n="1.0${t#*.}"; echo $n; git tag $n $t; git push --tags ; git tag -d $t; git push origin :refs/tags/$t ; done
@dbapl
dbapl / .gitattributes
Last active August 31, 2022 09:56 — forked from kbaird/git_binary_diff_gist
Diff setup for ~/.gitconfig, .gitattributes file for repository and helper scripts.
*.ods diff=odf
*.odt diff=odf
*.odp diff=odf
*.pdf diff=pdf
*.PDF diff=pdf
*.apk diff=apk
*.bz2 diff=bz2
*.gz diff=gzip
*.zip diff=zip
*.tar diff=tar
@dbapl
dbapl / beep.py
Created April 23, 2017 16:04 — forked from astraw/beep.py
Simple pushover.net notifier
#!/usr/bin/env python
import httplib, urllib
import argparse
def main():
parser = argparse.ArgumentParser(
description='send pushover.net notification')
parser.add_argument('note', metavar='note', default=['(no note)'], nargs='*')
args = parser.parse_args()