Skip to content

Instantly share code, notes, and snippets.

View mboersma's full-sized avatar

Matt Boersma mboersma

  • Boulder, CO
  • 11:31 (UTC -06:00)
View GitHub Profile
@mboersma
mboersma / Workflow Beta3 CHANGELOG.md
Created April 28, 2016 18:43
Deis Workflow Beta3 Changes

charts

Features

  • d2e2dc7 workflow-dev-e2e: use GINKGO_NODES from local env if exists
  • 6309f5c workflow-dev: store builder ssh private keys in secret
  • 2eb4750 (all): replace values that change with each release with template values
  • c0bad28 ci.sh: add uninstall step in teardown
  • c3ffd5a _scripts: add CHANGELOG.md and generator script
@mboersma
mboersma / wal-e-restore.log
Created April 28, 2016 03:08
wal-e-restore.log
$ kd logs -f deis-database-a9p62
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".
Data page checksums are disabled.
config:set BEFORE (elapsed seconds) config:set AFTER % Slower deis create testapp
38 39 2.63 time git push deis master
23 36 56.52 time deis config:set POWERED_BY=Aliens
17 33 94.12 time deis config:set POWERED_BY=Rockets
22 33 50.00 time deis config:set FOO=bar
27 43 59.26 time deis config:unset FOO
20 32 60.00 deis destroy -a testapp --confirm=testapp
17 34 100.00
18 32 77.78
28 44 57.14
@mboersma
mboersma / image-config.txt
Created July 9, 2015 01:26
1.5.0 vs 1.6.2-built image config
deisctl config builder set image=deisci/builder:v1.8.150
deisctl config cache set image=deisci/cache:v1.8.150
deisctl config controller set image=deisci/controller:v1.8.150
deisctl config database set image=deisci/database:v1.8.150
deisctl config logger set image=deisci/logger:v1.8.150
deisctl config logspout set image=deisci/logspout:v1.8.150
deisctl config publisher set image=deisci/publisher:v1.8.150
deisctl config registry set image=deisci/registry:v1.8.150
deisctl config router set image=deisci/router:v1.8.150
deisctl config store-admin set image=deisci/store-admin:v1.8.150
@mboersma
mboersma / controller.log
Created July 8, 2015 01:27
controller log
ul 08 01:25:32 ip-10-21-1-40.us-west-2.compute.internal systemd[1]: deis-controller.service failed.
Jul 08 01:25:37 ip-10-21-1-40.us-west-2.compute.internal systemd[1]: deis-controller.service holdoff time over, scheduling rest
Jul 08 01:25:37 ip-10-21-1-40.us-west-2.compute.internal systemd[1]: Starting deis-controller...
Jul 08 01:25:39 ip-10-21-1-40.us-west-2.compute.internal sh[9360]: jenkins-test-ec2-1739: Pulling from deisci/controller
Jul 08 01:25:39 ip-10-21-1-40.us-west-2.compute.internal sh[9360]: 68397a5a86ce: Pulling fs layer
Jul 08 01:25:39 ip-10-21-1-40.us-west-2.compute.internal sh[9360]: 6a2b18067988: Pulling fs layer
Jul 08 01:25:39 ip-10-21-1-40.us-west-2.compute.internal sh[9360]: f643764c983a: Pulling fs layer
Jul 08 01:25:39 ip-10-21-1-40.us-west-2.compute.internal sh[9360]: c99bc52808f6: Pulling fs layer
Jul 08 01:25:39 ip-10-21-1-40.us-west-2.compute.internal sh[9360]: c758a60a5b65: Pulling fs layer
Jul 08 01:25:39 ip-10-21-1-40.us-west-2.compute.internal sh[9360]: 4bb2ae325a49: Pulling
@mboersma
mboersma / docopt_test.go
Created June 19, 2015 17:35
Part of docopt_test.go
func TestDocopt(t *testing.T) {
doc := `Usage: prog [-v] A
Options: -v Be verbose.`
if v, err := Parse(doc, []string{"arg"}, true, "", false, false); reflect.DeepEqual(v, map[string]interface{}{"-v": false, "A": "arg"}) != true {
t.Error(err)
}
if v, err := Parse(doc, []string{"-v", "arg"}, true, "", false, false); reflect.DeepEqual(v, map[string]interface{}{"-v": true, "A": "arg"}) != true {
t.Error(err)
}
@mboersma
mboersma / atomtags.md
Last active August 29, 2015 14:05
Get "Go to Declaration" working in atom

For Mac OS X at least:

$ brew update && brew install ctags
$ alias ctags=/usr/local/Cellar/ctags/5.8/bin/ctags
$ cd $GOPATH/src/github.com/deis/deis
$ ctags -R .

Then in atom, type [Opt]+[Cmd]+[down arrow] when the cursor is on an identifier.

@mboersma
mboersma / nse.sh
Created May 28, 2014 20:16
nsenter script
#!/bin/sh
PID=$(docker inspect --format="{{ .State.Pid }}" $1)
nsenter --pid --uts --mount --ipc --net --target $PID
@mboersma
mboersma / Go pre-commit
Last active December 6, 2017 02:00
Go project pre-commit hook
#!/bin/sh
# Save this file as ".git/hooks/pre-commit" in your
# git repository and set it to executable.
#
# To use the "go vet" command:
# $ go get -v code.google.com/p/go.tools/cmd/vet
# To use the "golint" command:
# $ go get -v github.com/golang/lint/golint
@mboersma
mboersma / DockerMacClient.md
Last active May 26, 2017 06:43
Build Docker on Mac OS X and run it as a client connected to a Linux VM running the docker daemon.

Run Docker client on Mac OS X connected to a Linux VM

Official Mac Docker Binary!

None of this is really necessary now that the Docker team is releasing official Mac OS X binary builds. Please see moby/moby#3337 for details.