This file contains hidden or 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
| #!/bin/bash -e | |
| repo_combine () { | |
| ADAPTER=$1 | |
| if [ ! -d dm-more ]; then | |
| echo "Cloning solnic's adapter" | |
| git clone git://github.com/solnic/dm-more.git | |
| cd dm-more | |
| git fetch |
This file contains hidden or 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/ruby | |
| # rewrite_history.rb | |
| # Jonathan D. Stott <jonathan.stott@gmail.com> | |
| require 'fileutils' | |
| adapters = %w{ | |
| mysql_adapter.rb | |
| postgres_adapter.rb | |
| sqlite3_adapter.rb | |
| oracle_adapter.rb |
This file contains hidden or 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/ruby | |
| # cpioxz.rb | |
| # Jonathan D. Stott <jonathan.stott@gmail.com> | |
| if ARGV.empty? | |
| warn "Usage: #{$0} directory [directories+]" | |
| exit 1 | |
| end | |
| ARGV.each do |dir| |
This file contains hidden or 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
| #!/bin/bash | |
| FROM=$1 | |
| TO=$2 | |
| echo "Spliting '$TO' from '$FROM'" | |
| git clone --no-hardlinks $FROM $TO | |
| cd $TO | |
| git filter-branch --prune-empty --subdirectory-filter $TO HEAD -- --all | |
| git reset --hard | |
| git gc --aggressive | |
| git prune |
This file contains hidden or 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 | |
| require "rubygems" | |
| require "sinatra" | |
| require "hpricot" | |
| require "open-uri" | |
| class XKCD | |
| attr_accessor :all | |
NewerOlder