Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jamesbloomer on github.
  • I am jamesbloomer (https://keybase.io/jamesbloomer) on keybase.
  • I have a public key whose fingerprint is 96FD AADC 4246 1846 1FDB 6C76 0812 66FF BEA2 645B

To claim this, I am signing this object:

@jamesbloomer
jamesbloomer / gist:fe23909ef1ee955c849c
Created September 23, 2014 11:31
Commit msg check
#!/bin/sh
grep -E -q 'DF-[0-9]{4}' $1 || {
echo >&2 "No ticket number DF-XXXX in commit message"
exit 1
}
@jamesbloomer
jamesbloomer / commit-switch.sh
Created July 2, 2012 09:55
Script to read a file containing pair information, randomly select one and set it as global config
# Expects the pairs file to be in the following format
#
# user1 user1@company.com
# user2 user2@company.com
test "$IGNORE_COMMIT_SWITCH" == "TRUE" && exit 0
readarray input < ~/.pairs_list
number=${#input[*]}