Skip to content

Instantly share code, notes, and snippets.

[progressIndicator startAnimation:nil];
dispatch_async(dispatch_get_global_queue( DISPATCH_QUEUE_PRIORITY_LOW, 0), ^{
NSTask *task = [[NSTask alloc] init];
NSArray *arguments = [NSArray arrayWithObjects:@"-l", @"rvm", @"info", rubyName, @"ruby,homes,binaries,environment", nil];
NSPipe *pipe = [NSPipe pipe];
NSFileHandle *file = [pipe fileHandleForReading];
[task setStandardOutput: pipe];
[task setArguments: arguments];
[task setLaunchPath:@"/bin/bash"];
IBOutlet NSTextView *infoBox;
NSString *response = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
[infoBox setString:response];
[response release];
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334-10M3326)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode)
[2011-03-16 19:38:39] GEM_PATH="/Users/rhinocerous/.rvm/gems/ruby-1.9.2-head:/Users/rhinocerous/.rvm/gems/ruby-1.9.2-head@global:/Users/rhinocerous/.rvm/gems/ruby-1.9.2-head@global" GEM_HOME="/Users/rhinocerous/.rvm/gems/ruby-1.9.2-head" "/Users/rhinocerous/.rvm/rubies/ruby-1.9.2-head/bin/ruby" "/Users/rhinocerous/.rvm/src/rubygems-1.6.2/setup.rb"
/Users/rhinocerous/.rvm/src/rubygems-1.6.2/lib/rubygems/gem_runner.rb:84:in `<top (required)>': undefined method `load_plugins' for Gem:Module (NoMethodError)
from /Users/rhinocerous/.rvm/src/rubygems-1.6.2/setup.rb:25:in `require'
from /Users/rhinocerous/.rvm/src/rubygems-1.6.2/setup.rb:25:in `<main>'
/Users/rhinocerous/.rvm/scripts/get: line 3: /base: No such file or directory
/Users/rhinocerous/.rvm/scripts/get: line 4: /version: No such file or directory
/Users/rhinocerous/.rvm/scripts/get: line 88: rvm_log: command not found
/Users/rhinocerous/.rvm/scripts/get: line 90: __rvm_version: command not found
mkdir: : No such file or directory
fatal: destination path 'rvm' already exists and is not an empty directory.
fatal: destination path 'rvm' already exists and is not an empty directory.
/Users/rhinocerous/.rvm/scripts/get: line 114: rvm_log: command not found
/Users/rhinocerous/.rvm/scripts/get: line 115: /rvm: No such file or directory
110315 14:22:15 [Warning] Can't create test file /usr/local/mysql-5.5.9-osx10.6-x86_64/data/Mac2.lower-test
110315 14:22:15 [Warning] Can't create test file /usr/local/mysql-5.5.9-osx10.6-x86_64/data/Mac2.lower-test
mysqld: File './mysql-bin.index' not found (Errcode: 13)
110315 14:22:15 [ERROR] Aborting
110315 14:22:16 [Note] mysqld: Shutdown complete
versions << version.gsub!(/[\[\]]/, "")
output:
[ruby-1.8.6-p420]
[ruby-1.8.6-head]
[ruby-1.8.7-p334]
[ruby-1.8.7-head]
[ruby-1.9.1-p243]
Loading development environment (Rails 3.0.3)
ruby-1.9.2-p0 > feh = %w(feh1 feh2 feh3)
=> ["feh1", "feh2", "feh3"]
ruby-1.9.2-p0 >
$(document).ready(function(){
$("a.tab").live('click', function () {
$(".content").hide();
$("ul.tabs .active").removeClass("active");
$(this).addClass("active");
$("#" + $(this).attr("title")).show();
});
@remear
remear / gist:762389
Created January 2, 2011 07:48
Tie Fighter
._,.
"..-..pf.
-L ..#'
.+_L ."]#
,'j' .+.j` -'.__..,.,p.
_~ #..<..0. .J-.``..._f.
.7..#_.. _f. .....-..,`4'
;` ,#j. T' .. ..J....,'.j`
.` .."^.,-0.,,,,yMMMMM,. ,-.J...+`.j@
.'.`...' .yMMMMM0M@^=`""g.. .'..J..".'.jH