Skip to content

Instantly share code, notes, and snippets.

Avatar

Andy Atkinson andyatkinson

View GitHub Profile
View postgres_homebrew.md

issues xfter a restart where postgres is running, but not with launchctl, not sure why stop manually:

pg_ctl -D /usr/local/var/postgres stop -s -m fast

restart with launchctl:

launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
View issue_11199_test_case.rb
unless File.exists?('Gemfile')
File.write('Gemfile', <<-GEMFILE)
source 'https://rubygems.org'
gem 'rails', github: 'rails/rails'
gem 'sqlite3'
GEMFILE
system 'bundle'
end
View unicorn_capistrano_config.rb
# example config from a nginx + unicorn + capistrano deploy to a VPS
# "app" is deployed to /var/www/app
# replace "app" with the app name
# The rule of thumb is to use 1 worker per processor core available,.
# however since we'll be hosting many apps on this server,.
# we need to take a less aggressive approach
worker_processes 2
# We deploy with capistrano, so "current" links to root dir of current release
View keybase.md

Keybase proof

I hereby claim:

  • I am andyatkinson on github.
  • I am andatki (https://keybase.io/andatki) on keybase.
  • I have a public key whose fingerprint is 2BC1 EF01 7DEA 0698 523F 8A3C A6D9 3792 EFC7 54EE

To claim this, I am signing this object:

View how-to-quit.md
:quit
:qa
exit
exit!
quit
.quit
process.exit()
\q