I hereby claim:
- I am stevehodgkiss on github.
- I am stevehodgkiss (https://keybase.io/stevehodgkiss) on keybase.
- I have a public key ASAA2U8Q8ebhM3kraRu5wWngRfUfs66XfQFjhw-6DHBsHQo
To claim this, I am signing this object:
stackmaster-stacks() { | |
ruby -ryaml -e 'YAML.load(File.read("stack_master.yml"))["stacks"].each { |region, stacks| stacks.each { |s, _| puts "#{region} #{s}" } }' | |
} | |
stackmaster-default-account() { | |
ruby -ryaml -e 'puts Array(YAML.load(File.read("stack_master.yml")).dig("stack_defaults", "allowed_accounts")).first' | |
} | |
awsvault-accounts() { | |
cat ~/.aws/config | \ |
require 'json' | |
require 'optparse' | |
options = {} | |
ARGV << '--help' if ARGV.empty? | |
OptionParser.new do |opts| | |
opts.on('--heroku-app HEROKU_APP', String, 'Heroku app name') do |o| | |
options[:heroku_app] = o | |
end |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
password | |
123456 | |
12345678 | |
1234 | |
qwerty | |
12345 | |
dragon | |
pussy | |
baseball | |
football |
require 'redis' | |
require 'timeout' | |
redis = Redis.new | |
redis.set('chunky', 'bacon') | |
res_a = nil | |
res_b = nil | |
count = 0 | |
outer_count = 0 |
# Patches Rails signed cookie jar to allow an old secret to be | |
# transitioned (read). Rails will re-generate the session | |
# cookie with the new secret for the response. | |
# | |
# https://github.com/rails/rails/blob/v3.2.18/actionpack/lib/action_dispatch/middleware/cookies.rb#L279-L332 | |
# | |
# An alternative with no monkey patching - https://github.com/envato/rails_session_key_rotator | |
fail "This patch will need updating if it is to be used with Rails 4" if Rails.version[0] != '3' |
require 'minitest/autorun' | |
class MiniTest::Spec | |
class << self | |
alias context describe | |
end | |
end | |
describe Class do | |
context 'my context' do |
# encoding: utf-8 | |
require 'active_record' | |
ActiveRecord::Base.establish_connection( | |
:adapter => 'mysql2', | |
:host => '127.0.0.1', | |
:port => 13306, | |
:username => 'root', | |
:database => 'encoding_test', | |
:encoding => 'latin1') |