git clone [email protected]: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 |
git clone [email protected]: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
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.github.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 |
| /** | |
| * compare version of ver1 and ver2 | |
| * | |
| * @param ver1 | |
| * @param ver2 | |
| * @return | |
| * 0: when ver1 equals ver2 <br> | |
| * 1: when ver1 Minor or Patch version less than ver2 <br> | |
| * 2: when ver1 Major version less than ver2 <br> | |
| */ |
| # run first by administrator : | |
| # set-executionpolicy remotesigned | |
| $timestr=get-date -uformat "%Y-%m-%d-%H-%M-%S" | |
| $tsql="" | |
| $prefix="D:\sqlbackup\" | |
| $filepath=$prefix + $timestr + "\" | |
| if (! ( Test-Path $filepath)) {mkdir $filepath } | |
| #if (! (Test-Path D:\sqlbackuptsql) ) {mkdir D:\sqlbackuptsql } |
| <html> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <body style="font-size: smaller;"> | |
| <table> | |
| <tr> | |
| <th>key</th> | |
| <th>value</th> | |
| </tr> | |