This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test | |
str = "this is a test of new pastie" | |
# print out the test msg | |
puts str | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--============================== | |
-- OmniFocus > Prepare Task Completion Report | |
-- Version 2.0.0 | |
-- Written By: Ben Waldie <[email protected]> | |
-- 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 |