Skip to content

Instantly share code, notes, and snippets.

--Script for setting Reminders for LaunchBar and Alfred
--For Alfred, Applescript must NOT be set to run in Background otherwise date parsing does not work
--For LaunchBar, place the script in ~/Library/Scripts/LaunchBar
--by Michelle L. Gill, 10/07/2012
--inspired by https://gist.github.com/3187630
--Notes on valid reminders
--Order of the text must be "title #note $list @date time" but note and list are optional. Date and time are also optional but both must be included if one is included
--Times can be in 12- or 24-hour format, and 24-hour format is assumed if am/pm are absent
--Times can include minutes and seconds (colon separated like hours:minutes:seconds) but minutes and seconds aren't required

Usage

Copy these files to your ~/Library/Application Support/Notational Velocity/ folder.

Usage

Copy these files to your ~/Library/Application Support/Notational Velocity/ folder

@tzarskyz
tzarskyz / hack.sh
Created March 9, 2013 05:39 — forked from erikh/hack.sh
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
#!/bin/sh
# .git/hooks/pre-commit
#
# NEEDS registered version of Balsamiq Mockups (mandatory for PNG export)
#
# Exports *.bmml files to PNGs, but only for new or modified ones (files in stage area).
# This should be installed as .git/hooks/pre-commit in your local repository (with +x flag).
# As git hook it ensures that your new/modified (and staged) files will be exported before commit
# your changes to the repository automatically.

Todo.rb

Todo.rb is a simple command-line tool for managing todos. It's minimal, straightforward, and you can use it with your favorite text editor.

Getting Started

Todo.rb doesn't require any third-party gems so you can copy the file anywhere and use it as long as it's executable:

@tzarskyz
tzarskyz / hack.sh
Created March 26, 2013 10:31 — forked from mrbanzai/hack.sh
#!/bin/sh
##
# This is a script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# Run in interactive mode with:
# $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)"
#
# or run it without prompt questions:
-- This script automatically `cd`s to the directory of the current document.
-- You can use $f to represent the file for the current document.
-- This is nowhere near perfect, just a quick and dirty script.
-- NOTE: you need to have "Enable access for assistive devices" checked...
-- in the Accessibility preference pane.
-- Example: select a file in Finder, and type: echo The filename is $f
on getCurrentDocument()
-- This script automatically `cd`s to the directory of the current document.
-- You can use $f to represent the file for the current document.
-- This is nowhere near perfect, just a quick and dirty script.
-- NOTE: you need to have "Enable access for assistive devices" checked...
-- in the Accessibility preference pane.
-- Example: select a file in Finder, and type: echo The filename is $f
on getCurrentDocument()