This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# PoC: Interactive on-add hook | |
import json | |
import sys | |
t = json.loads(sys.stdin.readline()) | |
real_stdin = open("/dev/tty", "r") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################## | |
# | |
# Copyright (c) 2003 Zope Corporation and Contributors. All Rights Reserved. | |
# | |
# This software is subject to the provisions of the Zope Public License, | |
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. | |
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED | |
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS | |
# FOR A PARTICULAR PURPOSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; experimental hledger journal entry templates for some common transactions | |
; These are sketches, don't expect them to be sensible. | |
; A few different events are noted: | |
; accrued = when the revenue was earned | |
; invoiced = when the invoice was sent | |
; received = when the check was received | |
; deposited = when the check was deposited | |
; reported = the revenue's date for taxing ("taxable moment") | |
; us tax = estimated federal tax, 25% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
here it is with everything open | |
_______________________________________________________ | |
|ID_Age_D_P_Project_Description______|__R__|__P__|__T__| | |
| | | | | | |
| | | | | | |
| | | | | | |
| L | | | | | |
| | | | | | |
| | | | | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# PoC: Manage a git repository in ~/.task that gets updated on changes. | |
# Only pending.data and completed.data are included by default. | |
# You can use "git add" to add whatever files you want to track in your | |
# task folder. | |
# | |
# Inspired by https://gist.github.com/Unode/9366218 | |
# | |
# Works with any Taskwarrior version that supports hooks. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sleekxmpp | |
import subprocess | |
import time | |
class TWBot(sleekxmpp.ClientXMPP): | |
def __init__(self, jid, password, whitelist): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# Save as on-add_annotate.py in hooks directory, then: | |
# $ chmod +x ~/.task/hooks/on-add_annotate.py | |
# | |
# Anything after "annotate:" in a new task's description is added as an | |
# annotation: | |
# $ task add this is the description annotate:this is an annotation | |
import json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# PoC: Manage a git repository in ~/.task that gets updated on changes. | |
# Only pending.data and completed.data are included by default. | |
# You can use "git add" to add whatever files you want to track in your | |
# task folder. | |
# | |
# Inspired by https://gist.github.com/Unode/9366218 | |
# | |
# Works with any Taskwarrior version that supports hooks. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Notifies the user of the curently active TimeWarrior task every m minutes (default 10min). | |
# Requirements | |
# - python 2.7 | |
# - pynotify | |
# Usage: | |
# python timewn.py [optional seconds] | |
import sys | |
import pynotify |
OlderNewer