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
| ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAvCdDiS/B2rfALAM/GHYn8fxjxOWDhJYdLbTtFFTrSJYLaR/56nZ6ptNL8GEAdFgoPKVAYc022jAE7bd/bHHo3EfVzHMq3rDjPrPNKwlChkqS8JkanQFurjptGsrF01wyvhxIsyVGT0u8iKk3hGfVqZxI19Bq4UKdYSmGtAqhCLmO3KXT1uOtb/v92N7x2AInDDVBN0wX56Xne33/wagAYVxcvYYnDxpQbPDB5e2yXXcU5P6AISnoI86eFX9hoHcP85plk4vcXKS1JUyebgT3aTW8EdhIKaDh+tm68v+yqi4GThM/UgT7/0rj8kwaJoEYzmMnI09XGO/H7mC2O9gqkQ== [email protected] | |
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
| ~/Projects/roro-faces pretty$ sc | |
| Loading development environment (Rails 2.1.1) | |
| /Library/Ruby/Site/1.8/rubygems.rb:142:in `activate':Gem::Exception: can't activate hpricot (= 0.6, runtime), already activated hpricot-0.6.161 | |
| /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- html/document (MissingSourceFile) | |
| from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `require' | |
| from /Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:510:in `require' | |
| from /Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:355:in `new_constants_in' | |
| from /Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:510:in `require' | |
| from /Library/Ruby/Gems/1.8/gems/actionpack-2.1.1/lib/action_controller/assertions/response_assertions.rb:2 | |
| from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `gem_original_require' |
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 | |
| # Just splits up the queries into 20 tracks at a time, so I don't inundate the service, and so I can see what's happening. | |
| # Its pretty slow on average. | |
| # I'll need to parse the XML and reapply to the tags. | |
| # | |
| # get a MusicDNS key + genpuid & friends at http://www.musicip.com/ | |
| require 'rubygems' | |
| require 'escape' # gem install escape |
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
| alias l='ls -GlAF' | |
| alias h='history' | |
| alias d='cd $HOME/Desktop' | |
| alias c='clear' | |
| alias ..='cd ..' | |
| alias ...='cd ../..' | |
| alias rbash='source ~/.bash_profile' | |
| alias ebash='$EDITOR ~/.bashrc; rbash' | |
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 'twitter' | |
| require 'faker' | |
| trap('INT') do | |
| puts 'Finishing tweet_hax00r session.' | |
| exit | |
| end |
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
| require 'appscript' # sudo gem install rb-appscript | |
| puts Appscript.app('Terminal').windows.get.select{|w|w.frontmost}.collect{|w| [w.number_of_columns.get, w.number_of_rows.get]}.first |
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
| git fetch origin issues:issues # Pull data from remote server | |
| git clone -l -s -n . issues # Create a new linked repo | |
| cd issues | |
| git fetch origin issues:issues # Pull the issues branch to that new repo | |
| git checkout issues # Unpack the issues branch | |
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 | |
| puts '-'*10 | |
| keys = %w( 121 122 123 ) | |
| class String | |
| def first(n=1); self[0..(n-1)]; end | |
| end | |
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 'colored' | |
| require 'view_helper' | |
| module Styles | |
| def release(id, name, number, desc) | |
| print_indent |
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
| <html><head> | |
| <script src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js" type="text/javascript" charset="utf-8"></script> | |
| <script src="http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.2/scriptaculous.js" type="text/javascript" charset="utf-8"></script> | |
| <script src="http://raphaeljs.com/raphael.js" type="text/javascript" charset="utf-8"></script> | |
| <script type="text/javascript" charset="utf-8"> | |
| window.onload = function() { | |
| var paper = Raphael('raphael',120,20); | |
| var circle = paper.circle(10, 10, 10); | |
| circle.attr("fill", "#00F"); | |
| circle.attr("stroke", "#fff"); |
OlderNewer