This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |