type: PIN
Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys
type: PIN
Consumer key: IQKbtAYlXLripLGPWd0HUA
Ansible playbook to setup HTTPS using Let's encrypt on nginx. | |
The Ansible playbook installs everything needed to serve static files from a nginx server over HTTPS. | |
The server pass A rating on [SSL Labs](https://www.ssllabs.com/). | |
To use: | |
1. Install [Ansible](https://www.ansible.com/) | |
2. Setup an Ubuntu 16.04 server accessible over ssh | |
3. Create `/etc/ansible/hosts` according to template below and change example.com to your domain | |
4. Copy the rest of the files to an empty directory (`playbook.yml` in the root of that folder and the rest in the `templates` subfolder) |
rebase
vs merge
).rebase
vs merge
)reset
vs checkout
vs revert
)git rev-parse
)pull
vs fetch
)stash
vs branch
)reset
vs checkout
vs revert
)git reset
vs git rm --cached
)Table of Contents generated with DocToc
var express = require('express'); | |
var redis = require('redis'); | |
const serverType = process.argv[2]; | |
const serverHost = process.argv[3]; | |
const serverPort = parseInt(process.argv[4]); | |
const redisPort = 6379; | |
const redisHost = '127.0.0.1'; |
http://www.depesz.com/2011/12/02/the-secret-ingredient-in-the-webscale-sauce/ | |
http://www.craigkerstiens.com/2012/11/30/sharding-your-database/ | |
https://github.com/markokr/pghashlib | |
http://www.niwi.be/2013/03/06/table-partitioning-with-postgresql/ | |
https://blog.engineyard.com/2013/scaling-postgresql-performance-table-partitioning | |
http://instagram-engineering.tumblr.com/post/10853187575/sharding-ids-at-instagram | |
http://instagram-engineering.tumblr.com/post/40781627982/handling-growth-with-postgres-5-tips-from-instagram | |
http://media.postgresql.org/sfpug/instagram_sfpug.pdf |