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 | |
curl -sSL https://get.docker.com/ubuntu/ | sudo sh | |
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 |
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://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 | |
cat >/etc/consul/consul.conf <<EOF | |
{ | |
"data_dir": "/var/lib/consul/data", | |
"ui_dir": "/var/lib/consul/ui", | |
"client_addr": "0.0.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
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"log" | |
"os" | |
"os/exec" | |
"regexp" | |
"path" |
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
#cloud-config | |
hostname: myhostname | |
coreos: | |
etcd: | |
addr: $private_ipv4:4001 | |
peer-addr: $private_ipv4:7001 | |
units: | |
- name: etcd.service |
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
package main | |
import ( | |
"fmt" | |
"github.com/docker/machine/utils" | |
) | |
func main() { | |
err := utils.GenerateCert([]string{"192.168.2.11"}, "n2/server.pem", "n2/server-key.pem", "ca.pem", "ca-key.pem", "n1", 2048) | |
if err != nil { |
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
#START http://boxstarter.org/package/url?https://gist.githubusercontent.com/jmcarbo/20419d2df56557761e56fae42e2c6955/raw/8d064af4782ef4e10b0baa62c42cd7d2868a0b02/installwin | |
#START http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/jmcarbo/20419d2df56557761e56fae42e2c6955/raw/8d064af4782ef4e10b0baa62c42cd7d2868a0b02/installwin | |
#Set-ExecutionPolicy Unrestricted -force | |
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
Enable-RemoteDesktop | |
cinst chocolatey | |
cinst chocolateygui | |
cinst nugetpackageexplorer |
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
filetype plugin indent on | |
" show existing tab with 4 spaces width | |
set tabstop=4 | |
" when indenting with '>', use 4 spaces width | |
set shiftwidth=4 | |
" On pressing tab, insert 4 spaces | |
set expandtab |
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
docker ps -a | awk '{ print $1; }' |xargs docker rm -f | |
apt-get purge docker-engine | |
curl -fsSL https://experimental.docker.com/ | sh | |
sudo usermod -aG docker deploy | |
docker network create -d ipvlan --subnet=172.20.4.0/22 --gateway=172.20.4.99 -o ipvlan_mode=l2 -o parent=eno1 ddd |
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
dn: CN=jmcarbo,OU=Usuaris,DC=BLA,DC=COM | |
changetype: modify | |
replace: userAccountControl | |
userAccountControl: 512 | |
- |
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 | |
#This script require sox | |
#sudo apt-get install sox | |
TIME=$(date +%d-%b-%y_%H%M-%Z) | |
# Get sink monitor: | |
MONITOR=$(pactl list | grep -A2 '^Source #' | \ | |
grep 'Name: .*\.monitor$' | awk '{print $NF}' | tail -n1) | |
# Record it raw, and convert to a wav |