Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
¯\_(ツ)_/¯

Benno van den Berg hatchan

💭
¯\_(ツ)_/¯
  • Amsterdam, Netherlands
View GitHub Profile
View keybase.md

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 / .vimrc
Created Feb 22, 2016
goimports working with vim-go
View .vimrc
let g:go_fmt_command = "goimports"
let g:go_fmt_options = "-srcdir " . expand("%:p:h")
@hatchan
hatchan / wercker.yml
Created Jan 6, 2016
Listing all environment variable during a wercker build
View wercker.yml
box: ubuntu
build:
steps:
- script:
name: env
code: env
@hatchan
hatchan / wercker.yml
Created Oct 22, 2015
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.
View wercker.yml
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 Oct 9, 2015
Using a Alpine container with wercker
View wercker.yml
box:
id: alpine
cmd: /bin/sh
build:
steps:
- script:
name: echo
code: echo it works
@hatchan
hatchan / wercker.yml
Created May 6, 2015
Minimal wercker.yml for Heroku deploy
View wercker.yml
box: ubuntu
build:
steps:
- script:
name: build
code: echo build
deploy:
steps:
- script:
@hatchan
hatchan / wercker.yml
Created Apr 15, 2015
Using env in wercker
View wercker.yml
# box and services
build:
steps:
- script:
name: env
code: env
# More steps and deploy goes here
View gist:cdf6853ae8215464dc95
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',
@hatchan
hatchan / wercker.yml
Created Mar 17, 2015
echo and ls various wercker directories
View wercker.yml
deploy:
steps:
- script:
name: debug
code: |
echo $WERCKER_ROOT
echo $WERCKER_SOURCE_DIR
ls -la $WERCKER_ROOT
ls -la $WERCKER_SOURCE_DIR
@hatchan
hatchan / wercker.yml
Created Mar 17, 2015
Overriding the package dir in a setup-go-workspace step
View wercker.yml
build:
steps:
- wercker/setup-go-workspace:
package-dir: github.com/wercker/getting-started-golang