Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
echo "Generating an SSL private key to sign your certificate..."
openssl genrsa -des3 -out myssl.key 1024
echo "Generating a Certificate Signing Request..."
openssl req -new -key myssl.key -out myssl.csr
echo "Removing passphrase from key (for nginx)..."
cp myssl.key myssl.key.org
openssl rsa -in myssl.key.org -out myssl.key
require 'grape'
module My
class API < Grape::API
prefix 'api'
## params key list
#################################################################################################################
# 1. login
# 2. sign
@gangster
gangster / mongoid.rb
Created November 19, 2010 02:53 — forked from fcoury/mongoid.rb
file 'Gemfile', <<-GEMS
source 'http://gemcutter.org'
gem "rails", "3.0.3"
gem "bson_ext"
gem "mongoid", "2.0.0.beta.20"
gem "haml", "3.0.24"
gem "compass", "0.10.6"
gem "inherited_resources"
group :test do
# Application Generator Template
# Devise, Cucumber, RSpec... for use with Rails 3
# http://gist.github.com/513564
# Based on the Mongoid/Devise template: http://github.com/fortuity/rails3-mongoid-devise/raw/master/template.rb
#
#
# Installs my js_lib rakefile, found: http://gist.github.com/raw/628715/js_lib.rake
# (to keep js libraries out of source control.)
#
# Usage: