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
### NGINX: | |
$ httperf --server=akitaonrails.local --uri=/posts --rate=5 --num-conns=5 | |
httperf --client=0/1 --server=akitaonrails.local --port=80 --uri=/posts --rate=5 --send-buffer=4096 --recv-buffer=16384 --num-conns=5 --num-calls=1 | |
httperf: warning: open file limit > FD_SETSIZE; limiting max. # of open files to FD_SETSIZE | |
Maximum connect burst length: 1 | |
Total: connections 5 requests 5 replies 5 test-duration 28.137 s | |
Connection rate: 0.2 conn/s (5627.3 ms/conn, <=5 concurrent connections) |
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
Rails::Initializer.run do |config| | |
config.logger = Logger.new(STDOUT) | |
config.active_record.colorize_logging = false |
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
#!/bin/bash | |
projects=( rails active_merchant activerecord_i18n_defaults adva_cms amqp ansuz apache-upload-progress-module backports braid click-to-globalize clj-garden cucumber cucumber-tmbundle custom_resource_name deprec design_patterns_in_ruby exception_notification git-me-up git_depot globalize2 globalize2-demo grit http_accept_language insoshi isitjruby jrails jruby-rack lighthouse-api merb-internals-handbook mizuho mspec panda paperclip poignant-br prawn rails-template rake-compiler reia rhodes rhosync rquery rspec rspec-rails ruby-benchmark-suite rubyspec sake-tasks saushengine scanty snippets standalone-migrations translate_routes translator twitter vim-git vim-rails webrat ) | |
for repo in ${projects[@]}; do | |
echo "Updating repo [$repo]" | |
cd /Users/akitaonrails/Sites/rails/$repo | |
git checkout master | |
git pull | |
done | |
function fetch { |
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
*AVISO* agradeço aos interessados, mas já vendi este notebook. []'s | |
Vendo meu Macbook Pro 2008/2009, usado em ótimas condições (penúltima versão antes do novo Unibody, não tem o trackpad multitouch da nova geração) | |
- CPU 2.4Ghz Core 2 Duo | |
- Monitor 15" | |
- 4Gb de RAM (o normal são 2Gb) | |
- NVIDIA GeForce 8600 GT | |
- Firewire 400/800, SuperDrive, etc | |
- acompanha DVD original do Leopard, Apple Remote, etc |
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
2.3.4 CHANGE LOG | |
Action Mailer | |
*2.3.4 (September 4, 2009)* | |
* Minor bug fixes. | |
Action Pack |
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
class U | |
def hoge | |
def self.fuga; end | |
end | |
end | |
u = U.new | |
u.hoge | |
u.method(:fuga) #=> #<Method: #<U:0x46dbf4>.fuga> | |
U.instance_method(:fuga) # raises a NameError "undefined method 'fuga' for class 'U'" |
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
class Bar; end | |
$bar = Bar.new | |
class Baz | |
def $bar.hoge(a = (def fuga; end)) | |
def piyo; end | |
end | |
end | |
$bar.hoge | |
Baz.instance_method(:fuga) #=> #<UnboundMethod: Baz#fuga> |
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
class T | |
$o = Object.new | |
$o.instance_eval do | |
def hoge(a = (def fuga; end)) | |
def piyo; end | |
end | |
end | |
end | |
$o.hoge | |
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
# Gems for Ruby Enterprise Edition 1.8.7 | |
gem install rails mongrel rails-sqlserver-2000-2005-adapter acts_as_tree acts_as_versioned activerecord-tableless annotate capistrano erubis haml haml-edge inherited_resources nifty-generators rack rack-cache racksh ruby-debug sqlite3-ruby will_paginate passenger | |
gem install cucumber rspec rspec-rails shoulda test-spec ZenTest autotest-fsevent autotest-growl autotest_screen email_spec factory_girl faker fakeweb log4r metric_fu mocha quietbacktrace rcov integrity webrat Selenium tarantula mash wirble hirb ruby2ruby RubyInline | |
gem install authlogic authlogic-oid bundler closure-compiler coderay compass cs-active_form dry_scaffold feed-normalizer ferret formtastic has_scope heroku hobo htmlentities validatable liquid newrelic_rpm paperclip responders searchlogic settingslogic thin tlsmail unicorn yui-compressor jammit lockdown | |
gem install BlueCloth lesstile markaby rdiscount RedCloth ultraviolet nokogiri libxml-ruby hpricot httparty httpclient mechanize rest-client |
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
# Gems for JRuby 1.4.0 (1.8.7) | |
gem install jruby-openssl activerecord-jdbcmysql-adapter activerecord-jdbcsqlite3-adapter activerecord-jdbcpostgresql-adapter warbler jetty-rails glassfish | |
gem install rails mongrel acts_as_tree acts_as_versioned activerecord-tableless annotate erubis haml haml-edge inherited_resources nifty-generators rack rack-cache racksh will_paginate | |
gem install cucumber rspec rspec-rails email_spec factory_girl faker fakeweb log4r mocha quietbacktrace rcov webrat Selenium tarantula mash wirble hirb | |
gem install authlogic authlogic-oid bundler closure-compiler coderay compass cs-active_form dry_scaffold feed-normalizer formtastic has_scope htmlentities validatable liquid paperclip responders searchlogic settingslogic tlsmail yui-compressor jammit lockdown |