Skip to content

Instantly share code, notes, and snippets.

@marchbnr
marchbnr / gist:6bc4e847da16c53133df16155280699a
Created February 14, 2018 08:02
Automatically sync taskwarrior
#!/bin/bash
# This hooks script syncs task warrior to the configured task server.
# The on-exit event is triggered once, after all processing is complete.
# Make sure hooks are enabled
LOCK_FILE=~/.task/autosync.lock
if [ ! -f $LOCK_FILE ]; then
touch $LOCK_FILE

Keybase proof

I hereby claim:

  • I am marchbnr on github.
  • I am marchbnr (https://keybase.io/marchbnr) on keybase.
  • I have a public key ASASvkomR1wTlzXQ4pP6uhJzJ-fV6OFflasMdqmzkRAGago

To claim this, I am signing this object:

@marchbnr
marchbnr / gist:aa3df61a9bb3264731cf
Last active August 29, 2015 14:17
Temporary phantomjs patch to reenable file upload
diff --git a/src/qt/qtwebkit/Source/WebCore/html/FileInputType.cpp b/src/qt/qtwebkit/Source/WebCore/html/FileInputType.cpp
index 7362f63..1a7b148 100644
--- a/src/qt/qtwebkit/Source/WebCore/html/FileInputType.cpp
+++ b/src/qt/qtwebkit/Source/WebCore/html/FileInputType.cpp
@@ -187,8 +187,9 @@ void FileInputType::handleDOMActivateEvent(Event* event)
if (element()->isDisabledFormControl())
return;
- if (!ScriptController::processingUserGesture())
- return;