Skip to content

Instantly share code, notes, and snippets.

View benwaine's full-sized avatar

Ben Andersen-Waine benwaine

View GitHub Profile

Keybase proof

I hereby claim:

  • I am benwaine on github.
  • I am baw (https://keybase.io/baw) on keybase.
  • I have a public key ASBhGXqO30Ju74CUT8p50c04TNrNcJIMCk7Fr7kKPPvJ8wo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am benwaine on github.
  • I am baw (https://keybase.io/baw) on keybase.
  • I have a public key ASD_SKzqmy08HvrI6pQjMxC40UXpzs4MtajBrnpwrrFzEQo

To claim this, I am signing this object:

@benwaine
benwaine / keybase.md
Last active November 23, 2015 17:25
keybase.md

Keybase proof

I hereby claim:

  • I am benwaine on github.
  • I am baw (https://keybase.io/baw) on keybase.
  • I have a public key whose fingerprint is 5322 27EE 7E35 1630 1276 1D73 5575 476E F2F4 FD6F

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am bwaine on github.
  • I am baw (https://keybase.io/baw) on keybase.
  • I have a public key whose fingerprint is 5322 27EE 7E35 1630 1276 1D73 5575 476E F2F4 FD6F

To claim this, I am signing this object:

@benwaine
benwaine / gist:f09c86e18370c7af5eb2
Last active August 29, 2015 14:20
Capturing the response object in Guzzle 5
<?php
if (isset($this->username)) {
$args['user'] = $this->username;
}
$command = $this->client->getCommand($command, $args);
$command->getEmitter()->on('process', function(ProcessEvent $event) {
$this->response = $event->getResponse();
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
@benwaine
benwaine / Error when installing Cairo library
Created August 31, 2011 20:17
Error when installing Cairo library
Error: undefined method `reason' for true:TrueClass
Please report this bug:
https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue
/usr/local/Library/Homebrew/formula.rb:322:in `handle_llvm_failure'
/usr/local/Library/Homebrew/formula.rb:252:in `brew'
/usr/local/Library/Homebrew/build.rb:53:in `install'
/usr/local/Library/Homebrew/build.rb:27
/usr/local/Library/Formula/cairo.rb:16
///