Skip to content

Instantly share code, notes, and snippets.

View elhu's full-sized avatar

Vincent Boisard elhu

View GitHub Profile
@elhu
elhu / app.rb
Last active February 11, 2016 11:18 — forked from archiloque/app.rb
Example of logging queries
require 'sinatra/base'
require 'sequel'
require 'logger'
# Add hooks in sequel logging since it's called for each query
module Sequel
class Database
# Alias a method so we can override it but still call the original
alias :log_yield_old :log_yield
@elhu
elhu / keybase.md
Created January 12, 2017 21:09
keybase.md

Keybase proof

I hereby claim:

  • I am elhu on github.
  • I am elhu (https://keybase.io/elhu) on keybase.
  • I have a public key whose fingerprint is 7AB7 DFD7 C4FA A954 D862 E0CF EF0D A9A9 F9BD 3296

To claim this, I am signing this object:

package main
import (
"database/sql"
"fmt"
"github.com/Sereal/Sereal/Go/sereal"
_ "github.com/go-sql-driver/mysql"
"io/ioutil"
"os"
"strings"