I created an OmniGraffle stencil of the excellent famfamfam icon set made available under the Creative Commons license by Mark James. The first 12 hours has already seen over 100 downloads from the OmniGraffle Stencil website Graffletopia. Check it out here.

Git on Windows

March 19th, 2008

If you want to use git with windows, here's what you need to do. This is assuming you'll be using the windows command prompt to enter commands.

  1. Go to http://code.google.com/p/msysgit/downloads/list and download the latest Windows build of Git (at the time of writing the latest one is Git-preview20080301.exe)
  2. Double click the install file - make sure the 'Run git from the windows command prompt' option is selected
  3. Finish the installation and open a command prompt
  4. To clone a remote repository, type git clone ssh://git_username@git_host/path/to/repos local_repos_dir
It's the last step that had me stumped for a while. There's no colon after the git_host and it seems to need ssh:// at the start.

Download MMS file

February 11th, 2008

If you need to download an MMS file to your local machine, try http://geocities.com/majormms/. You can then use ffmpeg to convert to a format of your choice, like flv.

Mac Terminal Shortcuts

February 6th, 2008

Here are some useful shortcuts for getting around the mac terminal. The first table applies to the Leopard terminal.

Key Description
⌘ + N Create a new shell window
⌘ + T Create a new shell tab
⌘ + ` Next Terminal window
⌘ + ~ Previous Terminal window
⌘ + } Next Terminal tab
⌘ + { Previous Terminal tab
⌘ + W Close window or tab

Most consoles should support these shortcuts:

Key Description
Ctrl-A Move the cursor to the beginning of the command line.
Ctrl-B Move the cursor back one character.
Ctrl-C Break out of the command without any change to the settings.
Ctrl-D Delete the character at the cursor.
Ctrl-E Move the cursor to the end of the command line.
Ctrl-F Move the cursor forward one character.
Ctrl-I Recall a complete command name; same as the Tab key operation.
Ctrl-K Delete all characters from the cursor to the end of the command line
Ctrl-L Redisplay the current command line, same as the Ctrl-R key.
Ctrl-N Recall the most recent command in the command history relative to the current pointer in the history list.
Ctrl-P Recall the oldest command in the command history, beginning with the most recent command.
Ctrl-R Redisplay the current command line; same as Ctrl-L key.
Ctrl-T Transpose the characters to the left of the cursor with the character located at the cursor.
Ctrl-U Delete all characters from the cursor to the beginning of the command line.
Ctrl-V Insert a code to indicate that the immediately following value is a command entry.
Ctrl-W Delete the word to the left of the cursor.
Ctrl-X Delete all characters from the cursor to the beginning of the command line.
Ctrl-Y Recall the most recent entry in the buffer (which contains the last ten items you deleted).
Esc-B Move the cursor back one word.
Esc-C Capitalize the word at the cursor.
Esc-D Delete from the cursor to the end of the word.
Esc-F Move the cursor forward one word.
Esc-L Change the word at the cursor to lowercase.
Esc-Q Insert a code to indicate that the immediately following value is a command entry.
Esc-U Capitalize letters from the cursor to the end of the word.
Esc-Y Recall the next deleted buffer. (Effective after using Ctrl-Y.)