Skip to content

Instantly share code, notes, and snippets.

View dhoelle's full-sized avatar

Donald Hoelle dhoelle

  • San Francisco, CA
View GitHub Profile
@dhoelle
dhoelle / pre-commit
Last active June 22, 2016 21:43 — forked from Simbul/pre-commit
Git hook to prevent commits on a staging/production branch
#!/usr/bin/env ruby
# This pre-commit hook will prevent any commit to forbidden branches
# (by default, "development", "staging" and "production").
# Put this file in your local repo, in the .git/hooks folder
# and make sure it is executable.
# The name of the file *must* be "pre-commit" for Git to pick it up.
FORBIDDEN_BRANCHES = ["development", "staging", "production"]
### Keybase proof
I hereby claim:
* I am dhoelle on github.
* I am dhoelle (https://keybase.io/dhoelle) on keybase.
* I have a public key ASCmo1k-_zLlJEMy-rdNm1aKnf1C8JXTsw6iZpeEd-UopQo
To claim this, I am signing this object:
@dhoelle
dhoelle / uuid.sh
Created June 14, 2022 06:26
bash function to generate a random, lower-cased UUID in MacOS
uuid () {
local newuuid=${$(uuidgen):l}
echo -n ${newuuid} | pbcopy
echo "copied ${newuuid} to clipboard"
}