Instantly share code, notes, and snippets.

View .MOVED.md
View nginx.conf
user nginx;
# Set this to match the number of CPU cores
worker_processes 2;
events { worker_connections 1024; }
http {
server_names_hash_bucket_size 64;
types_hash_max_size 2048;
server_tokens off;
include mime.types;
default_type application/octet-stream;
View README.md
View nginx.conf
user nginx;
worker_processes 2; # Set this equal to the number of CPU cores
events { worker_connections 1024; }
http {
server_names_hash_bucket_size 64;
types_hash_max_size 2048;
server_tokens off;
include mime.types;
default_type application/octet-stream;
sendfile on;
View .MOVED.md
View .MOVED.md
View .MOVED.md
View README.md
View nginx.conf
user nginx;
worker_processes 2; # Set this equal to the number of CPU cores
events { worker_connections 1024; }
http {
server_names_hash_bucket_size 64;
types_hash_max_size 2048;
server_tokens off;
include mime.types;
default_type application/octet-stream;
sendfile on;
View ip_update_amazon_ec2.sh
#!/bin/bash
#
# Auto IP Update Script for Amazon EC2 Classic AND VPC instances
#
# For detailed instructions, please see:
# https://blog.ls20.com/bash-script-for-automatic-ip-updates-on-amazon-ec2-or-digitalocean/
#
# Copyright (C) 2013 Lin Song
#
# This program is free software: you can redistribute it and/or modify it under