Skip to content

Instantly share code, notes, and snippets.

// Restify Server CheatSheet.
// More about the API: http://mcavage.me/node-restify/#server-api
// Install restify with npm install restify
// 1.1. Creating a Server.
// http://mcavage.me/node-restify/#Creating-a-Server
var restify = require('restify');
@clockwork189
clockwork189 / nginx.conf
Created October 30, 2017 04:06 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@clockwork189
clockwork189 / introrx.md
Created May 3, 2017 19:57 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing

Launch the instance and connect with ssh.

##Update the server

sudo yum update

##Install php and MySQL packages

############################################################################
# Installing nodejs, npm, and all their pals on a Rackspace Ubuntu Server
############################################################################
# First get your tools together
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install vim
sudo apt-get install emacs
sudo apt-get install git