Development checks for fast boottime

A few simple checks to make sure we are not regressing into slow boot times by preloading to many things. Needs to be the last initializer so it catches what all the others are doing -> zz.rb


# config/initializers/zz.rb
if Rails.env.development?
  # make sure we do not regress into slow startup time by preloading to much
  Rails.configuration.after_initialize do
      (File.basename($0) != "rake" && defined?(Rake) && "rake"),
    ].compact.flatten.each { |c| raise "#{c} should not be loaded" }


config/initializers/zz.rb:9:in `block (2 levels) in ': 
User should not be loaded (RuntimeError)

Screen Shot 2014-11-24 at 10.31.40 AM

Making curl + github easy / case sensitive github code search

Create a visible / easy to reuse token in by storing the token in the application name.

Screen Shot 2014-11-24 at 10.31.40 AM


Use curl to search for code (notice the per-page 100) and grep case sensitive.

curl -s -H 'Accept: application/vnd.github.v3.text-match+json' --user "TOKEN_GOES_HERE:x-oauth-basic" '' | grep 'SearchTERM'