Skip to content

Instantly share code, notes, and snippets.

Avatar
📻
CTO @ decibelads.com

Greg Sadetsky gregsadetsky

📻
CTO @ decibelads.com
View GitHub Profile
View matrix-trailer-red-1440-minute-urls.txt
As noted by @murdats below, there are more URLs than just these 1440 ones, depending on the argument values
that are hashed (as the filenames below are MD5 hashes of a few arguments: red/blue pill color, HHMM time, etc.)
You can read details about the algorithm used to generate these URLs here:
https://news.ycombinator.com/item?id=28448335
---
00:00 https://thechoiceisyours.whatisthematrix.com/generated/v7/high/d43725991d28ffcab04aa716762cf6af.mp4
View annoy_segfault_values.txt
834630;1. 0. 0. 0. 0. 0. 0. 1. 0. 0.
834631;0. 0. 0. 0. 0. 0. 0. 1. 0. 0.
844954;0. 0. 0. 0. 0. 0. 1. 0. 0. 0.
863987;3. 0. 0. 0. 0. 0. 3. 0. 0. 0.
897324;1. 0. 0. 0. 0. 0. 0. 0. 0. 0.
913856;1. 0. 1. 0. 0. 1. 0. 0. 0. 0.
918094;1. 0. 0. 0. 0. 0. 1. 0. 0. 0.
927050;1. 0. 0. 0. 0. 0. 0. 1. 0. 0.
927051;0. 0. 0. 0. 0. 0. 1. 0. 0. 0.
928011;1. 0. 0. 0. 0. 0. 1. 0. 0. 0.
@gregsadetsky
gregsadetsky / settings.py
Last active May 28, 2021
See: http://stackoverflow.com/questions/13705328/ -- I was looking for a way to run Selenium tests for a Django app on a staging server hosted on Heroku using a PostgreSQL database. The DjangoTestSuiteRunner creates and destroys the whole database before/after testing, which would not work on Heroku where databases are added via other means (her…
View settings.py
import dj_database_url
TEST_DATABASES = {
'default': dj_database_url.config(env='TEST_DATABASE_URL')
}
# replace path below to point to HerokuTestSuiteRunner class
TEST_RUNNER = 'python.path.to.test_suite_runner.HerokuTestSuiteRunner'