Skip to content

Instantly share code, notes, and snippets.

View orph's full-sized avatar

Alex Graveley orph

View GitHub Profile
@sr75
sr75 / wildcard-ssl-cert-for-testing-nginx-conf.md
Created June 1, 2013 18:35
create a self signed wildcard ssl cert for testing with nginx.conf example

just change out app_name for your purposes

openssl genrsa 2048 > app_name-wildcard.key

openssl req -new -x509 -nodes -sha1 -days 3650 -key app_name-wildcard.key > app_name-wildcard.cert

# Common Name (eg, your name or your server's hostname) []:*.app_name.com

openssl x509 -noout -fingerprint -text < app_name-wildcard.cert > app_name-wildcard.info
@gkoberger
gkoberger / gist:1636822
Created January 19, 2012 00:47
SOPA.js
/* Created by Sahil Lavingia
http://sahillavingia.com/ */
$(function() {
function alphaNumericCheck(theChar) {
return ! ((theChar < 48) || (theChar > 122) || ((theChar > 57) && (theChar < 65)) || ((theChar > 90) && (theChar < 97)));
}
function censor() {
var color = $(this).css('color'),