Skip to content

Instantly share code, notes, and snippets.

💭
Independent contracting and consulting, starting August, 2019

Rick Bradley rick

💭
Independent contracting and consulting, starting August, 2019
Block or report user

Report or block rick

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:34f46ae4ce548a6b1473
@zerowidth
zerowidth / sql.md
Last active Apr 11, 2017
GitHub::SQL - a helping hand for SQL in a rails app
View sql.md

DEPRECATED

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

@jfryman
jfryman / gist:7009912
Created Oct 16, 2013
Toggle BitTorrent Sync via AppleScript
View gist:7009912
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
@atmos
atmos / heaven.md
Last active May 2, 2018
Response to a dude who asked about heaven. https://github.com/holman/feedback/issues/422
View heaven.md

@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:

@defunkt
defunkt / gitio
Created Sep 11, 2011
Turn a github.com URL into a git.io URL.
View gitio
#!/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]
View my-gh-issues.rb
#!/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'
@ymendel
ymendel / gist:897611
Created Apr 1, 2011
Are you ready to rock?
View gist:897611
flf2a$ 11 11 20 0 2
rockhands.flf Version 1
by: Yossef Mendelssohn ymendel@pobox.com
@
@
@
@
@
@
@
@atmos
atmos / campfire.coffee
Created Feb 8, 2011
node 0.4.x compatible irc bot
View campfire.coffee
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")
View nescafe_formatter_rspec1.rb
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
You can’t perform that action at this time.