Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am myared on github.
  • I am myared (https://keybase.io/myared) on keybase.
  • I have a public key ASBdLlUV96tFfqKPerWD8CdwZM2DSmsWFF4w-RfG76DzZQo

To claim this, I am signing this object:

@myared
myared / migrate_postgresql_database.md
Created March 10, 2017 13:37 — forked from olivierlacan/migrate_postgresql_database.md
How to migrate a Homebrew-installed PostgreSQL database to a new major version (9.3 to 9.4) on OS X

This guide assumes that you recently run brew upgrade postgresql and discovered to your dismay that you accidentally bumped from one major version to another: say 9.3.x to 9.4.x. Yes, that is a major version bump in PG land.

First let's check something.

brew info postgresql

The top of what gets printed as a result is the most important:

@myared
myared / US Zip Codes from 2016 Government Data
Created March 8, 2017 02:44 — forked from senning/US Zip Codes from 2016 Government Data
All US zip codes with their corresponding latitude and longitude coordinates.Comma delimited for your database goodness.Source: http://www.census.gov/geo/maps-data/data/gazetteer.html
This file has been truncated, but you can view the full file.
ZIP,LAT,LNG
00601,18.180555, -66.749961
00602,18.361945, -67.175597
00603,18.455183, -67.119887
00606,18.158345, -66.932911
00610,18.295366, -67.125135
00612,18.402253, -66.711397
00616,18.420412, -66.671979
00617,18.445147, -66.559696
00622,17.991245, -67.153993

Pre-event setup instructions

  1. Install Git
  2. Install nvm
  3. Install Node.js via nvm 0. nvm install 6 (this will install latest v6 of node)
  4. Install Bower: npm install -g bower
  5. Install Ember-CLI: npm install -g ember-cli
  6. Check the version of ember you have installed using ember -v
  7. If your ember version isn't using node 6, run the following commands:
import Ember from 'ember';
let validations = Ember.Mixin.create({
firstValidation: 'one'
});
export default Ember.Controller.extend(validations, {
appName: 'Ember Twiddle',
init() {
context 'performance' do
before do
require 'benchmark'
@posts = []
@users = []
8.times do |n|
user = Factory.create(:user)
@users << user
aspect = user.aspects.create(:name => 'people')
connect_users(@user, @aspect0, user, aspect)