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: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
if [ ! -e /home/jenkins/.gvm/scripts/gvm ]
then
wget https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer
chmod +x gvm-installer
./gvm-installer
fi
source /home/jenkins/.gvm/scripts/gvm
gvm install go1
install -m 755 arch-bootstrap.sh /usr/local/bin/arch-bootstrap
arch-bootstrap boot1
tar -C boot1 -c . | docker import - archboot
cabal install
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: aeson-0.6.2.1/installed-b7c... (user goal)
trying: app-0.1 (user goal)
next goal: wreq (dependency of app-0.1)
rejecting: wreq-0.1.0.1, 0.1.0.0 (conflict: aeson==0.6.2.1/installed-b7c...,
wreq => aeson>=0.7.0.3)
Backjump limit reached (change with --max-backjumps).
@michaelneale
michaelneale / gist:8e4179297ebb63370804
Created July 7, 2014 10:13
Systemd in docker (non priv attempt)
FROM cloudbees/archbase
RUN systemctl mask tmp.mount
RUN rm /usr/lib/systemd/system/tmp.mount && ln -s '/dev/null' '/usr/lib/systemd/system/tmp.mount'
RUN cd /usr/lib/systemd/system/ \
&& sed -i 's/PrivateTmp=yes//g' systemd-timedated.service \
&& sed -i 's/PrivateTmp=yes//g' systemd-machined.service \
&& sed -i 's/PrivateTmp=yes//g' systemd-hostnamed.service \
&& sed -i 's/PrivateTmp=yes//g' systemd-localed.service \
&& sed -i 's/PrivateTmp=yes//g' systemd-timesyncd.service \
&& sed -i 's/PrivateTmp=yes//g' systemd-journal-gatewayd.service
@michaelneale
michaelneale / gist:d7896014192f5c51e2f8
Created July 8, 2014 00:31
Vagrantfile for docker
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
#!/bin/sh
if [ ! -d /opt/android/android-sdk-linux/tools/proguard ]
then
echo "Downloading SDK directory for Proguard"
curl -O http://dl.google.com/android/android-sdk_r22.6.2-linux.tgz
tar -zxvf android-sdk_r22.6.2-linux.tgz
echo "Copying proguard directory..."
cp -r android-sdk-linux/tools/proguard /opt/android/android-sdk-linux/tools
fi
/* Doony v1.6 | (c) 2014 Kevin Burke | License: MIT */
!function(window,document){var absPos=function(element){var offsetLeft,offsetTop;if(offsetLeft=offsetTop=0,element.offsetParent)do offsetLeft+=element.offsetLeft,offsetTop+=element.offsetTop;while(null!==(element=element.offsetParent));return[offsetLeft,offsetTop]},ProgressCircle=function(params){this.canvas=params.canvas,this.minRadius=params.minRadius||15,this.arcWidth=params.arcWidth||5,this.gapWidth=params.gapWidth||3,this.centerX=params.centerX||this.canvas.width/2,this.centerY=params.centerY||this.canvas.height/2,this.infoLineLength=params.infoLineLength||60,this.horizLineLength=params.horizLineLength||10,this.infoLineAngleInterval=params.infoLineAngleInterval||Math.PI/8,this.infoLineBaseAngle=params.infoLineBaseAngle||Math.PI/6,this.context=this.canvas.getContext("2d"),this.width=this.canvas.width,this.height=this.canvas.height,this.circles=[],this.runningCount=0};ProgressCircle.prototype={constructor:ProgressCircle,addEntry:function(params){return
> hadoop --version
Error: No command named `--version' was found. Perhaps you meant `hadoop -version'
> hadoop -version
Error: No command named `-version' was found. Perhaps you meant `hadoop version'
> hadoop version
Hadoop 2.3.0-cdh5.0.2