Skip to content

Instantly share code, notes, and snippets.

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:

@dtrce
dtrce / codeclimate.rb
Created March 27, 2014 03:43
code climate script
#!/usr/bin/env ruby
require 'fileutils'
if Dir.exists?(ENV['CODECLIMATE_PATH']) == false
abort "CODECLIMATE_PATH variable not set or invalid path"
end
@cc_path = ENV['CODECLIMATE_PATH']
@repo_name = Dir.pwd.split('/').last
@dtrce
dtrce / GistList!.md
Created October 4, 2014 21:41
Try GistList for iOS! http://gistlist.io/

##alt text GistList: TODO for coders alt text

@dtrce
dtrce / gist:1041197
Created June 22, 2011 21:04
rufus jobs
2011-06-22 16:59:02 -0400 Initializing NotificationUtil for schedule 1
2011-06-22 16:59:02 -0400 Initializing NotificationUtil for schedule 2
2011-06-22 16:59:02 -0400 Initializing NotificationUtil for schedule 3
2011-06-22 16:59:02 -0400 Initializing NotificationUtil for schedule 4
2011-06-22 16:59:02 -0400 Initializing NotificationUtil for schedule 5
2011-06-22 16:59:02 -0400 Initializing NotificationUtil for schedule 6
2011-06-22 16:59:02 -0400 Initializing NotificationUtil for schedule 7
2011-06-22 16:59:02 -0400 Initializing NotificationUtil for schedule 8
2011-06-22 16:59:02 -0400 Initializing NotificationUtil for schedule 9
2011-06-22 16:59:02 -0400 Initializing NotificationUtil for schedule 10
@dtrce
dtrce / gist:1043220
Created June 23, 2011 18:36
rufus logs
2011-06-22 23:38:33 -0400 [PID: 9959] [Rufus] Starting...
2011-06-22 23:38:35 -0400 [PID: 9959] [Rufus] Done scheduling 24 medicine schedules.
2011-06-22 23:38:57 -0400 [PID: 9959] [Rufus] Done Scheduling 140 job.
2011-06-23 14:22:51 -0400 [PID: 10653] [Rufus] Starting...
2011-06-23 14:22:53 -0400 [PID: 10653] [Rufus] Done scheduling 24 medicine schedules.
2011-06-23 14:23:14 -0400 [PID: 10653] [Rufus] Done Scheduling 140 job.
2011-06-23 14:23:19 -0400 [PID: 10661] [Rufus] Starting...
2011-06-23 14:23:21 -0400 [PID: 10661] [Rufus] Done scheduling 24 medicine schedules.
2011-06-23 14:23:42 -0400 [PID: 10661] [Rufus] Done Scheduling 140 job.
2011-06-23 14:23:47 -0400 [PID: 10671] [Rufus] Starting...
@dtrce
dtrce / gist:1073545
Created July 9, 2011 11:56
Auth Error
Undefined symbols for architecture x86_64:
"_AuthorizationCreate", referenced from:
-[FTPWindowController startServer:] in FTPWindowController.o
"_AuthorizationExecuteWithPrivileges", referenced from:
-[FTPWindowController startServer:] in FTPWindowController.o
"_AuthorizationFree", referenced from:
-[FTPWindowController startServer:] in FTPWindowController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Command /Developer/usr/bin/clang failed with exit code 1
// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
//= require jquery
//= require jquery_ujs
//= require_tree .
@dtrce
dtrce / gist:1206477
Created September 9, 2011 15:11
installing cinderella
Cinderella installed successfully
sh: line 25: /usr/bin/cinderella: No such file or directory
Run started Fri Sep 9 11:04:44 EDT 2011
/usr/local/bin/ruby
/usr/local/bin/gem
ERROR: While executing gem ... (Gem::InstallError)
gem "cinderella" is not installed
Building native extensions. This could take a while...
[Version 0.7.3] AMQP connection URI parser now respects port
Building native extensions. This could take a while...
@dtrce
dtrce / gist:1219415
Created September 15, 2011 14:40
brew install failed
==> Downloading https://github.com/defunkt/hub/tarball/v1.6.1
File already downloaded in /Users/djavia/Library/Caches/Homebrew
/usr/bin/tar xf /Users/djavia/Library/Caches/Homebrew/hub-1.6.1.tgz
==> rake install prefix=/usr/local/Cellar/hub/1.6.1
rake install prefix=/usr/local/Cellar/hub/1.6.1
==> Exit Status:
http://github.com/mxcl/homebrew/blob/master/Library/Formula/hub.rb#L10
==> Environment
HOMEBREW_VERSION: 0.8
HEAD: a0b940acb775b4affebedea800541f343aac79bf
@dtrce
dtrce / app.js
Created September 23, 2011 16:05
nodes with less and mustache
/**
* Module dependencies.
*/
var express = require('express');
var mustache = require("mustache");
var app = module.exports = express.createServer();