Skip to content

Instantly share code, notes, and snippets.

View jhunt's full-sized avatar
🎧
codin'

James Hunt jhunt

🎧
codin'
View GitHub Profile
package main
import (
"os"
"fmt"
"net/http"
"github.com/pivotal-cf/brokerapi"
"github.com/pivotal-golang/lager"
)
# TICK-TOCK. THIS FILE MANAGED BY CLOCKWORK.
colors: # {{{
darkblue: 003366
blue: 004c99
lightblue: 66b2ff
darkred: 660000
red: 990000
lightred: ff6666
---
strip: |-
don't keep that trailing newline
it's worthless
keep: |
keep that newline
we really want it.
{
"keep": "keep that newline\nwe really want it.\n",
"strip": "don't keep that trailing newline\nit's worthless"
@jhunt
jhunt / gh.md
Last active June 28, 2016 01:01

The Network Plan

This document is used throughout the rest of this documentation as a guideline for how networks are laid out, to provide the most flexibility in deployment, while mapping to common notions of fault zones. You are strongly encouraged to make your own Network Plan, one for each site you build. Doing so clarifies the intent of your deployments, and provides a single source of truth for things like BOSH networks stanzas, BOSH cloud config, firewalling and access control, and more.

Keybase proof

I hereby claim:

  • I am jhunt on github.
  • I am jhunt (https://keybase.io/jhunt) on keybase.
  • I have a public key whose fingerprint is 2BA0 1C9D B438 A64F 214C D2D3 E7B1 C84A EDE5 75A0

To claim this, I am signing this object:

[builder@b582d798647a tmp]$ curl -LO http://pkg.niftylogic.com/centos/el5/x86_64/bolo-0.2.18-1.nifty1.x86_64.rpm
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 76645 100 76645 0 0 657k 0 --:--:-- --:--:-- --:--:-- 712k
[builder@b582d798647a tmp]$ rpm -K bolo-0.2.18-1.nifty1.x86_64.rpm
bolo-0.2.18-1.nifty1.x86_64.rpm: rsa sha1 (md5) pgp md5 OK
[builder@b582d798647a tmp]$ rpm -Kv bolo-0.2.18-1.nifty1.x86_64.rpm
bolo-0.2.18-1.nifty1.x86_64.rpm:
Header V3 RSA/SHA1 Signature, key ID 7b576eff: OK
Header SHA1 digest: OK (2ee537ef7e3b335788c8e26f863211ce92ad8c73)
@jhunt
jhunt / gist:d58d4b4c898cdb43a0da27556422051e
Created September 9, 2016 14:52
hex calculator session mockup
hex calculator 0x002
Copyright (c) James Hunt <hc@jameshunt.us>
Type `help' to read the manual.
Type `quit' or `exit' to quit.
> 0x00ff12 + 12
0xff1d
> FLAG_A = 0x01
>> content_migrations/
>> content_migrations/migrations.yml
---
product: p-gemfire
installation_version: "1.4"
to_version: 1.6.0.0
migrations:
- from_version: 1.0.0.0
rules:
- type: update
### global
| Component | Network Segment | IP Count |
| --------- | --------------- | -------- |
| infra | 10.50.0.0/24 | 256 |
| proto-bosh | 10.50.1.0/24 | 256 |
| vault | 10.50.2.0/24 | 256 |
| shield | 10.50.3.0/24 | 256 |
| concourse | 10.50.4.0/24 | 256 |
; <<>> DiG 9.8.3-P1 <<>> +trace +all x.1.2.3.4.netip.cc
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 267
;; flags: qr ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;. IN NS