Skip to content

Instantly share code, notes, and snippets.

View asteinlein's full-sized avatar

Anders Elieson Steinlein asteinlein

View GitHub Profile
<?php
function init_analytics () {
Segment::init(Config::get('segmentKey'), [
'consumer' => 'socket',
// Disable SSL for speed, as we don't send sensitive data anyhow
'ssl' => false,
]);
}
@asteinlein
asteinlein / wale_postgres_recovery.md
Created April 4, 2016 10:35 — forked from elithrar/wale_postgres_recovery.md
WAL-E + Postgres 9.x (single server + DB) Setup and Recovery

A quick "how to" on what you need to do to both setup AND recover a single-server PostgreSQL database using WAL-E

  • WAL-E: https://github.com/wal-e/wal-e
  • Assuming Ubuntu 12.04 LTS ("Precise")
  • We'll be using S3. Make sure you have an IAM in a group with GetObject, ListBucket and PutObject on the bucket you want to use (and that it's not public).

Setup:

  1. These packages: