Skip to content

Instantly share code, notes, and snippets.

@coffenbacher
coffenbacher / gist:90e482d3c0fcdb7a62e90718a0f3a6e3
Created March 22, 2018 15:54 — forked from pachun/gist:171314491201e34589980b67ad081caa
Copy a Heroku Postgresql DB into a local DB
$ heroku pg:backups:capture
$ heroku pg:backups:download
Then:
$ pg_restore -c -d torq_api_development latest.dump
@coffenbacher
coffenbacher / Duolingo World List
Last active August 8, 2019 14:54
Love Duolingo but it's missing a list of the words you've learned. Log in and paste this in the developer console in Chrome to get it.
$('body').html('<table id="words"><thead><tr><th>Language</th><th>Category</th><th>Word</th><th>Strength</th></thead><table>');
var ld = duo.user.attributes.language_data;
for (l in ld) {
ld[l].skills.models.forEach(function(model) {
var a = model.attributes;
if (a.progress_percent > 0) {
$.get('/skills/' + a.language + '/' + a.url_title, function(skill) {
skill.path.forEach(function(path) {
if (path.words && path.strength > 0) {
path.words.forEach(function(word) {
@coffenbacher
coffenbacher / keybase.md
Created May 23, 2014 18:06
keybase.io verification

Keybase proof

I hereby claim:

  • I am coffenbacher on github.
  • I am coffenbacher (https://keybase.io/coffenbacher) on keybase.
  • I have a public key whose fingerprint is 8921 75C8 BC12 A5A2 9CA7 22C6 43A2 9130 1150 A9E5

To claim this, I am signing this object: