Skip to content

Instantly share code, notes, and snippets.

@esurdam
esurdam / nginx.conf
Created July 9, 2016 00:15 — 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
@esurdam
esurdam / gist:406b8158895191eda0546d42027d24b9
Last active July 12, 2016 05:23 — forked from ericandrewlewis/gist:95239573dc97c0e86714
Setting up a WordPress site on AWS

Setting up a WordPress site on AWS

This tutorial walks through setting up AWS infrastructure for WordPress, starting at creating an AWS account. We'll manually provision a single EC2 instance (i.e an AWS virtual machine) to run WordPress using Nginx, PHP-FPM, and MySQL.

This tutorial assumes you're relatively comfortable on the command line and editing system configuration files. It is intended for folks who want a high-level of control and understanding of their infrastructure. It will take about half an hour if you don't Google away at some point.

If you experience any difficulties or have any feedback, leave a comment. 🐬

Coming soon: I'll write another tutorial on a high availability setup for WordPress on AWS, including load-balancing multiple application servers in an auto-scaling group and utilizing RDS.

Keybase proof

I hereby claim:

  • I am esurdam on github.
  • I am esurdam (https://keybase.io/esurdam) on keybase.
  • I have a public key ASAkdEMBlhXajZOT_qpRk2so3VzBohFHoKHk8skhXYHb7wo

To claim this, I am signing this object:

@esurdam
esurdam / Enhance.js
Created December 17, 2015 13:16 — forked from sebmarkbage/Enhance.js
Higher-order Components
import { Component } from "React";
export var Enhance = ComposedComponent => class extends Component {
constructor() {
this.state = { data: null };
}
componentDidMount() {
this.setState({ data: 'Hello' });
}
render() {