Home Link

Hello, my name is Brett Terpstra, and it’s nice to meet you. Elegant solutions to complex problems. Curious?

Archive for November, 2009

Nov 17
2009

I do a lot in Terminal. Sometimes, it’s easier. Sometimes it’s faster. Sometimes I’d just rather type it out. Whatever the reason, I’ve never been able to stand looking at a boring shell prompt. Bash is my primary shell, mostly because I’ve never taken the time to learn much else. I’ll get there someday. For now, here’s my current Bash shell prompt…

I’m using the […] variable to run a few quick functions to generate the prompt. It doesn’t do anything processor-intensive, so I haven’t seen any lag caused by this one (unlike some of my previous experiments). […] is set to call a function cal

Nov 14
2009

This is a function from my OS X .bash_profile. ‘fk’ is short for Find and Kill, and it lets you do a quick search of your running processes for a case-insensitive partial match of the first parameter passed to it. It’s useful for quickly finding a process without worrying about its capitalization or full spelling, and without having to sift through (or manually grep) a long […] list.

Nov 12
2009

This is a quick and dirty Snow Leopard Service that scrapes Songza​.fm to find a song related to your selected text in most applications. It replaces the selected text with an is​.gd shortened link and the name of the first song it found (just to be sure you’re on the same page… literally). The code is also available as a TextMate command for those interested. Update: TextMate command with link selection popup.

The service (and TextMate command) require the Hpricot gem for ruby. In most cases, this should be installable from the command line with […]…

Nov 12
2009

Test post from my iPhone. I figure if this is slick enough, I might blog more… Guess we’ll find out…

Nov 03
2009

It may take me a while to convert my setup back to the old days of TextMate blogging. I’ve primarily been blogging for TUAW, which uses a blogging system with very poor XMLRPC support. The end result of this, for me, was the development of an elaborate TextMate bundle which emulated the ease-of-use that TextMate provides to bloggers on WordPress (and other platforms). I have, I guess, forgotten how to do this. So this post is going to begin as a test, to be continued with some ideas, some tools, and some discoveries I’ve made in my time away from the glory of TextMate blogging…

Nov 03
2009

Clippable to Evernote will allow you to trigger the Clippable bookmarklet in Safari and copy the result directly to your “Unfiled” notebook in Evernote. This service is Snow Leopard-only. If you need it modified for Leopard and aren’t sure how, let me know. If there’s some interest, I’ll just work one up and post it.

To install in Snow Leopard, just unzip (double-click the zip file) the file and move the resulting .workflow file to [your home directory]/Library/Services. It should now appear in your Safari->Services menu, in Safari only…

Nov 03
2009

11.03.09 Renaming Readable2 to Clippable, I think. At least that’s what it’s going to be on the code page, for now.

The Clippable bookmarklet can be found here.

The original Readability bookmarklet by Arc90 is here.

Entries (RSS) and Comments (RSS).