This file contains hidden or 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 | |
if [ "$#" -ne 3 ]; then | |
echo "Usage: deploy REPO REF DIR" | |
echo "e.g. deploy /opt/git/example.git master /var/www/example.com" | |
exit | |
fi | |
REPO=$1 | |
REF=$2 |
This file contains hidden or 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
#!/Library/Frameworks/Python.framework/Versions/2.7/bin/python | |
from bs4 import BeautifulSoup | |
import urllib2, urllib | |
import re, os | |
# create a password manager | |
password_mgr = urllib2.HTTPPasswordMgrWithDefaultRealm() | |
baseurl = "http://example.com/files/" | |
user = 'foo' | |
password = 'bar' |
This file contains hidden or 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 | |
if [ $# == 1 ] && [ $1 != "--daily" ]; then | |
declare -a databases=("$1") | |
else | |
declare -a databases=("db1 db2") | |
fi | |
for database in "${databases[@]}" | |
do |
NewerOlder