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
[share] | |
path = /usr/share | |
writable = yes | |
guest ok = yes | |
create mode = 0777 | |
directory mode = 0777 | |
read only = no |
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
global | |
daemon | |
maxconn 256 | |
defaults | |
mode http | |
timeout connect 5000ms | |
timeout client 50000ms | |
timeout server 50000ms |
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
# TODO install go 1.3 or later | |
sudo apt-get install btrfs-tools libsqlite3-dev libdevmapper-dev | |
git clone https://github.com/docker/docker | |
cd docker | |
AUTO_GOPATH=1 ./hack/make.sh dynbinary | |
cd bundles/latest/dynbinary/ |
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
wget https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz -O /tmp/go.tar.gz | |
pushd /tmp | |
tar xf go.tar.gz | |
sudo mv go /usr/local/go | |
sudo rm -fr /etc/alternatives/go | |
sudo ln -s /usr/local/go/bin/go /etc/alternatives/go | |
popd |
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
#!/bin/bash | |
if [ -n "$DEBUG" ] | |
then | |
trap 'read -p "$0($LINENO) $BASH_COMMAND"' DEBUG | |
fi | |
echo hello | |
echo world |
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 dhclient eth0 |
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
# -*- coding: utf-8 -*- |
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
# Get jobs | |
curl http://192.168.0.1:8080/api/json | |
# Get job config | |
curl http://192.168.0.1:8080/job/${JOB_NAME}/config.xml | |
# Create a job |
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
[global] | |
trusted-host = my.pypi.mirror | |
extra-index-url = http://my.pypi.mirror:8000/simple/ |
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
[ssh_connection] | |
ssh_args = -F ssh_config |