Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am rdj on github.
  • I am rdj (https://keybase.io/rdj) on keybase.
  • I have a public key ASCufnGKC336UhT1LpNfPyQuKP7Oh40m5diX8YKBroWsQwo

To claim this, I am signing this object:

@rdj
rdj / dominion-recommended-kingdom-sets.json
Last active April 14, 2020 21:59
Official recommended Kingdom card sets for playing Dominion as JSON
@rdj
rdj / mkcert.sh
Created August 4, 2015 16:47
Using OpenSSL to create an iOS-compatible self-signed certificate with subjectAltName extension for use with NSURLConnection without overriding willSendRequestForAuthenticationChallenge
#!/bin/bash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
ORGNAME=mytestorg
HOSTNAME=$(hostname -s)
KEY_LENGTH=4096
DIGEST=sha512
DAYS_VALID=9999
/Users/ryan/.rvm/rubies/ruby-2.2.1/bin/ruby -I/Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-core-3.1.7/lib:/Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-support-3.1.2/lib /Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-core-3.1.7/exe/rspec --pattern spec/unit/\*\*/\*_spec.rb
create
create README.rdoc
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/assets/javascripts/application.js
create app/assets/stylesheets/application.css
/Users/ryan/.rvm/rubies/ruby-2.2.1/bin/ruby -I/Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-core-3.1.7/lib:/Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-support-3.1.2/lib /Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-core-3.1.7/exe/rspec --pattern spec/unit/\*\*/\*_spec.rb
create
create README.rdoc
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/assets/images/rails.png
create app/assets/javascripts/application.js
PATH
remote: .
specs:
activeadmin (1.0.0.pre)
arbre (~> 1.0, >= 1.0.2)
bourbon
coffee-rails
formtastic (~> 3.1)
formtastic_i18n
inherited_resources (~> 1.6)
/Users/ryan/.rvm/rubies/ruby-2.2.1/bin/ruby -I/Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-core-3.1.7/lib:/Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-support-3.1.2/lib /Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-core-3.1.7/exe/rspec --pattern spec/unit/\*\*/\*_spec.rb
create
create README.rdoc
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/assets/images/rails.png
create app/assets/javascripts/application.js
PATH
remote: .
specs:
activeadmin (1.0.0.pre)
arbre (~> 1.0, >= 1.0.2)
bourbon
coffee-rails
formtastic (~> 3.1)
formtastic_i18n
inherited_resources (~> 1.6)
[user]
name = Ryan D Johnson
email = [email protected]
[color]
diff = auto
status = auto
branch = auto
[alias]
st = status -s
log1 = log --format=oneline
ryan@osangar ~ $ irb
1.9.3-p327 :001 > (1..10).each do |i|
1.9.3-p327 :002 > passes = true
1.9.3-p327 :003?> begin
1.9.3-p327 :004 > (rp, wp) = IO.pipe
1.9.3-p327 :005?> wp.write_nonblock ("F" * i) while(select [],
[wp], [], 0)
1.9.3-p327 :006?> rescue Errno::EAGAIN
1.9.3-p327 :007?> puts "#{i}: FAIL"
1.9.3-p327 :008?> passes = false