Skip to content

Instantly share code, notes, and snippets.

@duanearnett
duanearnett / pull_remote_db_to_local_export.sh
Last active October 11, 2016 17:34
Read Heroku config and pull a DB export
#! /bin/bash
# ------------------------------------------------------------------------------
# Assumes you are trying to retrieve a database dump from heroku which stores
# the promoted DB connection string in the environment variable `DATABASE_URL`
# We don't want to just use the password plainly in the `pg_dump` command so...
# If you are interested in restoring a local database then see:
# `migrate_prod_to_local.sh` and if you are interested in loading prod to
# staging then see `migrate_prdo_to_staging.sh`.
# ------------------------------------------------------------------------------
node_modules
dist
test/temp
.sass-cache
app/vendor
.tmp
test/scripts/
{
"coffeelint": {
"transforms": [ "coffee-react-transform" ]
},
"arrow_spacing": {
"level": "ignore"
},
"braces_spacing": {
"level": "ignore",
"spaces": 0,
{
"coffeelint": {
"transforms": [ "coffee-react-transform" ]
},
"arrow_spacing": {
"level": "ignore"
},
"braces_spacing": {
"level": "ignore",
"spaces": 0,
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
options:
formatter: stylish
files:
include: '**/*.s+(a|c)ss'
rules:
# Extends
extends-before-mixins: 1
extends-before-declarations: 1
placeholder-in-extend: 1