Skip to content

Instantly share code, notes, and snippets.

View jrnickell's full-sized avatar

John Nickell jrnickell

View GitHub Profile
@jrnickell
jrnickell / provision.sh
Created April 9, 2015 23:39
Nginx & PHP-FPM
#!/usr/bin/env bash
# bin folder
cd ~
mkdir -p ~/bin
# base apps and upgrade
sudo apt-get update
sudo apt-get install -y aptitude curl vim git unzip openssl
sudo aptitude -y safe-upgrade
@jrnickell
jrnickell / serve-static
Last active February 13, 2019 00:36
Docker Python HTTP Server
#!/usr/bin/env bash
# place in ~/bin or a PATH directory
#
# usage:
#
# $ cd /path/to/site
# $ serve-static 8443
#
# port number defaults to 8000