Skip to content

Instantly share code, notes, and snippets.

View yosssi's full-sized avatar

Keiji Yoshida yosssi

View GitHub Profile
@yosssi
yosssi / vagrant-box-mounting-error.md
Last active August 29, 2015 13:59
Vagrant box mounting error

Error

$ vagrant up

An error occurred during installation of VirtualBox Guest Additions 4.3.10. Some functionality may not work as intended.
In most cases it is OK that the "Window System drivers" installation failed.
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders...
    default: /vagrant => /Users/yoshidakeiji/vagrant-test
ls. This is usually because
@yosssi
yosssi / go-app-starter.go
Created May 13, 2014 00:14
go-app-starter.go
package main
import (
"html/template"
"github.com/go-martini/martini"
"github.com/martini-contrib/render"
)
var FB_APP_ID string = "551781848179574"
Gem files will remain installed in /opt/rails/green_funding/vendor/bundle/ruby/1.9.1/gems/rmagick-2.13.1 for inspection.
Results logged to /opt/rails/green_funding/vendor/bundle/ruby/1.9.1/gems/rmagick-2.13.1/ext/RMagick/gem_make.out
An error occurred while installing rmagick (2.13.1), and Bundler cannot continue.
Make sure that `gem install rmagick -v '2.13.1'` succeeds before bundling.
mac:green_funding yoshidakeiji$ C_INCLUDE_PATH=/usr/local/Cellar/imagemagick/6.7.7-6/include/ImageMagick bundle install
http://stackoverflow.com/questions/12292896/installing-rmagick-gem-cant-find-magickwand-h
package main
import (
"encoding/json"
"fmt"
//"github.com/codegangsta/martini-contrib/render"
"log"
"net/http"
"os"
"github.com/go-martini/martini"
package main
import (
"encoding/json"
"fmt"
//"github.com/codegangsta/martini-contrib/render"
"log"
"net/http"
"os"
"github.com/go-martini/martini"
package store
import (
"fmt"
"github.com/boltdb/bolt"
)
// reap removes sessions older than a given duration.
// This function assumes that all session data is stored in a "sessions" bucket