Skip to content

Instantly share code, notes, and snippets.

View gauthierm's full-sized avatar

Michael Gauthier gauthierm

View GitHub Profile
...
if (hash === '') {
// if there is no URL fragment, open the choice modal
if (getMode() === 'desktop') {
$choice_modal.modal();
}
} else if (hash === '#choice') {
$choice_modal.modal();
} else if (hash === '#video') {
THE FOLLOWING PACKAGES DIDN'T MATCH THE HASHES SPECIFIED IN THE REQUIREMENTS
FILE. If you have updated the package versions, update the hashes. If not,
freak out, because someone has tampered with the packages.
Django: expected h2Yp5VZ4-JAYZnHEJghLog4f-fh6RbUWkjN5xUOXal4
got bZ08Ro-aCUcNAOhf5JK6Ne38cs7n-2WtAoEBDrpYuPE
dennis: expected Cmfp2wZbsEY3Xs9TS4l1JR3K86EHUgtFWZ6UmatYZlg
got 3JNYMr2yh150cSSTHX9BvFZxsMp2hzvrSZYIeeqvSBo
{
"episodes": [
{
"id": 123,
"publishDate": "2013-01-01T00:00:00",
"description": "episode description"
},
...
]
}
@gauthierm
gauthierm / bedrock-stunnel.ini
Last active December 25, 2015 19:19
How to run Mozilla Bedrock on HTTPS using the test server in manage.py.
; don't create a pid file when running
pid=
; run in foreground rather than forking daemon
foreground=yes
; save output to a file
output=/path/to/bedrock/bedrock-stunnel.log
[https]
@gauthierm
gauthierm / gist:6765393
Last active December 24, 2015 07:39
RabbitMQ startup log.
rabbitmq-server.service - RabbitMQ broker
Loaded: loaded (/usr/lib/systemd/system/rabbitmq-server.service; disabled)
Active: failed (Result: exit-code) since Mon 2013-09-30 12:21:00 ADT; 8s ago
Process: 6282 ExecStopPost=/usr/bin/rm /var/run/rabbitmq/pid (code=exited, status=0/SUCCESS)
Process: 6244 ExecStop=/usr/lib/rabbitmq/bin/rabbitmqctl stop (code=exited, status=2)
Process: 6174 ExecStartPost=/usr/lib/rabbitmq/bin/rabbitmqctl wait /var/run/rabbitmq/pid (code=exited, status=2)
Process: 6173 ExecStart=/usr/lib/rabbitmq/bin/rabbitmq-server (code=exited, status=1/FAILURE)
Sep 30 12:21:00 mir rabbitmq-server[6173]: ERROR: epmd error for host "mir": address (cannot connect to host/port)
Sep 30 12:21:00 mir systemd[1]: rabbitmq-server.service: main process exited, code=exited, status=1/FAILURE