Skip to content

Instantly share code, notes, and snippets.

@rahul100885
rahul100885 / ssl_puma.sh
Created October 23, 2018 12:20 — forked from tadast/ssl_puma.sh
localhost SSL with puma
# 1) Create your private key (any password will do, we remove it below)
$ cd ~/.ssh
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key
@rahul100885
rahul100885 / passenger_status.rb
Created October 31, 2011 09:42 — forked from dan-manges/passenger_status.rb
munin plugin for passenger
#!/usr/bin/env ruby
def output_config
puts <<-END
graph_category App
graph_title passenger status
graph_vlabel count
sessions.label sessions
max.label max processes
@rahul100885
rahul100885 / redmine_heroku_deploy.sh
Created September 26, 2011 07:48
Deploy Redmine to Heroku
#!/bin/bash
set -e
REDMINE_URL="http://rubyforge.org/frs/download.php/75097/redmine-1.2.1.tar.gz"
S3_ACCESS_KEY_ID=""
S3_SECRET_ACCESS_KEY=""
S3_BUCKET_NAME=""
HEROKU_APP_NAME=""