Skip to content

Instantly share code, notes, and snippets.

View ugudlado's full-sized avatar

Mahesh ugudlado

View GitHub Profile
@ugudlado
ugudlado / install-heroku-in-ubuntu.sh
Created July 29, 2017 11:34
Installation bash script for heroku installation in Ubuntu
## Not sure where I copied this script from..so no reference link
apt-get install software-properties-common # debian only
add-apt-repository "deb https://cli-assets.heroku.com/branches/stable/apt ./"
curl -L https://cli-assets.heroku.com/apt/release.key | apt-key add -
apt-get update
@ugudlado
ugudlado / unicorn.rb
Created July 29, 2017 10:12
Unicorn config
# config/unicorn.rb
worker_processes Integer(ENV["WEB_CONCURRENCY"] || 3)
timeout 15
preload_app true
before_fork do |server, worker|
Signal.trap 'TERM' do
puts 'Unicorn master intercepting TERM and sending myself QUIT instead'
Process.kill 'QUIT', Process.pid
end
@ugudlado
ugudlado / 2017-07-29-hello-world.md
Created July 29, 2017 09:56
Sample Jekyll markup blogpost

layout: post title: First post date: 2014-07-22 17:22:53.000000000 +00:00 categories: random tags:

  • first
  • post status: publish type: post