Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am stubevan on github.
* I am meesmees (https://keybase.io/meesmees) on keybase.
* I have a public key ASAu87GQNnllmdncslL8IgO2oBWPZW50H2tnCpLj-op-Ygo
To claim this, I am signing this object:
@stubevan
stubevan / gist:503f9e40300437b174568d4774cd55b0
Created April 4, 2019 11:28
Loading a file into omnifocus
#!/bin/bash
for file in test1.txt test2.jpg
do
url="omnifocus:///add?name=${file}&attachment-name=${file}&attachment="
base64str=$(base64 -w 0 $file)
urlencstr=$(php -r "echo rawurlencode('${base64str}');")
url="${url}${base64str}"
open $url
@stubevan
stubevan / EditorialWF-Hyperlink
Created November 5, 2013 07:04
Editorial workflow to simplify the use of hyperlinks in markdown. Uses a combination of the selected region and clipboard to generate the appropriate code. It then puts the cursor in the correct place