Skip to content

Instantly share code, notes, and snippets.

@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()
@dbapl
dbapl / keybase.md
Last active September 27, 2017 08:41

Keybase proof

I hereby claim:

  • I am dbapl on github.
  • I am dariuszb (https://keybase.io/dariuszb) on keybase.
  • I have a public key whose fingerprint is 84ED 45A4 A8E7 77C0 7591 1E1B B720 3050 F822 AAE8

To claim this, I am signing this object:

@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 / git-unpack-refs.sh
Created January 5, 2016 21:30
Unpack git refs. Ideal for svn to git migration, so you can copy refs from remote directory.
git show-ref | while read f; do echo $(echo $f); echo $(echo $f| cut -c1-40); echo $(echo $f| cut -c42-); echo $(echo $f| cut -c1-40) > $(echo $f| cut -c42-) ; done
@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