Skip to content

Instantly share code, notes, and snippets.

View danielrsmith's full-sized avatar

Daniel Smith danielrsmith

View GitHub Profile
@danielrsmith
danielrsmith / gist:a0ae3c0bd2ad143f935f5a2421ec0f9f
Last active August 18, 2017 19:44 — forked from giannisp/gist:b53a76047b07751ed3ade3c1db1d2c51
Upgrade PostgreSQL 9.5.5 to 9.6.4 using Homebrew (macOS)
After automatically updating Postgres to 9.6.1 via Homebrew, the pg_ctl start command didn't work.
The error was something like "database files are incompatible with server".
Database files have to be updated before starting the server, here are the steps that had to be followed:
# need to have both 9.6.x and latest 9.5.x installed, and keep 9.6.4 as default
brew services stop postgresql
brew unlink postgresql
brew install postgresql95
brew unlink postgresql95
@danielrsmith
danielrsmith / 0_reuse_code.js
Created January 31, 2014 21:02
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console