Skip to content

Instantly share code, notes, and snippets.

@kiowa
kiowa / fakesouth.py
Created April 12, 2011 15:46
A fake south database support file.
"""
Nice fake South database driver in case you are mixing supported/unsupported databases.
Usage: Update your settings.py
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'mydb',
'USER': 'mydb',
@kiowa
kiowa / tlsimap.py
Created October 15, 2010 14:10
Python IMAP with TLS/SSL support
""" Python IMAP with TLS/SSL support """
##
## Author: Alexander Brill <alex@brill.no>
## Copyright (C) 2004 Alexander Brill
##
## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License
## as published by the Free Software Foundation; either version 2
## of the License, or (at your option) any later version.
##
@kiowa
kiowa / bamboo.py
Created October 15, 2010 14:07
Kibot script for checking Bamboo for failed builds.
"""
Kibot script for checking Bamboo for failed builds.
"""
import kibot.BaseModule
import feedparser
import re
from kibot.m_irclib import Timer
failure = re.compile("(.*) has FAILED : Updated by \<a href.*\>(.*)\</a\>")