Skip to content

Instantly share code, notes, and snippets.

View juanroldan1989's full-sized avatar
🎯
Focusing

Juan Roldán juanroldan1989

🎯
Focusing
View GitHub Profile
@juanroldan1989
juanroldan1989 / json_parsers_benchmark.rb
Created November 26, 2019 20:33 — forked from arieliten/json_parsers_benchmark.rb
Ruby (Rails) Json parsers comparisson
require 'bundler'
require 'active_support/core_ext/object/deep_dup'
require 'active_model_serializers'
require 'roar/decorator'
require 'roar/json'
require 'rabl'
require 'jbuilder'
require 'fast_jsonapi'
require 'benchmark'
require 'ffaker'
@juanroldan1989
juanroldan1989 / gist:65dfba4a7b0559979af558ffe7759c4a
Created October 31, 2019 20:12 — forked from giannisp/gist:ebaca117ac9e44231421f04e7796d5ca
Upgrade PostgreSQL 9.6.5 to 10.0 using Homebrew (macOS)
After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work.
The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0."
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 10.0 installed, and keep 10.0 as default
brew unlink postgresql
brew install postgresql@9.6
brew unlink postgresql@9.6
brew link postgresql