Skip to content

Instantly share code, notes, and snippets.

@kbruner
kbruner / example-brain.mmd
Last active August 31, 2022 19:38
mermaid markdown multi-branch github repo graph example
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2020/04/15 21:28:04 http2: panic serving 10.138.0.16:37534: reflect: call of reflect.Value.IsNil on struct Value
goroutine 1562346 [running]:
net/http.(*http2serverConn).runHandler.func1(0xc000b58c98, 0xc0008c5f67, 0xc0008b9b00)
/usr/local/go/src/net/http/h2_bundle.go:5706 +0x16b
panic(0x17f0640, 0xc000bcab00)
/usr/local/go/src/runtime/panic.go:679 +0x1b2
reflect.Value.IsNil(...)
/usr/local/go/src/reflect/value.go:1073
k8s.io/apimachinery/pkg/conversion.(*Converter).defaultConvert(0xc0000753e0, 0x18b67a0, 0xc0010b05a0, 0x199, 0x1808c60, 0xc00007f4c0, 0x194, 0xc000c43310, 0x0, 0x0)
/go/src/github.com/open-policy-agent/gatekeeper/vendor/k8s.io/apimachinery/pkg/conversion/converter.go:672 +0x1f04
@kbruner
kbruner / bootstrap_dcos.sh
Last active August 27, 2019 23:53
DC/OS OSS Automated Initial Login
#!/bin/sh
# Note: this only works for OSS DC/OS >= 1.13
# <generate your Terraform configuration for the Installer>
terraform init
terraform apply -auto-approve -input=false
master_ip="$(terraform output -json | jq -r '.["masters-ips"].value[0]')"