Skip to content

Instantly share code, notes, and snippets.

View korymath's full-sized avatar

Kory korymath

View GitHub Profile
@korymath
korymath / readmecats.md
Created May 13, 2019 16:19 — forked from dannguyen/catdrawer-youtube-to-gif-README.md
Using youtube-dl and gifify from the command-line
@korymath
korymath / gist:1c1c4a8a7aabce4b1882cbfc7906b079
Created June 1, 2018 19:51 — forked from guisehn/gist:6648c8fdcd1102a22a22
Backup Heroku Postgres database and restore to local database

Grab new backup

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

Download

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

Restore backup dump into local db

@korymath
korymath / safari-night.sh
Created April 30, 2018 15:40 — forked from duncdrum/safari-night.sh
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
@korymath
korymath / parallel.py
Last active August 29, 2015 14:25 — forked from alertor/parallel.py
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)