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
class ApplicationController < ActionController::Base | |
unless Rails.application.config.consider_all_requests_local | |
#rescue_from Exception, with: :render_500 | |
rescue_from ActionController::RoutingError, with: :render_canvas_404 | |
rescue_from ActionController::UnknownController, with: :render_404 | |
rescue_from AbstractController::ActionNotFound, with: :render_404 | |
rescue_from ActiveRecord::RecordNotFound, with: :render_404 | |
rescue_from ActiveResource::ForbiddenAccess, with: :render_403 | |
end | |
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
You are now talking to an expert. The transcript of your session will be available online. | |
Expert: Hello, can I help you with issues around pivoting 2 columns from 3 tables? | |
You: yeah, how do I do this? | |
Expert: That depends. | |
You: with depends? I don't think that's what I was going for... |
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 clean -xfd | |
git submodule foreach --recursive git clean -xfd | |
git reset --hard | |
git submodule foreach --recursive git reset --hard | |
git submodule update --init --recursive |
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
dependencies: | |
cache_directories: | |
- mongodb-linux-x86_64-2.6.4 | |
pre: | |
- if [[ ! -d mongodb-linux-x86_64-2.6.4 ]]; then wget http://downloads.mongodb.org/linux/mongodb-linux-x86_64-2.6.4.tgz && tar xvzf mongodb-linux-x86_64-2.6.4.tgz; fi | |
- sudo /etc/init.d/mongodb stop | |
- sudo cp mongodb-linux-x86_64-2.6.4/bin/* /usr/bin | |
- sudo /etc/init.d/mongodb start |