Skip to content

Instantly share code, notes, and snippets.

@wbsch
wbsch / datefilter.py
Created May 5, 2013 19:21
Filter Taskwarrior tasks completed before a certain time. Reads from STDIN, outputs to STDOUT. Backups recommended ;)
#!/usr/bin/env python
import re
import sys
import time
if len(sys.argv) < 2:
print "Example usage:"
print sys.argv[0], "2013-05-05 < ~/.task/completed.data > ~/.task/completed.data.tmp && mv ~/.task/completed.data.tmp ~/.task/completed.data"
sys.exit(1)
@wbsch
wbsch / taskwarrior_xmpp_bot.py
Created November 19, 2012 08:25
taskwarrior <---> XMPP bridge in python. Proof of concept, no error checking :)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sleekxmpp
import subprocess
import time
class TWBot(sleekxmpp.ClientXMPP):
def __init__(self, jid, password, whitelist):