Skip to content

Instantly share code, notes, and snippets.

@bo01ean
Last active January 18, 2018 01:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bo01ean/824ee0b7b872488f321e6b9e7e1dc32e to your computer and use it in GitHub Desktop.
Save bo01ean/824ee0b7b872488f321e6b9e7e1dc32e to your computer and use it in GitHub Desktop.
function installTeamCityAgent()
{
TARGET=~/Desktop/TC/
CONF=conf/buildAgent.properties
rm -rf $TARGET
cd /tmp/
rm buildAgent.zip
curl -O https://teamcity.illumina.com/update/buildAgent.zip
unzip buildAgent.zip -d $TARGET
rm buildAgent.zip
cd $TARGET
echo "Installing JAVA, may require password"
brew cask install caskroom/versions/java8
cp conf/buildAgent.dist.properties $CONF
echo >> "\n" $CONF
echo "serverUrl=https://teamcity.illumina.com" >> $CONF
echo "name="`hostname` >> $CONF
}
function installRancher()
{
RANCHER_VERSION=v0.12.5
cd /tmp/
curl -k https://releases.rancher.com/compose/$RANCHER_VERSION/rancher-compose-linux-amd64-$RANCHER_VERSION.tar.gz -o rancher-compose.zip
sudo tar xvfz rancher-compose.zip
sudo mv ./rancher-compose-$RANCHER_VERSION/rancher-compose /usr/local/bin/rancher-compose
sudo chmod +x /usr/local/bin/rancher-compose
unlink rancher-compose-$RANCHER_VERSION
}
function goMeteor()
{
curl -k https://install.meteor.com/?release=1.6.0.1 | sh
}
function deleteBranch()
{
BRANCH=$1
git push origin :$BRANCH
git branch -D $BRANCH
}
function listbranches ()
{
git for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'
}
function createbranch ()
{
git checkout -b $1
git push -u origin $1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment