Skip to content

Instantly share code, notes, and snippets.

proteusvacuum / Kafka
Last active July 7, 2016 19:51
Delete Kafka topics
sudo rm -r ~/.local/share/dockerhq/zookeeper ~/.local/share/dockerhq/kafka
./scripts/docker restart
./ create_kafka_topics
proteusvacuum / open_CI_links_new_tab.user.js
Last active November 27, 2015 13:22
Open CI links on github in a new window
#!/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:
proteusvacuum /
Created October 28, 2015 17:09
Python mocks brownbag
# 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()
proteusvacuum / gist:235ddf5b4da0ed8911aa
Last active August 29, 2015 14:22
Staging woes jun 4 2015

Ran into a bunch of db issues when deploying staging... fun!

Name conflict between 2 migrations in accounting: Since these were applied out of name order, South complained.

I resolved this by running ./ migrate --merge accounting

Keybase proof

I hereby claim:

  • I am proteusvacuum on github.
  • I am 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: