I hereby claim:
- I am proteusvacuum on github.
- I am provac (https://keybase.io/provac) on keybase.
- I have a public key whose fingerprint is AF3D FDA8 B0EF 3B8F BE71 E1A9 6964 E318 5B7D A47E
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Ran into a bunch of db issues when deploying staging... fun!
Name conflict between 2 migrations in accounting:
0041_update_privileges_locations.py
0041_remove_like_indexes.py
Since these were applied out of name order, South complained.
I resolved this by running ./manage.py migrate --merge accounting
| # coding: utf-8 | |
| from mock import MagicMock, call, patch | |
| # “mock is a library for testing in Python. It allows you to replace parts of | |
| # your system under test with mock objects and make assertions about how they | |
| # have been used.” | |
| thing = MagicMock(name='thing', return_value=100) | |
| print thing() |
| #!/usr/bin/env python | |
| import csv | |
| def main(): | |
| translations = {} | |
| with open('messages_en-2.txt', 'rb') as translation_file: | |
| translation_reader = csv.reader(translation_file, delimiter="=") | |
| for row in translation_reader: | |
| if len(row) > 1: |
| // ==UserScript== | |
| // @name CI New Window | |
| // @namespace https://github.com | |
| // @description Open CI links in a new window | |
| // @include https://github.com/* | |
| // @version 1 | |
| // @grant none | |
| // ==/UserScript== | |
| document.getElementsByClassName('build-status-details')[0].setAttribute('target', '_blank') |
| sudo rm -r ~/.local/share/dockerhq/zookeeper ~/.local/share/dockerhq/kafka | |
| ./scripts/docker restart | |
| ./manage.py create_kafka_topics |