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
| rvm install 1.9.3-p0 -n new_hash --patch `curl -O -s -w "hash_optimize.patch" https://raw.github.com/gist/1509477/0ce84bfa6464a87eba8ef083f8f0290d98e67a05/hash_optimize.patch` | |
| rvm 1.9.3-p0-new_hash | |
| which ruby | |
| /Users/yury/.rvm/rubies/ruby-1.9.3-p0-new_hash/bin/ruby | |
| 82.02 real 83.01 user 1.61 sys | |
| 204537856 maximum resident set size | |
| 0 average shared memory size |
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
| ╭─yury@airbot ~/Work/varissue ‹ruby-1.9.2› | |
| ╰─$ RAILS_ENV=development bundle exec rake assets:precompile -t | |
| ** Invoke assets:precompile (first_time) | |
| ** Execute assets:precompile | |
| /Users/yury/.rvm/rubies/ruby-1.9.2-head/bin/ruby /Users/yury/.rvm/gems/ruby-1.9.2-head/bin/rake assets:precompile:all RAILS_ENV=development RAILS_GROUPS=assets --trace | |
| ** Invoke assets:precompile:all (first_time) | |
| ** Execute assets:precompile:all | |
| ** Invoke assets:precompile:primary (first_time) | |
| ** Invoke assets:environment (first_time) | |
| ** Execute assets:environment |
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 Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController | |
| def facebook | |
| create_auth | |
| end | |
| def twitter | |
| create_auth | |
| 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
| GEM | |
| remote: http://rubygems.org/ | |
| specs: | |
| actionmailer (3.1.1) | |
| actionpack (= 3.1.1) | |
| mail (~> 2.3.0) | |
| actionpack (3.1.1) | |
| activemodel (= 3.1.1) | |
| activesupport (= 3.1.1) | |
| builder (~> 3.0.0) |
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
| ⚡ rvm install 1.9.3 | |
| Installing Ruby from source to: /Users/yury/.rvm/rubies/ruby-1.9.3-preview1 rc1, this may take a while depending on your cpu(s)... | |
| ruby-1.9.3-preview1 rc1 - #fetching | |
| ruby-1.9.3-preview1 rc1 - #downloading ruby-1.9.3-preview1 rc1, this may take a while depending on your connection... | |
| % Total % Received % Xferd Average Speed Time Time Time Current | |
| Dload Upload Total Spent Left Speed | |
| 0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0 | |
| curl: (22) The requested URL returned error: 500 | |
| curl: (6) Could not resolve host: rc1.tar.bz2; nodename nor servname provided, or not known |
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
| ------pluploadboundaryp163rhf33011pf12pn1nbhgv11pvc4 | |
| Content-Disposition: form-data; name="name" | |
| image-5.jpg | |
| ------pluploadboundaryp163rhf33011pf12pn1nbhgv11pvc4 | |
| Content-Disposition: form-data; name="authenticity_token" | |
| r1oF2oAbeaGRT9Mnw+jCr9c0Jwwryv6je4m9vTo6YGc= | |
| ------pluploadboundaryp163rhf33011pf12pn1nbhgv11pvc4 | |
| Content-Disposition: form-data; name="_darim_session" |
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_self | |
| */ | |
| @import "style.css.scss"; | |
| @import "layout.css.scss"; |
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
| ERROR Encoding::UndefinedConversionError: "\xD0" from ASCII-8BIT to UTF-8 | |
| /Users/yury/.rvm/gems/ruby-1.9.2-p180@railspre/gems/activesupport-3.1.0.beta1/lib/active_support/buffered_logger.rb:104:in `write' | |
| /Users/yury/.rvm/gems/ruby-1.9.2-p180@railspre/gems/activesupport-3.1.0.beta1/lib/active_support/buffered_logger.rb:104:in `block (2 levels) in flush' | |
| /Users/yury/.rvm/gems/ruby-1.9.2-p180@railspre/gems/activesupport-3.1.0.beta1/lib/active_support/buffered_logger.rb:103:in `each' | |
| /Users/yury/.rvm/gems/ruby-1.9.2-p180@railspre/gems/activesupport-3.1.0.beta1/lib/active_support/buffered_logger.rb:103:in `block in flush' | |
| <internal:prelude>:10:in `synchronize' | |
| /Users/yury/.rvm/gems/ruby-1.9.2-p180@railspre/gems/activesupport-3.1.0.beta1/lib/active_support/buffered_logger.rb:102:in `flush' | |
| /Users/yury/.rvm/gems/ruby-1.9.2-p180@railspre/gems/activesupport-3.1.0.beta1/lib/active_support/log_subscriber.rb:84:in `block in flush_all!' | |
| /Users/yury/.rvm/gems/ruby-1.9.2-p180@railspre/gems/activesupport-3.1.0.beta1 |
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
| otool -L /usr/local/bin/mysql | |
| /usr/local/bin/mysql: | |
| /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.10) | |
| /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3) | |
| /usr/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8) | |
| /usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8) | |
| /usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0) | |
| /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0) |
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 'benchmark' | |
| n = 1000000 | |
| words = ["string", :symbol, "string", "string", "string"] | |
| Benchmark.bm(20) do |x| | |
| x.report('<< "_"') do | |
| n.times do | |
| res = words.inject("") {|string, p| string << "#{p}_"} | |
| end |