git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
#!/usr/bin/ruby | |
require 'json' | |
require 'net/http' | |
require 'shellwords' | |
require 'time' | |
require 'uri' | |
require 'yaml' | |
@target_sidecar_image = YAML.load(YAML.load(`kubectl --namespace=istio-system get configmap istio-sidecar-injector -o yaml`)['data']['config'])['template'].match(/.*(eu.gcr.io\/at-artefacts\/platform-istio-proxy.*)".*/)[1] |
[Unit] | |
Description=consul agent | |
Requires=network-online.target | |
After=network-online.target | |
[Service] | |
EnvironmentFile=-/etc/sysconfig/consul | |
Environment=GOMAXPROCS=2 | |
Restart=on-failure | |
ExecStart=/usr/local/sbin/consul agent $OPTIONS -config-dir=/etc/consul.d |
Add the following chunk to your existing ISC dhcpd.conf
file.
if exists user-class and ( option user-class = "iPXE" ) {
filename "http://boot.smidsrod.lan/boot.ipxe";
}
else {
filename "undionly.kpxe";
}
(or see https://gist.github.com/4008017 for a more elaborate setup
#!/bin/bash -e | |
DIR=$PWD | |
yum install -y gcc-c++ gcc make zlib-devel bzip2-devel systemd-devel | |
#Compile static version of libressl | |
export STATICLIBSSL=/app/libssl | |
LIBRESSL=libressl-2.2.5 | |
HAPROXY=haproxy-1.6.3 |
#!/bin/bash | |
## Script to install a Debian Jessie 8.0 template on Xenserver 6.5 | |
## https://gist.github.com/hingstarne/5320400 | |
# Add your favourite mirror here | |
MIRROR=http://ftp.us.debian.org/debian/ | |
MIRROR=http://mirrors.ustc.edu.cn/debian/ | |
# No need to edit something below |
#!/bin/bash | |
# Pull this file down, make it executable and run it with sudo | |
# wget https://gist.githubusercontent.com/bryanhunter/10380945/raw/build-erlang-17.0.sh | |
# chmod u+x build-erlang-17.0.sh | |
# sudo ./build-erlang-17.0.sh | |
ver=18.0 | |
#if [ $(id -u) != "0" ]; then | |
#echo "You must be the superuser to run this script" >&2 |