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 | |
# Requirements: | |
# Install expect and make sure it's on your path | |
# sftp with working '-r' option | |
GIT_DIR=$1 | |
HOST=$2 | |
PASSWORD=$3 |
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 | |
# Run in the project's root | |
git ls-files | sed 's:[^/]*$::'| sed '/^$/d' | sort -u |
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
# Example data line: | |
# 06/01 06/01 Bestbuy.com 00009944 888-237-8289 MN -$49.26 | |
echo '06/01 06/01 Bestbuy.com 00009944 888-237-8289 MN -$49.26' \ | |
| sed 's:[0-9]\+/[0-9]\+:&,:g' \ | |
| sed 's: -\?\$[0-9]\+:,&:' |
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 | |
read oldrev newrev refname | |
REPO="/my/repo.git" | |
BRANCH=`echo $refname | sed -n 's/^refs\/heads\///p'` | |
BRANCH_DIR="/etc/puppet/environments" | |
#Unset GIT_DIR and GIT_WORK_DIR so git chooses them by current directory | |
#Based on behaviour of git post-receive hook, undocumented | |
unset GIT_DIR |
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
#Print a list of URLs from sitemap.xml to stdout | |
xpath -q -e '/*/*/*/text()' sitemap.xml |
NewerOlder