Skip to content

Instantly share code, notes, and snippets.

View jclif's full-sized avatar
🏎️
Wheelin' and dealin'

Jared Clifton-Lee jclif

🏎️
Wheelin' and dealin'
View GitHub Profile
@jclif
jclif / restore
Created December 22, 2018 05:07 — forked from mru2/restore
pg_restore a local db dump into Docker
# Create and download backup
heroku pg:backups:capture
heroku pg:backups:download
# Assumes the database container is named 'db'
DOCKER_DB_NAME="$(docker-compose ps -q db)"
DB_HOSTNAME=db
DB_USER=postgres
LOCAL_DUMP_PATH="path/to/local.dump"
@jclif
jclif / 0_reuse_code.js
Created December 28, 2016 02:22
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
@jclif
jclif / codeclimate-test-reporter.rb
Created October 15, 2016 05:18 — forked from davetapley/codeclimate-test-reporter.rb
CodeClimate::TestReporter patched to handle the absence of a .git
require 'simplecov'
require 'codeclimate-test-reporter'
module Extensions
module Git
module ClassMethods
def info
{
head: head,
committed_at: committed_at_or_now,