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
korymath / readmecats.md
Created May 13, 2019 — forked from dannguyen/catdrawer-youtube-to-gif-README.md
Using youtube-dl and gifify from the command-line
View readmecats.md
@korymath
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]

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 Apr 30, 2018 — forked from duncdrum/safari-night.sh
dark theme for Texshop
View safari-night.sh
# 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
View 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)
You can’t perform that action at this time.