Skip to content

Instantly share code, notes, and snippets.

View obrientimothya's full-sized avatar

Timothy O'Brien obrientimothya

  • CodeBigger
  • Australia
View GitHub Profile
@obrientimothya
obrientimothya / app.js
Created January 25, 2016 04:09
api-jwt /app.js
// 1. Include Packages
var express = require("express");
var bodyParser = require('body-parser');
var mongoose = require("mongoose");
var cors = require("cors");
var logger = require('morgan');
// 2. Include Configuration
var config = require('./config');
#!/bin/bash
timezone="Australia/Melbourne"
redis_version=2.6.11
# from here: http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/
# and here: https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server
###############################################
# To use:
# wget https://gist.github.com/raw/4497007/866287a130a5a4ca12a132fd52e391cde39f4f3f/install-redis.sh
@obrientimothya
obrientimothya / gist:2041588
Created March 15, 2012 03:06
Install Homebrew
/usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"