Skip to content

Instantly share code, notes, and snippets.

View coffeejunk's full-sized avatar
:shipit:

Maximilian Haack coffeejunk

:shipit:
View GitHub Profile
@coffeejunk
coffeejunk / pr.md
Created January 12, 2013 12:04 — forked from piscisaureus/pr.md

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 = [email protected]: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:

@coffeejunk
coffeejunk / bot.rb
Created September 29, 2011 07:32 — forked from joakimk/bot.rb
XMPP/Ruby Bot for HipChat with support for multiple rooms
#!/usr/bin/env ruby
require 'rubygems'
require 'xmpp4r'
require 'xmpp4r/muc/helper/simplemucclient'
# Most of this is borrowed from https://gist.github.com/941931
# Added support for multiple rooms and external handling of messages.
# We want the MUC functionality to just handle shit for us. Unfortunately we
# have to override/repeat the join method in order to add the directive that
@coffeejunk
coffeejunk / Questions
Created August 9, 2011 06:44
Frozen Rails Give-away
Day job: student & ceo of octothorp.eu
Your Rails contributions (if any): none, so far.
What's your Ruby/Rails experience?: 1,5 months.. And the crowd goes wild.
How do you use GitHub?: I use GitHub to convince the people I work with to use git. (and of course all the good stuff, code review, issues(!), wiki, gists, not forgetting about projects that might be interesting -> following)
@coffeejunk
coffeejunk / mail.rb
Created August 6, 2011 10:59 — forked from dennisreimann/mail.rb
CIJoe mail notification script.
#!/usr/bin/env ruby
# CIJoe mail notification script.
# Some things in here are shamelessly ripped from
# http://gist.github.com/374030
#
# Call this from your hooks (build-worked, build-failed) with something like:
# ~/ci/scripts/mail.rb ~/ci/PROJECT/ CIJOE_URL BRANCH
#
# Requirements