Skip to content

Instantly share code, notes, and snippets.

@arttaylor
arttaylor / Procrastinate all overdue tasks by a week.scpt
Created July 22, 2013 16:48
Solve a productivity problem by sweeping it under the rug.
tell application "OmniFocus"
tell front document
set incompleteTasks to flattened tasks whose completed is false and due date is less than (current date)
set newDate to (current date) + (1 * weeks)
repeat with incompleteTask in incompleteTasks
set incompleteTask's due date to newDate
end repeat
end tell
end tell
@arttaylor
arttaylor / gist:5114786
Created March 8, 2013 07:26
Homebrew gtk+ error with libffi
./gtk-update-icon-cache --force --ignore-theme-index \
--source builtin_icons stock-icons > gtkbuiltincache.h.tmp && \
mv gtkbuiltincache.h.tmp gtkbuiltincache.h
dyld: Library not loaded: /usr/local/opt/libffi/lib/libffi.6.dylib
Referenced from: /usr/local/lib/libgio-2.0.0.dylib
Reason: image not found
/bin/sh: line 1: 68236 Trace/BPT trap: 5 ./gtk-update-icon-cache --force --ignore-theme-index --source builtin_icons stock-icons > gtkbuiltincache.h.tmp
@arttaylor
arttaylor / gist:980399
Created May 19, 2011 08:29
Simple Mt. Gox trades websocket script
#!/usr/bin/env ruby
require 'rubygems'
require 'eventmachine'
require 'em-http-request'
require 'json'
class Channel
def Channel.unsubscribe_message(channel)
uuid = case channel
@arttaylor
arttaylor / gist:768367
Created January 6, 2011 19:06
Tweetie code signature contents
We couldn’t find that file to show.