Implement a help
field on your project's package.json
listing all the scripts you want to display information about. Just make sure to use the same keys.
$ npm run help -s
> project-sample@1.0.0 help /Users/gordon-freeman/dev/project-sample
# This monkey patches the PostgreSQL adapter to use asynchronous | |
# communication when doing its "SELECT 1" check for is-connection-active. | |
# One symptom of this problem is stalled processing queues in Sidekiq. | |
# See also: | |
# | |
# https://github.com/rails/rails/issues/12867 | |
# | |
# At the time of writing we have seen indefinite blocking down in the C | |
# library's "poll()" method due to the out-of-box Rails code using blocking | |
# I/O, in multithreaded environments - one thread gets stuck in the I/O and |
http://www.conadev.com/fa190814.php | |
Assitido em 19/08/2014 | |
Destaques sobre o relato de como as coisas funcionam na Codeminer: | |
- O principal mérito dado ao uso de escritório físico é juntar juniors e seniors em um mesmo ambiente; | |
- Usam slack para comunicação unificada; | |
- Escritórios e equipes não tem gerentes; |
states = <<STATES | |
AC,Acre | |
AL,Alagoas | |
AP,Amapá | |
AM,Amazonas | |
BA,Bahia | |
CE,Ceará | |
ES,Espírito Santo | |
GO,Goiás | |
MA,Maranhão |
Implement a help
field on your project's package.json
listing all the scripts you want to display information about. Just make sure to use the same keys.
$ npm run help -s
> project-sample@1.0.0 help /Users/gordon-freeman/dev/project-sample
unicorn.rb | |
----------------------------------- | |
application = "jarvis" | |
remote_user = "vagrant" | |
env = ENV["RAILS_ENV"] || "development" | |
RAILS_ROOT = File.join("/home", remote_user, application) | |
worker_processes 8 | |
timeout 30 |
# http://ariejan.net/2011/09/24/rspec-speed-up-by-tweaking-ruby-garbage-collection | |
# | |
# Usage: | |
# DEFER_GC=10 rspec spec/ | |
# DEFER_GC=10 cucumber features/ | |
# | |
# put it to spec/support/deferred_garbage_collection_all_in_one.rb | |
# or feature/support/hooks.rb | |
class DeferredGarbageCollection | |
DEFERRED_GC_THRESHOLD = (ENV['DEFER_GC'] || -1).to_f |
install PostgreSQL 9 in Mac OSX via Homebrew | |
Mac OS X Snow Leopard | |
System Version: Mac OS X 10.6.5 | |
Kernel Version: Darwin 10.5.0 | |
Install notes for PostgreSQL 9.0.1 install using Homebrew: | |
sh-3.2# brew install postgresql |
I had a bit of trouble trying to configure permissions to upload files from my Google Compute Engine instance to my Google Cloud Storage bucket. The process isn't as intuitive as you think. There are a few permissions issues that need to be configured before this can happen. Here are the steps I took to get things working.
Let's say you want to upload yourfile.txt
to a GCS bucket from your virtual machine.
You can use the gsutil
command line tool that comes installed on all GCE instances.
If you've never used the gcloud
or gsutil
command line tools on this machine before, you will need to initialize them with a service account.