Skip to content

Instantly share code, notes, and snippets.

View kfitzpatrick's full-sized avatar

Kevin Fitzpatrick kfitzpatrick

  • Forj
  • Berkeley, CA, USA
  • 20:34 (UTC -07:00)
View GitHub Profile
describe("Page Behaviors", function () {
beforeEach(function() {
spyOn(window, "alert").andCallFake(function() {
});
});
describe("given a page behavior", function () {
beforeEach(function() {
BehaviorMap['.foo'] = function() {
alert("The Pentagon!");
@slackersoft
slackersoft / production.sh
Created May 16, 2011 17:52
heroku multi-app helper script
#!/bin/bash
heroku $@ --app my-production-app
@exAspArk
exAspArk / self-signed-ssl-mongo.sh
Last active October 5, 2025 05:48
Self-signed SSL Certificate with OpenSSL on MacOS | MongoDB
openssl genrsa -out CAroot.key 2048
openssl req -new -key CAroot.key -out CAroot.csr # CN should be different from the certificates below
openssl req -x509 -days 1825 -key CAroot.key -in CAroot.csr -out CAroot.crt
cat CAroot.crt CAroot.key > CAroot.pem
openssl genrsa -out mongod.key 2048
openssl req -new -key mongod.key -out mongod.csr
openssl x509 -req -days 1825 -in mongod.csr -CA CAroot.pem -CAkey CAroot.key -CAcreateserial -out mongod.crt
cat mongod.crt mongod.key > mongod.pem