Skip to content

Instantly share code, notes, and snippets.

View emp-daisy's full-sized avatar
👑
Focusing

Jessica M emp-daisy

👑
Focusing
View GitHub Profile
@emp-daisy
emp-daisy / api-throttling-429-error-handling.js
Created December 30, 2021 11:28 — forked from benogle/api-throttling-429-error-handling.js
An example script consuming an API with various throttling and 429 "too many requests" error handling strategies.
// An example script consuming an API with various throttling and 429 error
// handling strategies.
//
// Blog post with more context
// https://www.useanvil.com/blog/2021-03-29-throttling-and-consuming-apis-with-429-rate-limits
//
// License: MIT
import fetch from 'node-fetch'
import mapLimit from 'async/mapLimit'
@emp-daisy
emp-daisy / import-db.sh
Created May 30, 2021 06:16 — forked from hartleybrody/import-db.sh
Copy data from Heroku Postgres into local database
# copy/import data from heroku postgres to localhost pg database
# useful for copying admin's work on live site into local database to reproduce errors
# https://devcenter.heroku.com/articles/heroku-postgres-import-export
# take heroku pg snapshot and download
heroku pg:backups:capture
heroku pg:backups:download
# load the dump into local postgres database, assuming $DATABASE_URL set locally
@emp-daisy
emp-daisy / fix_openssl_catalina.sh
Created January 22, 2020 16:53 — forked from llbbl/fix_openssl_catalina.sh
fix missing openssl files in catalina
#!/bin/bash
echo 'update brew'
brew update
echo 'upgrade brew'
brew upgrade