Skip to content

Instantly share code, notes, and snippets.

@zetter
zetter / gist:7133549
Last active December 26, 2015 09:59 — forked from ericboehs/gist:7125105
Fix to work with current version of poltergeist. Don't recommend using.
module Capybara::Poltergeist
class Client
def redirect_stdout
prev_stdout = STDOUT.dup
prev_stderror = STDERR.dup
prev_stdout.autoclose = false
$stdout = @write_io
STDOUT.reopen(@write_io)
@zetter
zetter / default_whenever.rb
Last active December 19, 2015 02:49 — forked from evizitei/default_whenever.rb
Setup whenever on engineyard for all deployed applications that have the whenever gem bundled on the util instance called 'util'
#
# Cookbook Name:: whenever
# Recipe:: default
#
# for the until instance named 'util'
if node[:name] == 'util'
ey_cloud_report "whenever" do
message "Starting whenever recipe"
end
@zetter
zetter / atom.rb
Last active August 29, 2015 13:56 — forked from floehopper/atom.rb
class Atom
attr_reader :symbol
def initialize(symbol)
@symbol = symbol
end
def ==(other)
self.symbol == other.symbol
end