Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
echo "Downloading..."
curl -L https://github.com/thegeorgeous/led-backlight-cmstorm/blob/master/led-backlight-cmstorm?raw=true > ~/Applications/led-backlight-cmstorm
echo "Making executable"
chmod +x ~/Applications/led-backlight-cmstorm
echo "Running..."
~/Applications/led-backlight-cmstorm
#!/bin/bash
# Original version (C) 2011 by jonasvp
# Modified version by danwerner
# Save this file as .git/hooks/pre-commit, make it executable, and it will
# thank you by saving you from common mistakes *before* deployment.
# Conflict markers
git diff --cached --diff-filter=ACMR | awk '/\+(<<<[<]<<<|>>>[>]>>>|===[=]===$)/ { exit 1 }'
CODE=$?