This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
source secrets.sh | |
for i in $(ls /path/to/directory/*.JPG) ; do | |
./openphoto -h yourhost -e /photo/upload.json -F "photo=@$i" -X POST; | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
debug=`git diff --cached | grep -C 2 -E '+\s*And (open|show me the page|save_and_open_page)'` | |
pry=`git diff --cached | grep -C 2 -E 'binding.pry'` | |
debugger=`git diff --cached | grep -C 2 debugger` | |
console_log=`git diff --cached | grep -C 2 console.log` | |
conflicts=`git diff --cached | grep -C 2 -E '<<<|>>>'` | |
if [ -n "$debug" ]; then | |
echo "debugging statements added in this commit" |