Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
FEATURE="$1"
if [ -z ${FEATURE} ]; then
echo "usage: $0 <feature branch>" >&2
exit 2
fi
git checkout develop
if [ $? -ne 0 ]; then
exit 1

Keybase proof

I hereby claim:

  • I am mattimustang on github.
  • I am mattimustang (https://keybase.io/mattimustang) on keybase.
  • I have a public key whose fingerprint is 77BE 54E6 BB3E AE6E 2D4F 6560 85C0 16D5 5CE6 C16B

To claim this, I am signing this object:

@mattimustang
mattimustang / ip_regexps.py
Created March 3, 2014 23:09
IPv4 and IPv6 Regular Expressions
import re
IP4_RE = r'(25[0-5]|2[0-4]\d|[0-1]?\d?\d)' \
'(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}'
IP6_HEX_RE = r'(?:[0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}'
IP6_HEX_COMPRESSED_RE = r'((?:[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4})*)?)::' \
'((?:[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4})*)?)'
IP46_COMPAT_RE = r'((?:[0-9A-Fa-f]{1,4}:){6,6})' \
'(25[0-5]|2[0-4]\d|[0-1]?\d?\d)' \
'(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}'