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
| mysql -h hostname -u USER --password=PASSWORD DATABASENAME < FILENAME |
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
| git checkout --track -b speed origin/speed |
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
| *~ | |
| *.cache | |
| *.log | |
| *.pid | |
| tmp/**/* | |
| log/*.log | |
| .DS_Store | |
| db/cstore/** |
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
| *~ | |
| *.cache | |
| *.log | |
| *.pid | |
| tmp/**/* | |
| log/*.log | |
| .DS_Store | |
| db/cstore/** |
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
| LoadError in UploadController#listener_photo | |
| libWand.so.10: cannot open shared object file: No such file or directory - /usr/lib64/ruby/gems/1.8/gems/rmagick-2.2.2/lib/RMagick2.so | |
| RAILS_ROOT: /home/mtraks/apps/staging/mtraks/current/config/.. | |
| Application Trace | Framework Trace | Full Trace | |
| /usr/lib64/ruby/gems/1.8/gems/rmagick-2.2.2/lib/RMagick2.so | |
| /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require' | |
| /home/mtraks/apps/staging/mtraks/releases/20100513130252/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require' | |
| /home/mtraks/apps/staging/mtraks/releases/20100513130252/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in' |
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
| // This is not a parser - just simple implementation, which ignores optional segments, constraints, conditions, | |
| // nesting of optional segments etc... | |
| // Feel free to implement rich parser in JS ;) | |
| var RailsRouter = { | |
| expose_all : function(arr) { | |
| for each (var route in arr) { | |
| this.expose_route(route) | |
| } | |
| }, | |
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 'formula' | |
| class Ab < Formula | |
| homepage 'http://httpd.apache.org/docs/trunk/programs/ab.html' | |
| url 'http://www.apache.org/dist/httpd/httpd-2.4.3.tar.bz2' | |
| sha1 '0ef1281bb758add937efe61c345287be2f27f662' | |
| def patches | |
| { | |
| # The ab tool of the latest stable httpd (2.4.2) does not work |
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
| # rackup -s puma | |
| require 'puma' # thin does some weird caching | |
| run proc { |env| | |
| body = Enumerator.new do |socket| | |
| socket << " "*1024 # Browsers wait for time or big data chunk | |
| 5.times do | |
| socket << "Hello" | |
| puts "Hello" |
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
| # this is around filter | |
| # to use with db-charmer | |
| # much more convinient then DbCharmer.enable_controller_magic! | |
| # and force_slave_reads | |
| around_filter :read_from_slave | |
| def read_from_slave | |
| DbCharmer.force_slave_reads do | |
| yield |
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
| #lib/module_monkeypatch.rb | |
| # helper method to use | |
| # be sure load it before using))) | |
| # P.S. modules can not use refinements so far | |
| class Module | |
| # it is for classes and ActiveSupport::Concern | |
| # like : | |
| # using refine_with_concern(User => PasswordAuthenticable) | |
| def refine_with_concern(role_mapping={}) |
OlderNewer