Skip to content

Instantly share code, notes, and snippets.

View lachholden's full-sized avatar

Lachlan Holden lachholden

View GitHub Profile
@lachholden
lachholden / output.txt
Created December 26, 2015 22:08
Vagrant Debug Output
This file has been truncated, but you can view the full file.
INFO global: Vagrant version: 1.8.1
INFO global: Ruby version: 2.2.3
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_EXECUTABLE="C:\\HashiCorp\\Vagrant\\embedded\\gems\\gems\\vagrant-1.8.1\\bin\\vagrant"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="C:\\HashiCorp\\Vagrant\\embedded"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_INTERNAL_BUNDLERIZED="1"
INFO global: VAGRANT_LOG="debug"
INFO global: VAGRANT_OLD_ENV_="ExitCode=00000000"
@lachholden
lachholden / gist:3c26dab21fc1084ea8ec
Created May 8, 2014 02:00
Golang Gorilla Middleware
// context key values
const (
DB = iota
)
func DbMiddleware(handler http.Handler, db *gorp.DbMap) {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
context.Set(r, DB, db)
handler.ServeHTTP(w, r)
})
@lachholden
lachholden / Gruntfile.js
Last active August 29, 2015 14:00
Sample Gruntfile for Go Web Application
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
styles: {
files: [{
expand: true,
cwd: 'assets/styles',
src: ['*.scss'],
dest: '../../bin/styles',