Skip to content

Instantly share code, notes, and snippets.

:shipit:
🔥

Gerred Dillon gerred

:shipit:
🔥
Block or report user

Report or block gerred

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View dynamic_controller.go
package dynamic
import (
"fmt"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"sigs.k8s.io/controller-runtime/pkg/client/config"
"sigs.k8s.io/controller-runtime/pkg/controller"
"sigs.k8s.io/controller-runtime/pkg/handler"
"sigs.k8s.io/controller-runtime/pkg/manager"
"sigs.k8s.io/controller-runtime/pkg/reconcile"
View ingress-lb-switched.json
{
"apiVersion": "V2",
"name": "k8s-ingress-proxy-2",
"count": 2,
"haproxy": {
"stats": {
"bindPort": 6091
},
"frontends": [
{
View gist:0515d45094b52ba3d19e1458b2dc9943
{
"apiVersion": "V2",
"name": "k8s-ingress-proxy-2",
"count": 2,
"haproxy": {
"stats": {
"bindPort": 6091
},
"frontends": [
{
View kongingress.yaml
apiVersion: configuration.konghq.com/v1
kind: KongIngress
metadata:
name: configuration-demo
upstream:
hash_on: none
hash_fallback: none
healthchecks:
active:
concurrency: 10
View logspout-ds.yaml
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
labels:
name: logspout
name: logspout
namespace: default
spec:
selector:
matchLabels:
View gist:aed92d4f1e4df69c9dbf874ec937d572
~/d/OpenTTD-patches   jgrpp  env CXXFLAGS="--std=gnu++11" CC=/usr/local/bin/gcc-8 CXX=/usr/local/bin/g++-8 ./configure --without-liblzo2 --cpu-type=64
checking awk... awk
detecting OS... OSX
checking build system type... x86_64-apple-darwin17.5.0
checking host system type... x86_64-apple-darwin17.5.0
checking universal build... no
checking build cc... /usr/local/bin/gcc-8
checking host cc... /usr/local/bin/gcc-8
checking build c++... /usr/local/bin/g++-8
checking host c++... /usr/local/bin/g++-8
View gist:d809266cdd93473a9d5473e70f59b169
Using built-in specs.
COLLECT_GCC=gcc-8
COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc/8.1.0/libexec/gcc/x86_64-apple-darwin17.5.0/8.1.0/lto-wrapper
Target: x86_64-apple-darwin17.5.0
Configured with: ../configure --build=x86_64-apple-darwin17.5.0 --prefix=/usr/local/Cellar/gcc/8.1.0 --libdir=/usr/local/Cellar/gcc/8.1.0/lib/gcc/8 --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-8 --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-isl=/usr/local/opt/isl --with-system-zlib --enable-checking=release --with-pkgversion='Homebrew GCC 8.1.0' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues --disable-nls
Thread model: posix
gcc version 8.1.0 (Homebrew GCC 8.1.0)
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "private_network", ip: "192.168.100.102"
end
View replicated.yml
---
# kind: replicated
replicated_api_version: 2.9.2
name: "Learning Replicated"
#
# https://help.replicated.com/docs/packaging-an-application/application-properties/
#
properties:
View gist:f2f922821117edf2f7451d54e562d912
let g:neoformat_rust_rustfmt = {
\ 'exe': 'cargo',
\ 'args': ['+nightly', 'fmt', '--', '--write-mode=plain'],
\ 'stdin': 1,
\ }
let g:neoformat_enabled_rust = ['rustfmt']
Plug 'sbdchd/neoformat'
let g:neoformat_only_msg_on_error = 1
You can’t perform that action at this time.