Skip to content

Instantly share code, notes, and snippets.

View akaihola's full-sized avatar
🌇
Working from home

Antti Kaihola akaihola

🌇
Working from home
  • Wärtsilä Oyj
  • Espoo, Finland
View GitHub Profile
@akaihola
akaihola / imapdedup.py
Created September 13, 2010 12:43
This is a script I used to clean up the havoc Thunderbird caused by copying thousands of messages from INBOX as five copies to a folder
"""Helpers for removing duplicate messages in an IMAP mailbox
Dependency: IMAPClient (easy_install IMAPClient)
Author: Antti Kaihola <akaihol+python@ambitone.com>
License: New BSD license
"""
@akaihola
akaihola / README
Created December 12, 2010 11:27
Trac plugin for embedding RT tickets into the timeline
This Trac plugin integrates tickets from an external RT
(RequestTracker) into the timeline.
This plugin requires the RT LogSearch extension from
https://gist.github.com/737979 installed on the RT side.
@akaihola
akaihola / README
Created December 12, 2010 11:11
Extend the RT (RequestTracker) REST API with a search. Use date range and queue name as search filters.
This extension adds a date and queue based search to the REST API.
Copyright 2010 Antti Kaihola
This software is distributed under the New BSD license.
Source repository for the extension:
https://gist.github.com/737979
@akaihola
akaihola / .gitignore
Created November 7, 2011 13:31
initproject
# virtualenv
/bin
/include
/lib
/share
# python
*.pyc
@akaihola
akaihola / .gitignore
Created November 22, 2011 08:36
py-dom-xpath-lxml-compat
*.pyc
/bin
/include
/lib
/quasilxml.egg-info
@akaihola
akaihola / .gitignore
Created November 29, 2011 21:31
better-github-rss
/bin
/include
/lib
@akaihola
akaihola / NOTES.rst
Created December 4, 2011 09:35
Finnish dictionary on Xubuntu
@akaihola
akaihola / warmup.py
Created April 5, 2012 08:31
Warms up a web server by sending requests until the maximum or average response duration falls below a given threshold
#!/usr/bin/env python3
# also compatible with Python 2.7
# and Python 2.6 (requires argparse)
"""
Warms up a web server by sending requests until the maximum or average response
duration falls below a given threshold.
"""
@akaihola
akaihola / README.rst
Last active October 3, 2015 06:08
gits - run Git while using a predefined private SSH key

gits - Git shared

Note

The instructions below haven't been checked. Please check them and make any necessary corrections. Thanks.

@akaihola
akaihola / cache_switch.py
Created August 10, 2012 07:44
Cache backend switching for Django tests
from django.core.cache.backends.base import BaseCache
from functools import wraps
import sys
class OldStyleClass:
pass
ClassType = type(OldStyleClass)