Migrei o post para meu blog, por favor clique no link abaixo:
http://blog.rafaelrosafu.info/2013/07/16/imigrando-e-vivendo-no-canada-um-guia-nada-imparcial.html
Obrigado aos que deixaram comentários :)
| # This file is used by Rack-based servers to start the application. | |
| # GC_FREQUENCY = 8 | |
| # require "unicorn/oob_gc" | |
| # GC.disable # Don't run GC during requests | |
| # use Unicorn::OobGC, GC_FREQUENCY # Only GC once every GC_FREQUENCY requests | |
| # # Unicorn self-process killer | |
| require "unicorn/worker_killer" | 
| //= require chosen.jquery.js | |
| !(function (angular) { | |
| "use strict"; | |
| angular.module('ui.chosen', []) | |
| .value('chosenConstants', { | |
| 'REGEXP': /^\s*(.*?)(?:\s+as\s+(.*?))?(?:\s+group\s+by\s+(.*))?\s+for\s+(?:([\$\w][\$\w\d]*)|(?:\(\s*([\$\w][\$\w\d]*)\s*,\s*([\$\w][\$\w\d]*)\s*\)))\s+in\s+(.*)$/, | |
| 'WHITELIST': ['noResultsText', 'allowSingleDeselect', 'disableSearchThreshold', 'disableSearch'] | |
| }) | 
Migrei o post para meu blog, por favor clique no link abaixo:
http://blog.rafaelrosafu.info/2013/07/16/imigrando-e-vivendo-no-canada-um-guia-nada-imparcial.html
Obrigado aos que deixaram comentários :)
| # config/initializers/honeybadger.rb | |
| Honeybadger.configure do |config| | |
| ... | |
| config.async do |notice| | |
| WorkingBadger.perform_async(notice.to_json) | |
| end | |
| end | 
| #! /bin/sh | |
| . /lib/lsb/init-functions | |
| PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | |
| DAEMON=/usr/sbin/nginx | |
| PS="nginx" | |
| PIDNAME="nginx" #lets you do $PS-slave | |
| PIDFILE=$PIDNAME.pid #pid file | |
| PIDSPATH=/var/run | |
| # Generated by iptables-save v1.4.2 on Wed Feb 10 02:27:40 2010 | |
| *raw | |
| :PREROUTING ACCEPT [50797:74255039] | |
| :OUTPUT ACCEPT [25636:1371004] | |
| COMMIT | |
| # Completed on Wed Feb 10 02:27:40 2010 | |
| # Generated by iptables-save v1.4.2 on Wed Feb 10 02:27:40 2010 | |
| *nat | |
| :PREROUTING ACCEPT [152:51984] | |
| :POSTROUTING ACCEPT [41:2614] | 
| set :rails_env, :production | |
| set :unicorn_binary, "/usr/bin/unicorn" | |
| set :unicorn_config, "#{current_path}/config/unicorn.rb" | |
| set :unicorn_pid, "#{current_path}/tmp/pids/unicorn.pid" | |
| namespace :deploy do | |
| task :start, :roles => :app, :except => { :no_release => true } do | |
| run "cd #{current_path} && #{try_sudo} #{unicorn_binary} -c #{unicorn_config} -E #{rails_env} -D" | |
| end | |
| task :stop, :roles => :app, :except => { :no_release => true } do | 
| #!/usr/bin/env bash | |
| ######################################################################### | |
| # # | |
| # MySQL performance tuning primer script # | |
| # Writen by: Matthew Montgomery <[email protected]> # | |
| # Inspired by: MySQLARd (http://gert.sos.be/demo/mysqlar/) # | |
| # Version 1.2-r6 # | |
| # Licenced under GPLv2 # | |
| # # |