This file contains 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
apiVersion: v1 | |
kind: List | |
items: | |
- apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: weave-net | |
annotations: | |
cloud.weave.works/launcher-info: |- | |
{ |
This file contains 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/sh | |
# http://iamvery.com/2013/11/16/tmux-pairing-anywhere-on-your-box.html | |
command="$(basename "$0")" | |
# Make sure dependencies are installed | |
[ ! "$(command -v gh-auth)" ] && echo "gh-auth not found (gem install github-auth)" && exit 1 | |
[ ! "$(command -v tmux)" ] && echo "tmux not found" && exit 1 | |
help(){ |
This file contains 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
set-option -g prefix C-space | |
bind-key C-space last-window | |
set -g base-index 1 | |
set -s escape-time 0 | |
set-option -g history-limit 200000 | |
set-option -g status-keys vi | |
setw -g mode-keys vi | |
unbind p | |
bind p paste-buffer |
This file contains 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 | |
echo "Installing dependencies ..." | |
sudo apt-get update | |
sudo apt-get install -y unzip curl jq | |
echo "Determining Consul version to install ..." | |
CHECKPOINT_URL="https://checkpoint-api.hashicorp.com/v1/check" | |
if [ -z "$CONSUL_DEMO_VERSION" ]; then | |
CONSUL_DEMO_VERSION=$(curl -s "${CHECKPOINT_URL}"/consul | jq .current_version | tr -d '"') | |
fi |
This file contains 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/sh | |
# http://iamvery.com/2013/11/16/tmux-pairing-anywhere-on-your-box.html | |
command="$(basename "$0")" | |
# Make sure dependencies are installed | |
[ ! "$(command -v gh-auth)" ] && echo "gh-auth not found (gem install github-auth)" && exit 1 | |
[ ! "$(command -v tmux)" ] && echo "tmux not found" && exit 1 | |
help(){ |
This file contains 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 | |
set -euo pipefail | |
bosh_deployment=~/workspace/bosh-deployment | |
if [ ! -d "$bosh_deployment" ]; then | |
echo "try: git clone https://github.com/cloudfoundry/bosh-deployment.git ~/workspace/bosh-deployment" | |
exit 1 | |
fi | |
director_dir=~/workspace/bosh-lite |
This file contains 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 ( | |
"bufio" | |
"crypto/rand" | |
"flag" | |
"fmt" | |
"log" | |
"net" | |
"os" |
This file contains 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
# Aliases | |
alias gfd='bosh create release --force && bosh -n upload release && bosh -n deploy' | |
alias bsoh='bosh' | |
alias bsho='bosh' | |
alias box='bosh' | |
# Restart bosh-lite and upload the stemcell | |
function blup() { | |
stemcell=$1 |
This file contains 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 | |
set -e | |
set -x | |
runs=$(seq 100 200 1000) | |
dir=/var/vcap/data | |
echo cfq > /sys/block/sda/queue/scheduler | |
#create files, need different files not to share cached one |
This file contains 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
var _ = FDescribe("DEBUG", func() { | |
var ( | |
client *runner.RunningGarden | |
args []string | |
) | |
BeforeEach(func() { | |
// we need to pass --properties-path to prevent guardian from deleting containers | |
// after restarting the server | |
propertiesDir, err := ioutil.TempDir("", "props") |