This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'redis' | |
require 'securerandom' | |
require 'timeout' | |
describe 'timeout/redis issues' do | |
def reconnect | |
$redis = Redis.new(db: 1, :port => ENV.fetch('BOXEN_REDIS_PORT', '6379')) | |
end | |
def ruby_211_timeout(sec, klass = nil) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class NativeColumnStore < ActiveRecord::SessionStore::Session | |
class << self | |
attr_reader :native_columns | |
def native_columns=(columns) | |
@native_columns = columns.map(&:to_s) | |
end | |
@native_columns = [] | |
end | |
def data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build_package_combined_patch() { | |
local package_name="$1" | |
{ | |
curl https://raw.github.com/gist/3721565/91bcda69e3fb998fe160707b8a80334327cc9e61/falcon.patch | patch -p1 | |
autoconf | |
./configure --prefix="$PREFIX_PATH" $CONFIGURE_OPTS | |
make -j 8 | |
make install | |
} >&4 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# therubyracer gem - https://github.com/cowboyd/therubyracer | |
require 'v8' | |
password = ARGV[0] || 'password' | |
ARGV.clear | |
puts "Testing password: #{password}" | |
puts | |
class PasswordStrength |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build_package_combined_patch() { | |
local package_name="$1" | |
{ | |
curl https://raw.github.com/skaes/rvm-patchsets/master/patches/ruby/1.9.3/p125/railsexpress/01-merge-revision-s-34719-34720-b.patch | patch -p1 | |
curl https://raw.github.com/skaes/rvm-patchsets/master/patches/ruby/1.9.3/p125/railsexpress/02-railsbench-gc.patch | patch -p1 | |
curl https://raw.github.com/skaes/rvm-patchsets/master/patches/ruby/1.9.3/p125/railsexpress/03-display-more-detailed-stack-trace.patch | patch -p1 | |
curl https://raw.github.com/skaes/rvm-patchsets/master/patches/ruby/1.9.3/p125/railsexpress/04-fork-support-for-gc-logging.patch | patch -p1 | |
curl https://raw.github.com/skaes/rvm-patchsets/master/patches/ruby/1.9.3/p125/railsexpress/05-track-live-dataset-size.patch | patch -p1 | |
autoconf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
@mac = "xx:xx:xx:xx:xx:xx" | |
@address = "myaccount.dyndns.org" | |
@port = "9" | |
@count = 3 | |
require 'socket' | |
@socket = UDPSocket.open | |
@socket.setsockopt(Socket::SOL_SOCKET, Socket::SO_BROADCAST, 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build_package_combined_patch() { | |
local package_name="$1" | |
{ | |
curl https://raw.github.com/gist/1859082/performance_and_backport_gc.patch | patch -p1 | |
autoconf | |
./configure --prefix="$PREFIX_PATH" $CONFIGURE_OPTS | |
make -j 8 | |
make install | |
} >&4 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'freeagent' | |
require 'eventmachine' | |
require 'em-synchrony' | |
require 'em-http-request' | |
require 'em-synchrony/fiber_iterator' | |
require 'active_support' | |
ATTACHMENTS_DIR = '/Users/steve/Documents/freeagent_attachments' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build_package_patched() { | |
local package_name="$1" | |
{ | |
curl https://raw.github.com/skaes/rvm-patchsets/master/patches/ruby/1.9.2/p290/railsexpress/01-railsbench-gc-patch.patch | patch -p1 | |
curl https://raw.github.com/skaes/rvm-patchsets/master/patches/ruby/1.9.2/p290/railsexpress/02-display-more-detailed-stack-trace.patch | patch -p1 | |
curl https://raw.github.com/skaes/rvm-patchsets/master/patches/ruby/1.9.2/p290/railsexpress/03-fork-support-for-gc-logging.patch | patch -p1 | |
curl https://raw.github.com/skaes/rvm-patchsets/master/patches/ruby/1.9.2/p290/railsexpress/04-track-live-dataset-size.patch | patch -p1 | |
curl https://raw.github.com/skaes/rvm-patchsets/master/patches/ruby/1.9.2/p290/railsexpress/05-load-performance-fix.patch | patch -p1 | |
curl https://raw.github.com/skaes/rvm-patchsets/master/patches/ruby/1.9.2/p290/railsexpress/06-trace-bmethods.patch | patch -p1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
After do |scenario| | |
if scenario.failed? && scenario.source_tag_names.include?("@wip") | |
save_and_open_page | |
end | |
end |