Skip to content

Instantly share code, notes, and snippets.

View jdpace's full-sized avatar

Jared Pace jdpace

  • GitHub
  • Charlotte, NC
View GitHub Profile
@jdpace
jdpace / pryrc
Last active August 29, 2015 14:23
Allow the gist variable name to be used in pry
# ~/.pryrc
Pry.commands.rename_command('dont bother me', 'gist')
# This allows you to have local variables named gist again
@jdpace
jdpace / gitio
Last active August 29, 2015 14:23 — forked from defunkt/gitio
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]