I hereby claim:
- I am oinume on github.
- I am oinume (https://keybase.io/oinume) on keybase.
- I have a public key ASAbPtN4USOtjo2JaIwHRQK1s1URLiDsQsA6-M8DMjs0rAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"github.com/sclevine/agouti" | |
"net/http" | |
"net/http/httptest" | |
"fmt" | |
"time" | |
"log" | |
) |
package main | |
import ( | |
"fmt" | |
"net/http" | |
) | |
type transport struct { | |
r http.RoundTripper | |
} |
{ | |
"builders":[ | |
{ | |
"type":"virtualbox-ovf", | |
"source_path":"/Users/kazuhiro/.vagrant.d/boxes/oinume-VAGRANTSLASH-ubuntu-14.04-jp/1.0.1/virtualbox/box.ovf", | |
"ssh_username":"vagrant", | |
"ssh_password":"vagrant", | |
"ssh_wait_timeout":"30s", | |
"shutdown_command":"echo 'vagrant' | sudo -S shutdown -P now" | |
} |
package main | |
import ( | |
"fmt" | |
"os" | |
"github.com/miekg/dns" | |
"strings" | |
) |
package main | |
import ( | |
"errors" | |
"fmt" | |
"os" | |
_ "github.com/go-sql-driver/mysql" | |
"github.com/go-xorm/xorm" | |
_ "github.com/mattn/go-sqlite3" |
# | |
# The MySQL database server configuration file. | |
# | |
# You can copy this to one of: | |
# - "/etc/mysql/my.cnf" to set global options, | |
# - "~/.my.cnf" to set user-specific options. | |
# | |
# One can use all long options that the program supports. | |
# Run program with --help to get a list of available options and with | |
# --print-defaults to see which it would actually understand and use. |
# -*- coding: utf-8 -*- | |
# $ pip install beaker flask redis git+git://github.com/bbangert/beaker_extensions.git | |
from flask import Flask, session | |
from flask.sessions import SessionInterface | |
from beaker.middleware import SessionMiddleware | |
session_opts = { | |
'session.type': 'redis', |