Skip to content

Instantly share code, notes, and snippets.

View metbril's full-sized avatar

metbril metbril

View GitHub Profile
@metbril
metbril / todotxt.json
Last active August 29, 2015 13:56
A template for [ofexport](https://github.com/psidnell/ofexport) to export to todo.txt
{
"#01": "todotxt",
"#02": "A template that exports to todo.txt syntax",
"attributes": {
"context": {
"default": "",
"eval": "value.name if value.name != 'No Context' else None",
"format": " @$value",
"type": "string"
},
(*
Jered Benoit
jeredb.com
Omnifocus -> Day One Daily Completed Task Log
Based upon [Version 1.0] [1] of [OmniFocus - Weekly Project Report Generator] [2]
Originally Authored by Chris Brogan and Rob Trew
February 5, 2012
@metbril
metbril / Log to Evernote.scpt
Created March 24, 2014 06:00
Log completed OmniFocus items to Evernote.
(*
Jered Benoit
jeredb.com
Omnifocus -> Day One Daily Completed Task Log
Based upon [Version 1.0] [1] of [OmniFocus - Weekly Project Report Generator] [2]
Originally Authored by Chris Brogan and Rob Trew
February 5, 2012
@metbril
metbril / Import Journal to Evernote.scpt
Last active January 28, 2016 19:04
Convert plain text journal to evernote. If you have one plain text file containing your journal and would like to migrate that to individual entries in Evernote. This type of journal is typically used with the jrnl app found at https://maebert.github.io/jrnl/
(*
Title: Import Journal to Evernote
Description: Convert plain text journal to evernote. If you have one plain text file containing your journal and would like to migrate that to individual entries in Evernote. This type of journal is typically used with the jrnl app found at https://maebert.github.io/jrnl/
Author: Robert van Bregt (http://www.robertvanbregt.nl)
This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
@metbril
metbril / Export selected Evernote items to jrnl.scpt
Last active August 29, 2015 14:05
Export selected Evernote items to jrnl using the CLI
(*
Name: Export selected Evernote items to jrnl
Last update: 2014-08-14
Author: Robert van Bregt, www.robertvanbregt.nl
This type of journal is typically used with the jrnl app found at https://maebert.github.io/jrnl/
// TERMS OF USE:
@metbril
metbril / DraftsPrefixTaskpaperTasks.js
Last active May 27, 2018 05:05
Drafts 3 Action Step Script to prefix taskpaper tasks with hyphens (https://agiletortoise.zendesk.com/hc/en-us/articles/202771590-Action-Step-Script)
// Based on Macdrifter script
// http://www.macdrifter.com/2015/01/the-drafts-inbox-for-plain-text-tasks.html
// Function to remove multiple line breaks
function removeBlanks(txt){
txt = txt.replace(/(\r\n|\r|\n)+/g, '$1')
return txt;
}
// Function to Prefix each line of a text block
function textPrefix(textStr, preFix){
(*
Parse Start and Due Dates script
By Ryan Oldford
Based on work by andyferra (https://gist.github.com/andyferra/64842)
change_case taken from http://www.macosxautomation.com/applescript/sbrt/sbrt-06.html
This script is used with TaskPaper to provide better start and due date support, as well as support for repeating tasks.
The script searches for @due and @start tags, converts their values to standard date code values,
then adds the appropriate "diff" tag whose value indicates how far away the due or start date is (negative = past, 0 = today).
Any tasks with a @repeat tag that are done are edited to remove the done tag and have their due tags updated.
@metbril
metbril / hidedotfiles.sh
Last active August 29, 2015 14:22
Show all files in Mac OS X Finder (e.g. inclucing dotfiles)
defaults write com.apple.finder AppleShowAllFiles FALSE ; killall Finder
@metbril
metbril / my-atom-setup.sh
Last active August 29, 2015 14:22
My atom.io setup
# install atom packages
apm install project-manager
apm install git-plus
apm install permute
apm install language-todotxt
@metbril
metbril / mr-reader-wallabag.js
Created June 5, 2015 05:57
Bookmarklet to add a page to your self-hosted wallabag (http://wallabag.org) from Mr. Reader (http://www.curioustimes.de/mrreader/)
javascript:window.open('http://www.example.com/wallabag/?action=add&url='%20+%20btoa(location.href),'_self');