Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am bwhmather on github.
  • I am bwhmather (https://keybase.io/bwhmather) on keybase.
  • I have a public key ASBri6MY1RlNTLY4Sy34gaGLuRtf2-Hx7vGtZLwa85Covgo

To claim this, I am signing this object:

@bwhmather
bwhmather / rerun
Last active Aug 4, 2017
Run a command when a file changes in the current directory
View rerun
#!/usr/bin/sh
while true; do
reset;
"$@";
inotifywait -e MODIFY --recursive .;
done
@bwhmather
bwhmather / xcf2png
Created Jan 9, 2014
simple script for converting from xcf to png using gimp
View xcf2png
#!/usr/bin/env python
from subprocess import call
from sys import argv
from os.path import abspath
# encode + decode required for python 3
# TODO make sure that scheme escapes in the same way as c
infile = abspath(argv[1]).encode('unicode_escape').decode('utf-8')
outfile = abspath(argv[2]).encode('unicode_escape').decode('utf-8')