Skip to content

Instantly share code, notes, and snippets.

View mythmon's full-sized avatar

Michael Cooper mythmon

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mythmon
mythmon / edwin.md
Created March 31, 2015 19:53
Sprints Suck

Sprints suck - Edwin.

This is a proposal for a new bug management system for SumInpUp. The new system is code named Edwin.

Sprints are modelling a process that doesn't really work. Every two weeks we get together and decide what we are going to do in the next two weeks. And sometimes we plan rough sprints more than two weeks in advance, even as far as planning out sprints for the entire next quarter. Sprints are supposed to give us a sense of time for when

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am mythmon on github.
  • I am mythmon (https://keybase.io/mythmon) on keybase.
  • I have a public key whose fingerprint is DAFE 0A2F 0B02 90B5 7AC3 5186 CD8D 37A4 6031 DC1C

To claim this, I am signing this object:

#!/usr/bin/env python3
import pytest
from itertools import islice, count, takewhile, tee
from math import sqrt
def divisable(a, b):
return a % b == 0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Looks through installed and current requirements, and report any discrepencies.
Run this script like `./manage.py runscript checkreqs
"""
import os

Changes that involve reindexing

With Elastic Search, it takes a while to reindex. We need to be able to reindex without taking down search.

This walks through the workflow for making changes to our Elastic Search code that require reindexing.

This parses logs from my weechat. They probably aren't the same as logs from your weechat. I run it like

$ cat ~/.weechat/logs/irc.freenode.\#osu-lug/2015-01-*.weechatlog | ./logs.py 
var stream = Tw.stream('statuses/filter', {
locations: portland,
language: 'en'
});
var fn = rateLimit(1, 5000, function(msg, username) {
console.log("emitting!");
io.emit('stream', msg, username);
});
io.on('connection', function(socket) {
console.log('new connection');