Skip to content

Instantly share code, notes, and snippets.

View hatchan's full-sized avatar
💭
¯\_(ツ)_/¯

Benno van den Berg hatchan

💭
¯\_(ツ)_/¯
  • Amsterdam, Netherlands
  • 10:00 (UTC +02:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am hatchan on github.
  • I am hatchan (https://keybase.io/hatchan) on keybase.
  • I have a public key ASBwP39FFVpC3OwThxCMHVelcRwShXePt1yebOlgYkVikAo

To claim this, I am signing this object:

@hatchan
hatchan / wercker.yml
Created August 4, 2014 11:38
Use golang executables as wercker build artifact
box: wercker/golang
build:
steps:
- wercker/setup-go-workspace
- script:
name: get dependencies
code: go get -v ./...
- script:
name: build executable
code: go build -a -v ./...
@hatchan
hatchan / .vimrc
Created February 22, 2016 13:20
goimports working with vim-go
let g:go_fmt_command = "goimports"
let g:go_fmt_options = "-srcdir " . expand("%:p:h")
@hatchan
hatchan / wercker.yml
Created January 6, 2016 16:15
Listing all environment variable during a wercker build
box: ubuntu
build:
steps:
- script:
name: env
code: env
@hatchan
hatchan / app.js
Last active December 30, 2015 22:19
var Hapi = require("hapi");
// Create a server with a host, port, and options
var server = new Hapi.Server("0.0.0.0", 3000);
// Add a route
server.addRoute({
"method": "GET",
"path": "/hello",
"config": {
@hatchan
hatchan / wercker.yml
Created October 22, 2015 15:27
Test wercker cache. Run two builds with this wercker.yml and during the second build you will see the file show up in the first step.
box: ubuntu
build:
steps:
- script:
name: ls -la
code: ls -la $WERCKER_CACHE_DIR
- script:
name: print
code: echo "this is a test" > $WERCKER_CACHE_DIR/static
@hatchan
hatchan / wercker.yml
Created October 9, 2015 07:27
Using a Alpine container with wercker
box:
id: alpine
cmd: /bin/sh
build:
steps:
- script:
name: echo
code: echo it works
@hatchan
hatchan / wercker.yml
Created May 6, 2015 07:55
Minimal wercker.yml for Heroku deploy
box: ubuntu
build:
steps:
- script:
name: build
code: echo build
deploy:
steps:
- script:
@hatchan
hatchan / wercker.yml
Created April 15, 2015 15:57
Using env in wercker
# box and services
build:
steps:
- script:
name: env
code: env
# More steps and deploy goes here
0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/bin/npm', 'i' ]
2 info using npm@2.7.4
3 info using node@v0.10.37
4 verbose node symlink /usr/bin/node
5 verbose install where, deps [ '/home/bvdberg/dev/wercker/docs',
5 verbose install [ '@local/doc-cards',
5 verbose install '@local/doc-quicklinks',
5 verbose install '@local/docs',
5 verbose install '@local/footer',