Last active
January 18, 2018 01:54
-
-
Save bo01ean/824ee0b7b872488f321e6b9e7e1dc32e to your computer and use it in GitHub Desktop.
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
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