Skip to content

Instantly share code, notes, and snippets.

View oinume's full-sized avatar
🏠
Working from home

oinume oinume

🏠
Working from home
View GitHub Profile
@oinume
oinume / keybase.md
Created August 22, 2020 22:05
keybase.md

Keybase proof

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:

@oinume
oinume / visualization.ipynb
Created June 2, 2017 01:08
Visualization MySQL data in Jupyter Notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@oinume
oinume / main.go
Last active October 13, 2016 11:02
agouti page.GetCookies() returns error
package main
import (
"github.com/sclevine/agouti"
"net/http"
"net/http/httptest"
"fmt"
"time"
"log"
)
@oinume
oinume / main.go
Created October 9, 2015 01:09
http.RoundTripper
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"
@oinume
oinume / my.cnf
Created June 15, 2014 12:04
my.cnf
#
# 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.
  • a
  • b
  • c
  • d
# -*- 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',