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
| # Clone a repo (like git clone): | |
| git-svn clone svn+ssh://[email protected]/svn/paperbox | |
| # You should be on master branch (check with git branch) | |
| # After compiling, append svn:ignore settings to | |
| # the default git exclude file: | |
| git-svn show-ignore >> .git/info/exclude | |
| # Do some work and commit locally to git: | |
| git commit ... |
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 'dbus' | |
| bus = DBus::SessionBus.instance | |
| banshee_service = bus.service("org.bansheeproject.Banshee") | |
| banshee = banshee_service.object("/org/bansheeproject/Banshee/PlayerEngine") | |
| puts banshee.introspect |
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 | |
| # Parse Tumblr JSON. | |
| require 'rubygems' | |
| require 'json' | |
| require 'net/http' | |
| class String |
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 | |
| # Input: WordPress XML export file. | |
| # Outputs: a series of Textile files ready to be included in a Jekyll site, | |
| # and comments.yml which contains all approved comments with metadata which | |
| # can be used for a Disqus import. | |
| require 'rubygems' | |
| require 'hpricot' | |
| require 'clothred' |
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
| Sat May 02 13:20:05 +0200 2009 | |
| N is 1000 | |
| ruby is 1.8.7 | |
| Preparing data... | |
| == PeopleMigration: reverting ================================================ | |
| -- drop_table(:people) | |
| -> 0.0447s | |
| == PeopleMigration: reverted (0.0450s) ======================================= |
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 | |
| # Script to benchmark ActiveRecord + MySQL vs Tokyo Cabinet tables | |
| require 'rubygems' | |
| require 'benchmark' | |
| require 'faker' | |
| require 'date' | |
| require 'fileutils' | |
| require 'activerecord' |
NewerOlder