Skip to content

Instantly share code, notes, and snippets.

View arodland's full-sized avatar

Andrew Rodland arodland

View GitHub Profile
use strict;
use warnings;
use Email::Address;
use Email::MIME;
my $str = q{"=?utf-8?B?PHByZT4NCltHb25lIFRvbW9ycm93?= =?utf-8?B?XSBZb3VyIHByaXZhdGUgbGluayB0byBmaXJzdA0KZXZlciBtb25leS1jcmVh?= =?utf-8?B?dGlvbiBhcHAhDQoNCmhpZ2hsYW5kZXJ0cmFmZmljLmNvbS9saW5rL2FtYXBw?= =?utf-8?B?DQoNCihjb3B5LXBhc3RlIGxpbmsgaW50byB5b3VyIGJyb3dzZXIgaWYgaXQn?= =?utf-8?B?cyBub3QgY2xpY2thYmxlKQ0KDQoNClJlZ2FyZHMsDQpFbnRpbmcgQmlzb3Rl?= =?utf-8?B?DQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoN?= =?utf-8?B?Cg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0K?= =?utf-8?B?DQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoN?= =?utf-8?B?Cg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCjwvcHJlPn4=?=" <equipe@amoremcristo.com>};
my $email = Email::Simple->create(
header => [ From => $str ],
body => "",
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: