Skip to content

Instantly share code, notes, and snippets.

View tgray's full-sized avatar
😬
.

Tim Gray tgray

😬
.
View GitHub Profile
@tgray
tgray / create_article.rb
Created January 8, 2012 02:50 — forked from bobthecow/create_article.rb
nanoc create_article command
# encoding: utf-8
# got this and modified it from: https://gist.github.com/1103291
usage 'create_article [options] identifier'
summary 'create an article'
aliases :ca
description <<-EOS
Create a new article in the current site. The first data source in the site
configuration will be used.
EOS
@tgray
tgray / dontforget.bash
Created January 23, 2016 14:18 — forked from ttscoff/dontforget.bash
Quick reminders from Terminal (bash)
#!/bin/bash
# dontforget
#
# A stupid script for short term reminders in bash
#
# Arguments just need to contain a number and a bunch of words.
#
# The number can be anywhere in the arguments, but there shouldn't
# be any other numeric digits.
#
@tgray
tgray / import_dayone.py
Created February 13, 2016 16:14 — forked from sit/import_dayone.py
Import various text files into DayOne without using the DayOne CLI.
#
# Usage: mkdir /tmp/export; find path -name *.html | xargs python
# import_dayone.py | tee /tmp/export.log
#
import datetime
import plistlib
import pytz
import uuid
import sys
@tgray
tgray / Ledger.plist
Created February 17, 2022 11:35 — forked from mixio/Ledger.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BBEditDocumentType</key>
<string>CodelessLanguageModule</string>
<key>BBLMColorsSyntax</key> <true/>
<key>BBLMIsCaseSensitive</key> <false/>
<key>BBLMLanguageCode</key>
<string>Ldgr</string>