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/sh | |
### BEGIN INIT INFO | |
# Provides: kestrel | |
# Required-Start: $local_fs $network $named $time $syslog | |
# Required-Stop: $local_fs $network $named $time $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Description: Script to run asp.net 5 application in the background | |
### END INIT INFO |
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 | |
# | |
#First, prompt user to set the timezone | |
sudo dpkg-reconfigure tzdata | |
#Restart NTP service, force time update | |
sudo service ntp stop | |
export NTPDATE_USE_NTP_CONF | |
sudo ntpdate-debian -t 10 |
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
#Adds a locale to a debian system in non-interactive mode | |
sudo sed -i '/^#.* en_US.* /s/^#//' /etc/locale.gen | |
sudo locale-gen |
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
# The sed script strips off all the comments so that we can | |
# document what we're doing in-line with the actual commands | |
# Note that a blank line (commented as "defualt" will send a empty | |
# line terminated with a newline to take the fdisk default. | |
sed -e 's/\t\([\+0-9a-zA-Z]*\)[ \t].*/\1/' << EOF | fdisk /dev/sdb | |
d # delete existing partition | |
n # new partition | |
p # primary partition | |
1 # partition number 1 | |
# default - start at beginning of disk |
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
UPSTREAM=`curl "http://jenkins:8080/job/upstreamjob/lastBuild/api/xml?depth=1&xpath=/freeStyleBuild/number"` | |
NUMBER=`echo "$UPSTREAM" | sed "s/[^0-9]//g"` | |
wget http://jenkins:8080/job/upstreamjob/$NUMBER/artifact/workspace/VERSION -O VERSION |
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
apt-get install git curl chromedriver | |
sudo ln -s /usr/lib/chromium/chromedriver /usr/bin | |
#Run rvm plugin 1.9.3 | |
cd $WORKSPACE | |
bash -c "source ~/.rvm/scripts/rvm && rvm use --install --create 1.9.3 && export > rvm.env" |