Skip to content

Instantly share code, notes, and snippets.

View pjvds's full-sized avatar
:octocat:
‏‏‎

Pieter Joost van de Sande pjvds

:octocat:
‏‏‎
View GitHub Profile
@pjvds
pjvds / .zshrc
Created May 8, 2013 13:25
.zshrc
# Source default profile first
source $HOME/.profile
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
@pjvds
pjvds / wercker.yml
Last active December 17, 2015 07:48
wercker.yml for Jekyll site generation and Amazon S3 deployment
box: wercker/ruby
build:
steps:
- bundle-install
- script:
name: sass compile
code: bundle exec sass --style compressed assets/scss/styles.scss:assets/css/styles.min.css --debug-info
- script:
name: generate site
code: bundle exec jekyll build
@pjvds
pjvds / wercker.yml
Created June 7, 2013 15:47
Example wercker.yml for python
box: wercker/python
build:
steps:
- script:
name: pip install
code: |
sudo pip install -r 'my-requirements.txt'
@pjvds
pjvds / wercker.yml
Last active December 18, 2015 18:30 — forked from wunki/wercker.yml
box: pjvds/scala
services:
- wercker/postgresql
- wercker/rabbitmq
- wercker/redis
build:
steps:
- script:
name: install clojure
code: |
box: wercker/ruby # <--- or: wercker/python, wercker/nodejs, ...
build:
steps:
- script:
name: Print hello world!
code: echo "hello world!"
deploy:
steps:
- script:
name: Install AppFog gem
package main
import (
"encoding/json"
"io/ioutil"
. "launchpad.net/gocheck"
"net/http"
"os"
"testing"
"time"
@pjvds
pjvds / wercker.yml
Last active December 18, 2015 21:38
box: wercker/ubuntu12.04-ruby2.0.0
services:
- wercker/postgresql
build:
# The steps that will be executed on build
steps:
# A step that executes `bundle install` command
- bundle-install
# A step that prepares the database.yml with settings from the database you defined in services
- rails-database-yml:
box: wercker/ubuntu12.04-ruby1.9.3
services:
- wercker/postgresql
build:
# The steps that will be executed on build
steps:
# Install (apt-get) package foo and bar
- install-packages
packages: foo, bar
# A step that executes `bundle install` command
package main
type Foo struct {
Bar string
}
// It does update Bar value for receiving struct
// since it receives an pointer value.
func (foo *Foo) ChangeBarPtr(bar string) {
foo.Bar = bar
box: wercker/python
build:
steps:
- script:
name: install dependencies
code: |
sudo pip install
- script:
name: test
code: |