Skip to content

Instantly share code, notes, and snippets.

View koostudios's full-sized avatar

KOO Studios koostudios

View GitHub Profile
@koostudios
koostudios / jumpstart-nginx.sh
Created August 26, 2012 03:43
JumpStart Script: Nginx
#!bin/bash
# JumpStart Nginx on Ubuntu - installs Nginx
# wget https://raw.github.com/gist/3473679/jumpstart-nginx.sh && chmod +x jumpstart-nginx.sh && sudo ./jumpstart-nginx.sh
apt-get update
apt-get install build-essential libpcre3-dev libssl-dev zlib1g
# Installing PCRE
cd /usr/local/src
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.31.tar.gz
@koostudios
koostudios / jumpstart-node.sh
Last active October 9, 2015 08:48
JumpStart Script: NodeJS
#!bin/bash
# JumpStart NodeJS on Ubuntu - installs NodeJS. Copy the following line and run!
# wget https://raw.github.com/gist/3472910/jumpstart-node.sh && sudo chmod +x jumpstart-node.sh && sudo ./jumpstart-node.sh
sudo apt-get update
sudo apt-get install make g++ python git libssl-dev
git clone git://github.com/joyent/node.git
cd node
git checkout v0.10.26
./configure
@koostudios
koostudios / main.coffee
Created May 5, 2012 08:32
BrowserID: Logging in with BrowserID, Passport and NodeJS
# Variables
exp = require 'express'
app = exp.createServer()
pass = require 'passport'
BrowserID = require('passport-browserid').Strategy
# Passport Serialize and Deserialize Functions
pass.serializeUser (user, done) ->
done null, user.email