This file contains 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
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 ]] |
This file contains 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
> 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. |
This file contains 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
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 |
This file contains 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
$ 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 ]] |
This file contains 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
//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"] |
This file contains 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
$ 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: */* |
This file contains 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 Setup | |
#---------------------------------------------------------------------------- | |
file '.gitignore', <<-FILE | |
.DS_Store | |
log/*.log | |
tmp/**/* | |
config/database.yml | |
db/*.sqlite3 | |
public/uploads/* |
This file contains 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
#---------------------------------------------------------------------------- | |
# 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") |
This file contains 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
#---------------------------------------------------------------------------- | |
# 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)" |
This file contains 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 'msgpack' | |
require 'msgpack/rpc' | |
class Logr | |
attr_accessor :client | |
def initialize(ip) | |
@client = MessagePack::RPC::Client.new(ip, 9090) | |
end |
OlderNewer