Skip to content

Instantly share code, notes, and snippets.

View mathie's full-sized avatar

Graeme Mathieson mathie

View GitHub Profile
-- This property controls whether full project paths (including parent folders) are displayed
property includeFullProjectPaths : true
-- These properties control whether additional task content is displayed
property includeTaskContext : true
property includeTaskEstimatedTime : true
property includeTaskStartDate : true
property includeTaskModificationDate : false
property includeTaskCompletionDate : true
property includeTaskNotes : true
--==============================
-- OmniFocus > Prepare Task Completion Report
-- Version 2.0.0
-- Written By: Ben Waldie <ben@automatedworkflows.com>
-- http://www.automatedworkflows.com
-- Description: This script retrieves a list of OmniFocus tasks completed today, yesterday, this week, last week, or this month. It then summarizes the tasks in a new Evernote note.
-- Version History:
-- 1.0.0 - Initial release
-- 2.0.0 - Added support for including full project paths, context names, estimate time, start dates, modification dates, completion dates, and notes in task reports.
# rubygems DNS is temporarily down, if you're using ghost to manage local DNS
# munging, run the following:
ghost add rubygems.org 72.4.120.124
ghost add production.s3.rubygems.org 207.171.181.231
ghost add production.cf.rubygems.org 216.137.45.24
# Don't forget to clear them out afterwards with:
# ghost delete_matching rubygems.org
task :prevent_brainfart_apocalypse do
raise "You're running in production" if Rails.env.production?
end
protect_me_from_myself_tasks = %W(db:setup)
protect_me_from_myself_tasks.each do |task_name|
Rake::Task[task_name].prerequisites.insert 0, 'prevent_brainfart_apocalypse'
end
@mathie
mathie / gist:1111
Created July 22, 2008 16:00 — forked from st23am/gist:1098
def test
str = "this is a test of new pastie"
# print out the test msg
puts str
end