Skip to content

Instantly share code, notes, and snippets.

@jamie
jamie / gist:1712034
Created January 31, 2012 18:26
Bundler doesn't work right with homebrew's ruby 1.9.3
$ ruby -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin10.8.0]
$ gem list
*** LOCAL GEMS ***
bundler (1.0.21)
*snip*
@jamie
jamie / git-prune-origin
Created August 20, 2012 15:09
Script for removing remote branches which are fully merged into master
#!/usr/bin/env ruby
branches = `git branch -a`.split("\n")
remotes = branches.select{|e| e =~ %r(remotes/origin) && e !~ /HEAD/}
remotes.map!{|e| e.match(%r(origin/(.*)))[1] }
locals = branches.select{|e| e !~ %r(/) }
locals.map!{|e| e.match(/[^* ]+/)[0] }
{"version_"=>4,
"achievement_count"=>10,
"achievements"=>
[{"id"=>"ACH_SECTOR_5", "_"=>0},
{"id"=>"ACH_SECTOR_8", "_"=>0},
{"id"=>"ACH_WIN_EASY", "_"=>0},
{"id"=>"ACH_SCRAP", "_"=>0},
{"id"=>"ACH_NO_MISSILES", "_"=>0},
{"id"=>"ACH_NO_DRONES", "_"=>0},
{"id"=>"ACH_NO_DEATH", "_"=>0},
@jamie
jamie / gist:5529980
Created May 7, 2013 03:00
goddamn it, Bundler...
% cat .bundle/config
---
BUNDLE_DISABLE_SHARED_GEMS: '1'
BUNDLE_BIN: tmp/bin
BUNDLE_PATH: tmp
% ls tmp/bin/rails
tmp/bin/rails
% bundle exec rails
body common control
{
bundlesequence => { "brew" };
}
bundle agent brew
{
commands:
darwin::
"/usr/local/bin/brew update";
describe TestInvoiceImportApp do
before do; ...; end
describe "index" do
before do; ...; end
it "shows imports" do; get '/' ...; end
end
describe "create" do
before do; ...; end

Fuck's sake. I find it difficult to imagine just how enormous of a bell-end you have to be in order to demand that an entire country is child-proofed so your child doesn't hurt itself.

Forbid your child from having a laptop until they're a responsible age, make them use a family computer in a room that other family members are likely to use until then, install existing web filter programs. These are the actions of a smart, responsible parent.

Force the entire country to by default accept the same level of protection given to your child, so that you yourself don't have to take any steps or make any sort of effort to ensure their own protection. These are the actions of a self-absorbed parent. These are the actions our Prime Minister deems the best.

Fuck's sake.

Actually I'm probably a little unfair in saying that these people are unwilling to go to any effort for their children's protection. They are willing to go to effort, they're just so fucking stupid that instead of simply installing a web filte

CACHE (0.0ms) SELECT 1 AS one FROM "invoicing_payment_amounts" WHERE "invoicing_payment_amounts"."invoice_id" = ? LIMIT 1 [["invoice_id", 2]]
CACHE (0.0ms) SELECT 1 AS one FROM "invoicing_payment_amounts" WHERE "invoicing_payment_amounts"."invoice_id" = ? LIMIT 1 [["invoice_id", 2]]
CACHE (0.0ms) SELECT 1 AS one FROM "invoicing_payment_amounts" WHERE "invoicing_payment_amounts"."invoice_id" = ? LIMIT 1 [["invoice_id", 2]]
CACHE (0.0ms) SELECT 1 AS one FROM "invoicing_payment_amounts" WHERE "invoicing_payment_amounts"."invoice_id" = ? LIMIT 1 [["invoice_id", 2]]
CACHE (0.0ms) SELECT 1 AS one FROM "invoicing_payment_amounts" WHERE "invoicing_payment_amounts"."invoice_id" = ? LIMIT 1 [["invoice_id", 2]]
CACHE (0.0ms) SELECT 1 AS one FROM "invoicing_payment_amounts" WHERE "invoicing_payment_amounts"."invoice_id" = ? LIMIT 1 [["invoice_id", 2]]
CACHE (0.0ms) SELECT 1 AS one FROM "invoicing_payment_amounts" WHERE "invoicing_payment_amounts"."invoice_id" = ? LIMIT 1 [["invoice_id", 2]]
@jamie
jamie / bundle.txt
Last active December 21, 2015 14:39
% bundle install --path vendor/bundle
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/..
Using mini_portile (0.5.1)
Installing nokogiri (1.6.0)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/local/Cellar/ruby/2.0.0-p247/bin/ruby extconf.rb
Extracting libxml2-2.8.0.tar.gz into tmp/i686-apple-darwin11/ports/libxml2/2.8.0... OK
Running 'configure' for libxml2 2.8.0... OK
Given I am Mukmuk
And I have a verified bank account
And I have a pending debit agreement from Quatchi
When I approve the agreement
Then Quatchi should receive an approval email
---