Skip to content

Instantly share code, notes, and snippets.

@tpoland
tpoland / connect.rb
Last active September 28, 2016 20:33 — forked from crigor/connect.rb
Modified version of tpol's script. Uses mysql2 gem.
#!/usr/bin/ruby
# gem install mysql2 -v 0.3.12b6
require 'rubygems'
require 'json'
#require 'mysql'
require 'mysql2'
def usage