Skip to content

Instantly share code, notes, and snippets.

View davidnunez's full-sized avatar

David Nuñez davidnunez

View GitHub Profile
@davidnunez
davidnunez / uninstall_prezto.zsh
Last active December 31, 2018 01:52 — forked from csturtevant/uninstal_prezto.zsh
uninstall prezto from home directory
rm -rf ~/.zprezto ~/.zlogin ~/.zlogout ~/.zpreztorc ~/.zprofile ~/.zshenv ~/.zshrc
(*
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.
date bucket count
2012-07-20 800 119
2012-07-20 900 123
2012-07-20 1000 173
2012-07-20 1100 226
2012-07-20 1200 284
2012-07-20 1300 257
2012-07-20 1400 268
2012-07-20 1500 244
2012-07-20 1600 191
@davidnunez
davidnunez / gitlogger.rb
Created May 14, 2012 08:01 — forked from ttscoff/gitlogger.rb
Archive marked git repositories daily commits to Day One and/or text file
#!/usr/bin/ruby
require 'time'
require 'erb'
filename = "~/.gitlogger"
## File format, One per line
# Repo Name:/path/to/base
dayone = true # log to day one? (true or false)
textlog = "~/Dropbox/nvALT2.2/GitLogger.md" # set to false to disable
@davidnunez
davidnunez / gitlogger-install.rb
Created May 14, 2012 08:00 — forked from ttscoff/gitlogger-install.rb
Installer for gitlogger.rb
#!/usr/bin/ruby
require 'ftools'
puts "Installing GitLogger"
puts "This script will install the following files:"
puts
puts "/usr/local/bin/gitlogger.rb"
puts "~/Library/LaunchAgents/com.brettterpstra.gitlogger.plist"
puts "It will add the glog command to your bash_profile and"
@davidnunez
davidnunez / Log to Day One.scpt
Created May 9, 2012 18:08 — forked from jeredb/Log to Day One.scpt
Based on Brett Terpstra's Log Taskpaper Archives to Day One, except for Omnifocus.
(*
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