I hereby claim:
- I am bradhe on github.
- I am bradhe (https://keybase.io/bradhe) on keybase.
- I have the public key with fingerprint D906 CCBD F539 E51E 0319 DD2C 183E BDE0 6E96 032F
To claim this, I am signing this object:
require 'mysql2' | |
$mysql = Mysql2::Client.new( | |
host: 'localhost', | |
username: 'root' | |
) | |
SLEEP_TIMEOUT=1.0 | |
last_trx = 0 |
_ = $$ / $$ # 1 | |
__ = _ - _ # 0 | |
@_ = _ + _ # 2 | |
$_ = @_ + _ # 3 | |
$- = @_ + $_ # 5 | |
$-_ = $- * $_ # 15 | |
@__ = '' << $-_ * ($- + $_) + @_ # z | |
$___ = '' << $-_ * $- - $- << $-_ * ($- + @_) << @__ << @__ # Fizz | |
@___ = '' << $-_ * $- - $_ * $_ << $-_ * ($- + $_) - $_ << @__ << @__ # Buzz |
$ sudo bundle install | |
Fetching gem metadata from https://rubygems.org/........ | |
Fetching additional metadata from https://rubygems.org/.. | |
Using archive-tar-minitar (0.5.2) | |
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. | |
/usr/bin/ruby1.9.1 extconf.rb | |
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError) | |
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' |
vagrant@vagrant-ubuntu-saucy-64:~$ ruby -v | |
ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux] | |
vagrant@vagrant-ubuntu-saucy-64:~$ gem env | |
RubyGems Environment: | |
- RUBYGEMS VERSION: 2.2.2 | |
- RUBY VERSION: 2.1.1 (2014-02-24 patchlevel 76) [x86_64-linux] | |
- INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/2.1.0 | |
- RUBY EXECUTABLE: /usr/local/bin/ruby | |
- EXECUTABLE DIRECTORY: /usr/local/bin | |
- SPEC CACHE DIRECTORY: /home/vagrant/.gem/specs |
I hereby claim:
To claim this, I am signing this object:
CREATE TABLE first_table ( | |
col0 DATETIME NOT NULL, | |
col1 VARCHAR(255) NOT NULL, | |
col2 INT(11) NOT NULL, | |
col3 INT(11) NOT NULL, | |
UNIQUE KEY (col0, col1, col2) | |
) ENGINE=InnoDB; | |
INSERT INTO first_table (col0, col1, col2, col3) VALUES ("2013-01-05 12:00:00", "Hello", 1, 10), ("2013-01-05 12:00:00", "World", 2, 11); |
#!/bin/bash | |
# Start a new foreman. We'll need the PID for later. | |
foreman start redis=1,web=1 & | |
FOREMAN_PID=$! | |
while : | |
do | |
curl http://localhost:5000/login &> /dev/null |
$ cat bogo_sort.rb | |
count = [] | |
100.times do | |
start_at = Time.now | |
corpus = (1..10).to_a | |
shuffled = corpus.shuffle | |
$count = 0 |
$ ruby -v | |
ruby 1.9.3p374 (2013-01-15 revision 38858) [x86_64-darwin12.2.1] | |
$ ruby sort_test.rb | |
0 | |
1 | |
2 | |
3 | |
4 | |
5 |
From 2cbc1b959af0b40b0723b3fb586ea70d0324fe59 Mon Sep 17 00:00:00 2001 | |
From: Brad Heller <[email protected]> | |
Date: Wed, 26 Jun 2013 13:17:02 -0700 | |
Subject: [PATCH] Add support for total allocations measurement. | |
--- | |
gc.c | 16 ++++++++++++++++ | |
include/ruby/intern.h | 1 + | |
test/ruby/test_gc.rb | 4 ++++ | |
3 files changed, 21 insertions(+) |