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 | |
[email protected] | |
CLIENT=`hostname` | |
NAME=`hostname -s` | |
. /var/backups/backup.conf | |
SERVER_ROOT="/var/backups/systems/$NAME" | |
SSH_OPT="-i /var/backups/.ssh/id_rsa" |
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
set -ex | |
git clean -dfx | |
echo "Setup dependancies" | |
eval $(perl -Mlocal::lib=support) | |
wget -q -O - http://cpanmin.us | perl - --notest App::cpanminus | |
./support/bin/cpanm --notest \ | |
CPAN::Uploader \ | |
Module::Install \ | |
TAP::Formatter::JUnit |
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
CONFIGURATIONS="Distribution Release" | |
ProvisionRelease=9807906A-42AF-425E-BD50-80D92E523997.mobileprovision | |
ProvisionDistribution=9EB28E74-33F5-4DDA-9E10-A4C9CC7F5294.mobileprovision |
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
function loadHTML(node, url, timeout) { | |
if (timeout == undefined) | |
timeout = 10000; | |
var req = new XMLHttpRequest(); | |
var timer = setTimeout(function() { | |
try { | |
req.abort(); | |
} catch(e) {} | |
navigator.notification.loadingStop(); |
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
navigator.notification.alert( | |
"There was an error connecting to the Internet. Would you like to retry?.", | |
"No Internet connection", | |
"No", | |
"Yes", | |
{ | |
onClose: function(buttonIndex) { | |
if (buttonIndex == 1) | |
retryConnection(); | |
} |
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 | |
USER=hudson | |
PASS=password | |
HUDSON_URL=http://$USER:$PASS@<my-build-server>:8080 | |
JOB=$1 | |
TOKEN=$2 | |
CAUSE=$2 | |
set -x |
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
set -ex | |
export OUTPUT=$WORKSPACE/logs | |
rm -rf $OUTPUT | |
mkdir -p $OUTPUT | |
# Pull in prerequisite modules | |
PERL5LIB=`perl -e 'use Config; my $dir = $Config{sitelib}; $dir =~ s|/usr|$ENV{WORKSPACE}|; print $dir'` | |
export PERL5LIB | |
export PERL_TEST_HARNESS_DUMP_TAP=$OUTPUT | |
export TEST_VERBOSE=1 |
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
SDKS="iphoneos3.0" | |
CONFIGURATIONS="Distribution Release" | |
ProvisionDistribution=<CERTIFICATE_UUID>.mobileprovision | |
ProvisionRelease=<CERTIFICATE_UUID>.mobileprovision |
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 | |
function failed() | |
{ | |
echo "Failed: $@" >&2 | |
exit 1 | |
} | |
set -ex | |
export OUTPUT=$WORKSPACE/output |