Skip to content

Instantly share code, notes, and snippets.

View rick's full-sized avatar
🎧
Quietly doing

Rick Bradley rick

🎧
Quietly doing
View GitHub Profile
require 'spec/runner/formatter/progress_bar_formatter'
class NescafeFormatter < Spec::Runner::Formatter::ProgressBarFormatter
def example_failed(example, counter, failure)
super
dump_failure(counter, failure)
end
end
@atmos
atmos / campfire.coffee
Created February 8, 2011 03:45
node 0.4.x compatible irc bot
HTTPS = require "https"
EventEmitter = require("events").EventEmitter
class Campfire extends EventEmitter
constructor: (options) ->
@token = options.token
@rooms = options.rooms.split(",")
@account = options.account
@domain = @account + ".campfirenow.com"
@authorization = "Basic " + new Buffer("#{@token}:x").toString("base64")
@ymendel
ymendel / gist:897611
Created April 1, 2011 01:50
Are you ready to rock?
flf2a$ 11 11 20 0 2
rockhands.flf Version 1
by: Yossef Mendelssohn [email protected]
@
@
@
@
@
@
@
#!/usr/bin/env ruby
#
# A quick script to dump an overview of all the open issues in all my github projects
#
require 'octokit'
require 'awesome_print'
require 'rainbow'
@defunkt
defunkt / gitio
Created September 11, 2011 08:11
Turn a github.com URL into a git.io URL.
#!/usr/bin/env ruby
# Usage: gitio URL [CODE]
#
# Turns a github.com URL
# into a git.io URL
#
# Copies the git.io URL to your clipboard.
url = ARGV[0]
code = ARGV[1]
@atmos
atmos / heaven.md
Last active November 23, 2020 22:35
Response to a dude who asked about heaven. https://github.com/holman/feedback/issues/422

@holman got a request about our deployment system, heaven

I know it's not a high priority, but has there been any activity on open-sourcing the core Heaven gem?

There is. I've been working on extracting the non-GitHub specific parts into two gems. This first is a CLI portion called hades. The second is an HTTP API portion called heaven.

When you open source something previously used as in internal tool like Heaven, Hubot, Boxen, etc., how do you manage and hook in the parts that need to stay internal?

Normally I focus around four questions:

@jfryman
jfryman / gist:7009912
Created October 16, 2013 15:42
Toggle BitTorrent Sync via AppleScript
if application "BitTorrent Sync" is running then
tell application "System Events" to tell process "BitTorrent Sync"
tell menu bar item 1 of menu bar 2
click
click menu item "Pause Syncing" of menu 1
end tell
end tell
end if
@zerowidth
zerowidth / sql.md
Last active April 11, 2017 18:31
GitHub::SQL - a helping hand for SQL in a rails app

DEPRECATED

GitHub::SQL has been released as an officially-maintained project and ruby gem: github/github-ds.