Skip to content

Instantly share code, notes, and snippets.

View kieron-dev's full-sized avatar

Kieron Browne kieron-dev

View GitHub Profile
@kieron-dev
kieron-dev / org-crs.dot
Created September 16, 2021 17:39
Org/Space CRs
digraph G {
fontname = "Bitstream Vera Sans"
fontsize = 8
concentrate = true
node [
fontname = "Bitstream Vera Sans"
fontsize = 8
shape = "record"
]
@kieron-dev
kieron-dev / containerd_stdout_suite_test.go
Last active July 9, 2021 08:44
Testing we can consistently retrieve stdout when running a process in a containerd container
package containerdstdout_test
import (
"testing"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
func TestContainerdstdout(t *testing.T) {
@kieron-dev
kieron-dev / go.mod
Last active October 24, 2019 13:57
Move cgroup in k8s
module movepod
go 1.13
require (
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550 // indirect
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 // indirect
golang.org/x/time v0.0.0-20191023065245-6d3f0bb11be5 // indirect
k8s.io/api v0.0.0-20191016225839-816a9b7df678
k8s.io/apimachinery v0.0.0-20191020214737-6c8691705fc5
#!/bin/bash
cd /root
apt update
apt install -y git vim wget
rm -rf /usr/local/go
wget https://dl.google.com/go/go1.13.3.linux-amd64.tar.gz
@kieron-dev
kieron-dev / main.go
Created September 30, 2019 10:26
plugin GetSpaces SSL error repro
package main
import (
"fmt"
"os"
"code.cloudfoundry.org/cli/plugin"
)
func main() {
@kieron-dev
kieron-dev / link.md
Last active October 8, 2018 20:24
where github oauth tokens might live in a single page JS app + backend API server
@kieron-dev
kieron-dev / create-certs.sh
Created September 25, 2018 14:39
PoC Broker with TLS implementing /v2/catalog only
#!/usr/bin/env bash
set -euo pipefail
brokerName=${1:-tcp}
certName=mybroker
varsFile=$META/islington/bosh/bosh-vars.yml
# varsFile=$META/bloomsbury/cf-vars.yml
@kieron-dev
kieron-dev / ginkgo.vim
Created September 6, 2018 19:50
Ginkgo VIM compiler config
let current_compiler = "ginkgo"
CompilerSet makeprg=ginkgo\ -noColor\ -succinct\ %:p:h
CompilerSet efm=
CompilerSet efm+=%E%.%#Failure\ [%.%#
CompilerSet efm+=%Z------------------------------
CompilerSet efm+=%C\ \ %#%f:%l
CompilerSet efm+=%-C%.%#\.go:%.%#
CompilerSet efm+=%C\ %#%m
CompilerSet efm+=%C%.%#
@kieron-dev
kieron-dev / main.go
Created August 31, 2018 11:15
Example of corrupting hostname verification to use a different hostname to the one being accessed
package main
import (
"context"
"fmt"
"log"
"net"
"net/http"
"time"
)