Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

Kory korymath

I may be slow to respond.
View GitHub Profile
korymath /
Created May 13, 2019 — forked from dannguyen/
Using youtube-dl and gifify from the command-line
korymath / gist:1c1c4a8a7aabce4b1882cbfc7906b079
Created Jun 1, 2018 — forked from guisehn/gist:6648c8fdcd1102a22a22
Backup Heroku Postgres database and restore to local database
View gist:1c1c4a8a7aabce4b1882cbfc7906b079

Grab new backup

Command: heroku pg:backups capture -a [app_name]


Command: curl -o latest.dump `heroku pg:backups public-url -a [app_name]`

Restore backup dump into local db

korymath /
Created Apr 30, 2018 — forked from duncdrum/
dark theme for Texshop
# Safari Reader Night Theme
# by @LogicaEns
# background = 39 40 34 (#272822)
defaults write TeXShop background_R 0.05
defaults write TeXShop background_G 0.06
defaults write TeXShop background_B 0.03
# commands = 102 217 239 (#66D9EF)
defaults write TeXShop commandred 0.3
from joblib import Parallel, delayed
import multiprocessing
inputs = range(100000)
def processInput(i):
return i * i
num_cores = multiprocessing.cpu_count()
print str(num_cores)
You can’t perform that action at this time.