Skip to content

Instantly share code, notes, and snippets.

View michaelneale's full-sized avatar
😀
Not updating github status

Michael Neale michaelneale

😀
Not updating github status
View GitHub Profile
@michaelneale
michaelneale / gist:5610641
Created May 20, 2013 06:01
outside home dir
[root@ip-10-116-195-128 etc]# ls /home
cloudbees deployer-test2 dom-bmcainsc dom-zvtiobdv failingcc3 gc-integration-1 ptest3 selenium50d3 transformers1
confusion devtobereleased dom-imxrumga failingcc fdechery gc-integration-test-1 rcampbell64 sptest2 vpandeyatest4
cyrille-leclerc dom-blbeajzl dom-tyuzfpbw failingcc2 fd-test-cc rcampbelldsp1 testingfailures
[root@jenkins-cloudbees ~]# ls /home
cloudbees
,;;;;;,
,;;;;;;;;,
;;;'____ ;
;;;(\\\\\;
`/'((|||||
___< C))||||
,' \__(((||),
| \ _)))))))\,_
/| |/"\`\`""""' |)
; \ \ ) \_____/_|
@michaelneale
michaelneale / gist:6034145
Created July 19, 2013 00:10
Low-ish cal Old Fashioned
Dice/small slice some orange bits, put in bottom of heavy glass
Add ice
Add half a teaspon of Bitters over the orange, and muddle (not so much you get orange bits floating though)
Add whiskey/bourbon (1 shot) - Bulleit Bourbon has nice flavour for me (and cheap) - don't waste fancy single malt
** Slowly add some no-sugar soda (we call it "lemonade" in .au - but in US it is NOT lemonade) - this is for sweetness
Add a few thing orange half slices, and some orange peel
Few drops of bitters on top
Serve with a straw if you like
@michaelneale
michaelneale / gist:6051516
Created July 22, 2013 05:40
Apple plist in json parody
{
key: "yeah of birth",
integer: 1965,
key: "Pets Names",
array : {
key: "Picture",
data: "nklfdsmkfndlksfndksl"
},
key: "City of birth",
string: "Springfield"
3a4,5
> <actions/>
> <description></description>
11a14,17
> <nectar.plugins.rbac.groups.JobProxyGroupContainer plugin="nectar-rbac@3.9">
> <groups/>
> </nectar.plugins.rbac.groups.JobProxyGroupContainer>
> <com.cloudbees.jenkins.plugins.PublicKey plugin="cloudbees-public-key@1.1"/>
24a31
> <deploymentDescription>${JOB_NAME} #${BUILD_NUMBER}</deploymentDescription>
# INSTALL AND CONFIGURE BEES SDK
export BEES_HOME=/opt/cloudbees/cloudbees-sdk/
export PATH=$PATH:$BEES_HOME
if [ ! -d ~/.bees ]; then
bees init -f -a <account name> -ep us -k $BEES_API -s $BEES_SECRET
fi
bees plugin:install com.cloudbees.sdk.plugins:bg-plugin
# DEPLOY
@michaelneale
michaelneale / gist:9635744
Last active February 27, 2018 03:39
systemd script for jenkins OPEs (slaves)
[Unit]
Description=CloudBeees On Prem executor
Documentation=https://developer.cloudbees.com/bin/view/DEV/On-Premise+Executors
Requires=network.target
After=multi-user.target
[Service]
Type=simple
ExecStart=/opt/java6/bin/java -jar /usr/share/jenkins-cli.jar -s https://cloudbees.ci.cloudbees.com on-premise-executor -fsroot /workspace -labels docker -nam\
e docker-builder-1
@michaelneale
michaelneale / gist:547b30f7f851450b9687
Created May 9, 2014 01:19
script for meteor build/test
export DISPLAY=:1
Xvfb :1 &
#
# Fetch and install the dependencies
#
go_version=go1.2.2.linux-amd64
if [ ! -e $go_version.tar.gz ]
then
wget https://storage.googleapis.com/golang/$go_version.tar.gz
tar xf $go_version.tar.gz
fi
export GOROOT=$WORKSPACE/go