Skip to content

Instantly share code, notes, and snippets.

View metbril's full-sized avatar

metbril metbril

View GitHub Profile
classic name (alias) | ESH cat | classic icon | material name | material icon
-|-|-|-|-
alarm | ? | <img alt="alarm" src="https://rawgit.com/eclipse/smarthome/master/extensions/ui/iconset/org.eclipse.smarthome.ui.iconset.classic/icons/alarm.svg" width="64"> | alarm-light | <img src="https://rawgit.com/templarian/materialdesign/master/icons/svg/alarm-light.svg" width="64">
attic | ? | <img alt="attic" src="https://rawgit.com/eclipse/smarthome/master/extensions/ui/iconset/org.eclipse.smarthome.ui.iconset.classic/icons/attic.svg" width="64"> | stairs | <img src="https://rawgit.com/templarian/materialdesign/master/icons/svg/stairs.svg" width="64">
baby_1 | ? | <img alt="baby_1" src="https://rawgit.com/eclipse/smarthome/master/extensions/ui/iconset/org.eclipse.smarthome.ui.iconset.classic/icons/baby_1.svg" width="64"> | baby | <img src="https://rawgit.com/templarian/materialdesign/master/icons/svg/baby.svg" width="64">
baby_2 | ? | <img alt="baby_2" src="https://rawgit.com/eclipse/smarthome/master/extensions/ui/ic

Keybase proof

I hereby claim:

  • I am rtvbnl on github.
  • I am rtvb (https://keybase.io/rtvb) on keybase.
  • I have a public key whose fingerprint is 8BA1 4E2F 74D0 6481 80EF E4FD E6FE DDD7 E76F B7E9

To claim this, I am signing this object:

@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');
@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 / 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
(*
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 / 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){
@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 / 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 / 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