Skip to content

Instantly share code, notes, and snippets.

@jmarchello
jmarchello / select_jsonb.sql
Created February 19, 2020 05:12
Postgresql JSON/JSONB
-- JSON
SELECT '{"Fruits": ["apple", "banana", "orange"]}'::JSON;
-- JSONB
SELECT '{"Fruits": ["pineapple", "mango", "papaya"]}'::JSONB;
@jmarchello
jmarchello / ssl_puma.sh
Last active August 2, 2016 16:07 — forked from tadast/ssl_puma.sh
localhost SSL with puma
# 1) Create your private key (any password will do, we remove it below)
$ cd ~/.ssh
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed.
*
* If you are unfamiliar with LESS, you can read more about it here:
* http://www.lesscss.org
*/