Skip to content

Instantly share code, notes, and snippets.

View tinomen's full-sized avatar

Jake Mallory tinomen

  • Salt Lake City, UT
View GitHub Profile
Removing /Users/jmallory/.rvm/src/ruby-1.8.6-p399...
Removing /Users/jmallory/.rvm/rubies/ruby-1.8.6-p399...
install 1.8.6 --trace
rvm 0.1.18 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/]
+ [[ -z install ]]
Removing /Users/jmallory/.rvm/src/ruby-1.8.6-p287...
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
it seems that /Users/jmallory/.rvm/rubies/ruby-1.8.6-p287 is already non existent.
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
install 1.8.6-p287 --trace
> rvm install openssl ; rvm remove 1.8.6-p287 ; rvm install 1.8.6-p287 -C --with-openssl-dir=$HOME/.rvm/usr --trace
Fetching openssl-0.9.8k.tar.gz to /Users/jmallory/.rvm/archives
Extracting openssl-0.9.8k.tar.gz to /Users/jmallory/.rvm/src
Configuring openssl in /Users/jmallory/.rvm/src/openssl-0.9.8k.
$ rvm install openssl --trace
install openssl --trace
rvm 0.1.18 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/]
+ [[ -z openssl ]]
+ [[ ! -z '' ]]
+ [[ ! -z '' ]]
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
//Add the following category to CPToolbar
@implementation CPToolbar (selectables)
- (CPToolbar)initWithSelector:(CPString)anId forWindow:(CPWindow)aWindow
{
if(self = [self initWithIdentifier:anId])
{
var mainBundle = [CPBundle mainBundle],
image = [[CPImage alloc] initWithContentsOfFile:[mainBundle pathForResource:@"selected.png"]
@tinomen
tinomen / curl-client.bash
Created September 10, 2010 22:00
riak-sinatra-test-session.bash
$ curl -X PUT -v -F value=@bauhaus.jpg http://localhost:9292/test/bauhaus.jpg
* About to connect() to localhost port 9292 (#0)
* Trying ::1... Connection refused
* Trying fe80::1... Connection refused
* Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 9292 (#0)
> PUT /test/bauhaus.jpg HTTP/1.1
> User-Agent: curl/7.21.0 (x86_64-apple-darwin10.4.0) libcurl/7.21.0 OpenSSL/1.0.0a zlib/1.2.5 libidn/1.19
> Host: localhost:9292
> Accept: */*
#----------------------------------------------------------------------------
# Git Setup
#----------------------------------------------------------------------------
file '.gitignore', <<-FILE
.DS_Store
log/*.log
tmp/**/*
config/database.yml
db/*.sqlite3
public/uploads/*
@tinomen
tinomen / r3-templates-js-framework.rb
Created October 23, 2010 04:59
choose javascript framework
#----------------------------------------------------------------------------
# Choose Javascript Framework
#----------------------------------------------------------------------------
run 'mkdir public/uploads && chmod 777 public/uploads'
run 'mkdir public/ui'
ask_js = ask("\r\n\r\nWhat javascript framework do you want to use?\r\n\r\n(1) Prototype\r\n(2) jQuery\r\n(3) MooTools\r\n(4) RightJS")
if ["1", "2", "3", "4"].include?(ask_db_type)
@prototype = (ask_db_type=="1")
@jquery = (ask_db_type=="2")
@tinomen
tinomen / r3-templates-logrotate.rb
Created October 23, 2010 05:00
setup logger to rotate
#----------------------------------------------------------------------------
# Rotate log files (50 files max at 1MB each)
#----------------------------------------------------------------------------
log_path = '#{Rails.root}/log/#{Rails.env}.log'
gsub_file 'config/application.rb', /(< Rails::Application.*)/ , "\\1\n config.logger =
Logger.new(\"#{log_path}\", 50, 1048576)"
@tinomen
tinomen / msgpack_example.rb
Created January 19, 2011 01:27
log client for simple rpc logger using MessagePack
require 'msgpack'
require 'msgpack/rpc'
class Logr
attr_accessor :client
def initialize(ip)
@client = MessagePack::RPC::Client.new(ip, 9090)
end