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
| =begin | |
| Capistrano deployment email notifier for Rails 3 | |
| Do you need to send email notifications after application deployments? | |
| Christopher Sexton developed a Simple Capistrano email notifier for rails. You can find details at http://www.codeography.com/2010/03/24/simple-capistrano-email-notifier-for-rails.html. | |
| Here is Rails 3 port of the notifier. | |
| The notifier sends an email after application deployment has been completed. |
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 'net/dns/resolver' | |
| # Custom Domain | |
| # | |
| # Require net-dns gem | |
| # | |
| # A Rack middleware to to resolve the custom domain to original subdomain | |
| # for your multi telent application. | |
| # | |
| # It's all transperant to your application, it performs cname lookup and |
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
| ## SOLUTION | |
| I was able to get past the error by putting this line at the top of config/application.rb | |
| require 'fcntl' | |
| ## | |
| torquebox-2.0.0.beta1 | |
| $ uname -a | |
| Darwin JohnsAir.local 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64 |
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
| vcloud@Master1:~/kaleo-current$ bundle exec rails c --trace | |
| NameError: uninitialized constant TorqueBox::Infinispan::Cache::TransactionMode | |
| vcloud@Master1:~/kaleo-current$ RAILS_ENV=production rake assets:precompile --trace | |
| ** Invoke assets:precompile (first_time) | |
| ** Execute assets:precompile | |
| /home/vcloud/torquebox-current/jruby/bin/jruby /home/vcloud/torquebox-current/jruby/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace | |
| ** Invoke assets:precompile:all (first_time) | |
| ** Execute assets:precompile:all | |
| ** Invoke assets:precompile:primary (first_time) |
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
| # Execscripts.coffee | |
| # John Lynch / Rigel Group, LLC | |
| # Open source under the MIT License. | |
| # | |
| # Create a new binding that marks a specific node as having children scripts blocks, and then executes those script | |
| # blocks as soon as the node has been added to the DOM by Batman. (This is necessary as many jQuery-type plugins | |
| # wont work if run on an isolated node before it has been added to the DOM.) | |
| # | |
| # (Thanks to SO for some of this code. http://stackoverflow.com/questions/220188/how-can-i-determine-if-a-dynamically-created-dom-element-has-been-added-to-the-d) | |
| # |
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
| ###################### | |
| # | |
| # ActiveRecord's ConnectionPool in Rails 3.2.3 allows threads to 'steal' | |
| # connections from each other, so some threads get starved out. | |
| # | |
| # This monkey patch uses an implementation from https://github.com/rails/rails/pull/6492 | |
| # that ensures 'fair' queue in ConnectionPool. | |
| # | |
| # It's actually a weird hybrid which ALSO maintains the clear_stale_cached_connections! | |
| # behavior to reclaim leaked orphaned connections, and calls that method |
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
| <html> | |
| <head> | |
| <meta http-equiv="X-UA-Compatible" content="IE=8" /> | |
| <title>Batman Profiler</title> | |
| <script type="text/javascript" src="https://raw.github.com/Shopify/batman/master/lib/es5-shim.js"></script> | |
| <script type="text/javascript" src="https://raw.github.com/Shopify/batman/v0.9.0/lib/batman.js"></script> | |
| <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
| <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.3.3/underscore-min.js"></script> | |
| <script type="text/javascript" src="http://coffeescript.org/extras/coffee-script.js"></script> | |
| <script src="http://code.highcharts.com/highcharts.js"></script> |
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
| <html> | |
| <head> | |
| <meta http-equiv="X-UA-Compatible" content="IE=8" /> | |
| <title>Batman Animate</title> | |
| <script type="text/javascript" src="https://raw.github.com/Shopify/batman/master/lib/es5-shim.js"></script> | |
| <script type="text/javascript" src="https://raw.github.com/Shopify/batman/v0.9.0/lib/batman.js"></script> | |
| <script type="text/javascript" src="http://coffeescript.org/extras/coffee-script.js"></script> | |
| <style> | |
| p { | |
| font: 12px/16px Arial; |
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 'parallel' # gem install parallel (https://github.com/grosser/parallel) | |
| # Monkey patch to Sprockets::StaticCompiler, a class provided by actionpack | |
| # that's used by the assets:precompile task. This patch uses the Parallel gem | |
| # to parallelize asset compilation in the simplest way possible. | |
| # | |
| # Parallel wraps Process.fork to handle things like inter-process communication | |
| # via pipes and determining the maximum number of processes to run based on | |
| # your system's total logical processors. So far only tested on MRI 1.9.3 on OS X. | |
| module Sprockets |
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 | |
| # License: Public Domain. | |
| # Author: Joseph Wecker, 2012 | |
| # | |
| # Are you tired of trying to remember what .bashrc does vs .bash_profile vs .profile? | |
| # Are you tired of trying to remember how darwin/mac-osx treat them differently from linux? | |
| # Are you tired of not having your ~/.bash* stuff work the way you expect? | |
| # | |
| # Symlink all of the following to this file: | |
| # * ~/.bashrc |