Skip to content

Instantly share code, notes, and snippets.

🏆Platinum Status Level

Dr Nic Williams drnic

🏆Platinum Status Level
Block or report user

Report or block drnic

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
drnic /
Last active Jun 19, 2019
Walk thru for CAB call to create a buildpack for etcd proxy and run it as a Cloud Foundry sidecar

Distributing sidecars with buildpacks

Slides are at

What are sidecars? How to use them in Cloud Foundry? - by Tim Downey

Intro to sidecars from last CAB

  • until recently a running app container only ran and monitored a single process
  • You could manually fork off child processs but they weren’t monitored (static file buildpack starts nginx and also starts cat-ting logs to stdout
  • Secondary processes inside containers are now first class citizens
drnic /
Last active May 19, 2019
Upgrade cfdev 0.0.15 to support sidecars (capi 1.79.0)
capi_update=$(cat <<-YAML
- type: replace
path: /releases/name=capi/url
- type: replace
View Gemfile
source ""
gem "sinatra"


./Tools/autotest/ -v ArduPlane -L CMAC --map --console --osd
Missing SFML libraries - please install libsfml-dev

--osd flag requires libsfml-dev, which can be installed with homebrew sfml package:

drnic /
Last active Feb 20, 2019
Instructions for running Ardupilot Simulation SITL within MacOS using XQuartz and Vagrant
drnic / build-default.yaml
Last active Nov 11, 2018
Comparison of two Knative Builds - "build-default.yml" is a no-template build with explicit steps; "buildpack.yml" uses the pre-installed build-template
View build-default.yaml
kind: Build
creationTimestamp: 2018-11-11T23:25:45Z
generateName: simple-app-
generation: 1
name: simple-app-7s8pf
namespace: default
resourceVersion: "14435"
selfLink: /apis/
drnic /
Last active Nov 16, 2018
Bootstrap Kube/Helm/Service Catalog/Knative on GKE
set -eu
export CLUSTER_NAME=${CLUSTER_NAME:-knative}
export CLUSTER_ZONE=${CLUSTER_ZONE:-us-west1-c}
usage() {
echo "Bootstrap Kube/Helm/Knative on GKE"
View martinez-error.js
var martinez = require('martinez-polygon-clipping');
var big = [ [ 141, -35.49 ],
[ 142.27, -35.93 ],
[ 142.28, -35.95 ],
[ 142.37, -35.97 ],
[ 142.98, -36.83 ],
[ 142.93, -36.97 ],
[ 142.85, -37.5 ],
drnic /
Last active Jul 23, 2018
Stop all Cloud Foundry applications in any spaces with "staging" in their name
curl -sL | bash
You can’t perform that action at this time.