Skip to content

Instantly share code, notes, and snippets.

View twoism-dev's full-sized avatar

Ben Sales twoism-dev

View GitHub Profile
@twoism-dev
twoism-dev / YARD-grape.rb
Created July 12, 2012 11:08
YARD Example for Grape
require "yard"
module YARD
module Grape
def self.routes
YARD::Handlers::Grape::AbstractRouteHandler.routes
end
def self.error_handlers
@twoism-dev
twoism-dev / gist:1183437
Created August 31, 2011 12:38
Create self-signed SSL certificate for Nginx
#!/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
curl -d "channel=84" httpadio.com/padData/pad_provider.jsp