Skip to content

Instantly share code, notes, and snippets.

View tcahill's full-sized avatar

Tom Cahill tcahill

  • San Francisco, CA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am tcahill on github.
  • I am tcahill (https://keybase.io/tcahill) on keybase.
  • I have a public key ASDCDcxaot7d_u0PMnw5Qevtp1FNpu4FHmnORcrMPHLO8Ao

To claim this, I am signing this object:

# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
$script = <<SCRIPT
source /home/vagrant/.bashrc
if [ ! -d /usr/local/go ]; then
@tcahill
tcahill / subfn
Created March 24, 2013 05:55
Replace a regular expression in filename(s) with another expression
#!/usr/bin/python
import argparse
import os
import re
parser = argparse.ArgumentParser(description='Replace regex in filenames.')
parser.add_argument('files', metavar='F', nargs='+',
help='Files to operate on (Ignores directories)')
parser.add_argument('match', metavar='M', nargs=1,