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
require 'rubygems' | |
require 'uuid' | |
# import random | |
mac = [ 0x00, 0x16, 0x3e, | |
rand(0x7f), | |
rand(0xff), | |
rand(0xff) ] | |
puts mac.map{|a| sprintf("%02x", a).upcase}.join(':') |
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
--format nested | |
--color |
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
require 'autotest/fsevent' | |
require 'autotest/growl' |
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
@mixin show-grid($grid-img){ | |
background-image: url('/images/#{$grid-img}.png'); | |
background-repeat: repeat; | |
background-position: 0 0; | |
} |
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 -y install golang | |
echo "export GOPATH=/golang" >> /root/.profile | |
echo "export GOBIN=/golang/bin" >> /root/.profile | |
mkdir -p /golang/bin | |
echo $GOPATH | |
apt-get -y install fuse git vim |
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
sudo apt-get update -y && sudo apt-get install -y -q curl build-essential ca-certificates git mercurial bzr | |
sudo mkdir -p /goroot && sudo chown -R `whoami` /goroot && curl https://storage.googleapis.com/golang/go1.4.1.linux-amd64.tar.gz | tar xvzf - -C /goroot --strip-components=1 | |
sudo mkdir -p /gopath && sudo chown -R `whoami` /gopath | |
export GOROOT=/goroot | |
export GOPATH=/gopath | |
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin | |
echo "export GOROOT=/goroot" >> ~/.profile | |
echo "export GOPATH=/gopath" >> ~/.profile | |
echo "export PATH=$PATH:$GOROOT/bin:$GOPATH/bin" >> ~/.profile |
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
curl -sSL https://get.docker.com/ubuntu/ | sudo sh | |
echo export DOCKER_HOST=tcp://localhost:2375 >> ~/.bashrc | |
sudo bash -c "echo DOCKER_OPTS=\"-H tcp://0.0.0.0:2375\" >> /etc/default/docker" | |
sudo service docker restart | |
sudo usermod -a -G docker jmcarbo |
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
rm -rf /tmp/install | |
mkdir -p /tmp/install | |
cd /tmp/install | |
apt-get update | |
apt-get install -y wget unzip dnsutils | |
wget https://dl.bintray.com/mitchellh/consul/0.4.1_linux_amd64.zip | |
unzip 0.4.1_linux_amd64.zip | |
install consul /usr/local/bin/consul | |
mkdir -p /etc/consul | |
mkdir -p /var/lib/consul |
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
rm -rf /tmp/install | |
mkdir -p /tmp/install | |
cd /tmp/install | |
apt-get update | |
apt-get install -y wget unzip dnsutils | |
wget https://dl.bintray.com/mitchellh/consul/0.4.1_linux_amd64.zip | |
unzip 0.4.1_linux_amd64.zip | |
install consul /usr/local/bin/consul | |
mkdir -p /etc/consul | |
mkdir -p /var/lib/consul |
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
rm -rf /tmp/install | |
mkdir -p /tmp/install | |
cd /tmp/install | |
apt-get update | |
apt-get install -y wget unzip dnsutils | |
wget https://dl.bintray.com/mitchellh/consul/0.4.1_linux_amd64.zip | |
unzip 0.4.1_linux_amd64.zip | |
install consul /usr/local/bin/consul | |
mkdir -p /etc/consul | |
mkdir -p /var/lib/consul |