Skip to content

Instantly share code, notes, and snippets.

Avatar

David J Patrick linuxcaffe

View GitHub Profile
@linuxcaffe
linuxcaffe / on-launch_stopstarted.sh
Created Jun 1, 2019 — forked from wbsch/on-launch_stopstarted.sh
Taskwarrior hook that stops all active tasks when "task FILTER start" is run. PoC for https://bug.tasktools.org/browse/TW-1712
View on-launch_stopstarted.sh
#!/usr/bin/env bash
# Stops all previously active tasks on "task FILTER start"
#
# Only pending tasks are checked/stopped. If you really want to stop
# started tasks that are completed/deleted, remove the status:pending
# filter. Note that this will decrease performance, and should not
# be necessary.
tw_command=""
for i in "$@"; do
View on-add_annotate.py
#!/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
View gist:7fea2260ccfbbd0858f951bc4796b472
djp@beast ~/tmp $ sudo git clone https://git.tasktools.org/TM/task.git
[sudo] password for djp:
Cloning into 'task'...
remote: Counting objects: 58794, done.
remote: Compressing objects: 100% (11020/11020), done.
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
View gist:066fd9075f30abe30da11d8b2b48274a
djp@beast ~/tmp $ git clone https://git.tasktools.org/TM/task.git
Cloning into 'task'...
remote: Counting objects: 58774, done.
remote: Compressing objects: 100% (11000/11000), done.
error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
View task 2.6.0 make errors
djp@ace:~/tmp/task$ make
[ 23%] Built target columns
[ 38%] Built target libshared
[ 54%] Built target task
[ 54%] Building CXX object src/commands/CMakeFiles/commands.dir/CmdHistory.cpp.o
/home/djp/tmp/task/src/commands/CmdHistory.cpp: In member function ‘void CmdHistoryBase<HistoryStrategy>::outputGraphical(std::__cxx11::string&)’:
/home/djp/tmp/task/src/commands/CmdHistory.cpp:72:52: error: no matching function for call to ‘Table::add(const char [31], bool, bool)’
view.add (STRING_CMD_GHISTORY_NUMBER, true, false); // Fixed.
^
In file included from /home/djp/tmp/task/src/commands/CmdHistory.h:32:0,
View tasklib version for taskwiki
djp@ace:~/.vim/bundle/vim-devicons$ pip show tasklib
Name: tasklib
Version: 1.1.0
Summary: Python Task Warrior library
Home-page: https://github.com/robgolding63/tasklib
Author: Rob Golding
Author-email: rob@robgolding.com
License: BSD
Location: /home/djp/.local/lib/python3.5/site-packages
Requires: six, pytz, tzlocal
View PCF_17-02-02.csv.norules
; PCF csv rules file
; Date, Transaction Details, Funds Out, Funds In
; 01/04/2016,POS MERCHANDISE FOODLAND #6737,11.97,
; 01/11/2016,POS MERCHANDISE FOODLAND #6737,42.01,
; 01/11/2016, ABM DEPOSIT,,141.98
; 01/11/2016,POS MERCHANDISE HOME COMPUTER,11.30,
skip 1
date-format %m/%d/%Y
View index.wiki

taskwiki -- projects -- areas


Index Name :: index.wiki Description :: top taskwiki index page Created :: Aug31, 2015 Manager :: djp Files :: ~/.task/wiki/

Taskwiki Index

area/

View gist:0b04dc3523d81e1c0c2e6a69885f4ff5
djp@ace ~/tmp/task $ cmake .
-- Configuring C++11
-- System: Linux
-- Looking for SHA1 references
-- Found SHA1 reference: c300cff
-- Looking for GnuTLS
-- Looking for libuuid
-- Found libuuid
-- Configuring cmake.h
-- Configuring man pages
View gist:a9d4ed773bbc59e5a935628e2d5ee626
djp@ace ~ $ actor-daemon
Traceback (most recent call last):
File "/usr/local/bin/actor-daemon", line 3, in <module>
from actor.core.actord import main
File "/usr/local/lib/python2.7/dist-packages/actor/core/actord.py", line 8, in <module>
from main import Actor, ActorDBusProxy
File "/usr/local/lib/python2.7/dist-packages/actor/core/main.py", line 15, in <module>
from activities import Activity, Flow
File "/usr/local/lib/python2.7/dist-packages/actor/core/activities.py", line 7, in <module>
from plugins import Plugin, PluginMount, ContextProxyMixin, PersistentStateMixin
You can’t perform that action at this time.