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
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'net/ssh' | |
require 'net/scp' | |
thingsPath = "HOME/Library/Application\ Support/Cultured\ Code/Things/Database.xml" | |
getTimestamp = "ls -lT '#{thingsPath}' | cut -f9-13 -d' '" | |
getThings = "ps waux | grep [T]hings" | |
quitThings = "osascript -e 'tell application \"Things\"\nquit\nend tell'" |
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
ANZAC biscuits | |
Ingredients: | |
* 1 cup whole wheat flour | |
* 1 cup sugar | |
* 1 cup desiccated coconut | |
* 1 cup rolled oats | |
* 1/2 cup butter (i.e. one whole stick of butter) | |
* 2 tbs honey or golden syrup |
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
#!/bin/bash | |
# Quite often I buy some music at home, then want to transfer it to work. | |
# This command is what I use to find m4a tracks created in the last day, | |
# and pull them to my work machine. | |
ssh username@domain "cd /Volumes/Media/iTunes && find . -mtime -1 -name "*.m4a" | tar -T - -cf -" | tar xf - | |
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
#!/usr/bin/env arch -i386 ruby | |
# TextMate's default insert color command is pretty lame. I wanted it to detect | |
# rgb values and use those, outputting the same if detected. Here's my first naive | |
# cut at improving this script. I think it should fall through a few different | |
# filters, trying to detect whether it's hex, rgb, or a color name (who uses those?!) | |
require ENV['TM_SUPPORT_PATH'] + "/lib/ui" | |
require ENV['TM_SUPPORT_PATH'] + "/lib/exit_codes" | |
colour = STDIN.read |
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
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'net/http' | |
require 'hpricot' | |
class Twitter | |
def initialize(username, password) | |
NewerOlder