Links and Notes from my Classy Git RubyConf talk:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
# SHOW ME | |
# Takes X pictures of you via your iSight, animates them, uploads them to CloudApp, and puts | |
# the url in your clipboard | |
# | |
# This uses a bunch of projects to make the magic happen, mostly thanks | |
# to Zach Holman: http://github.com/holman | |
# | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
README.ext | |
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/tags/v1_8_6/README.EXT?revision=12055 | |
Extending Ruby - Pickaxe | |
http://ruby-doc.org/docs/ProgrammingRuby/html/ext_ruby.html | |
Extending Ruby on O'Reilly | |
http://onlamp.com/pub/a/onlamp/2004/11/18/extending_ruby.html | |
Ruby C Extensions - Mark Volkman |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cijoe hooks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
register({ | |
name: "BitBucket", | |
domains: [ "bitbucket.org" ], | |
sessionCookieNames: [ "sessionid" ], | |
identifyUser: function () { | |
var resp = this.httpGet(this.siteUrl); | |
this.userName = resp.body.querySelectorAll('#main-nav ul li a span')[1].innerHTML.replace(/\(/, "").replace(/\)/, ""); | |
var resp2 = this.httpGet(this.siteUrl + this.userName + '/'); | |
this.userAvatar = resp2.body.querySelector('dl.userinfo dd img').src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git filter-branch --index-filter 'git rm --cached --ignore-unmatch -r -- dir1 dir2 fileA fileB' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
# this script takes your current commit, finds all the submodules in it, | |
# makes them static files in a new tree and updates a branch called 'heroku' | |
# - this way you can push a project with submodules to heroku easily | |
# just run this, then run "git push heroku heroku:master" | |
current_commit = `git rev-parse HEAD` | |
current_tree = `git rev-parse HEAD^{tree}` | |
puts "Starting at tree #{current_tree}" |