Tuesday
Apr272010

RubyOSA + Snow Leopard

If you're having issues install RubyOSA from RubyGems on Snow Leopard, this patch should set you right.

$CFLAGS << ' -Wall '
+if `/usr/bin/uname -r`.to_i == 10 # darwin 10 => Mac OS X 10.6
+$CFLAGS << ' -DRB_ID=ID'
+end
 $LDFLAGS = '-framework Carbon -framework ApplicationServices'

 

Tuesday
Apr132010

Lollapalooza

(Lollapalooza Lineup\:)\s+((PerryFarrell | JanesAddiction)\b+(Popular90sAltRockBand)*\b+(WeirdPopIcon)*\b+(PitchforkFavorite2YearsAgo | PlayedSXSWOnce)*\b+(BandYouHaveNeverHeardNorCareAbout)*\b

Sunday
Mar282010

Gitolite Textmate Bundle

http://github.com/jboyett/gitolite-tmbundle

A simple Textmate bundle which provides syntax highlighting for Gitolite config files. Syntax highlighting is done based upon aesthetics, not adherence to scopes.

Saturday
Oct032009

Get More From Your Menu Items

Simply holding down the Option key while clicking on menu items may reveal more information about your favorite services. So far I've noticed that the MobileMe, wireless, and battery menu items all provide more interesting stats when option-clicked.

MobileMe Syncing before:

After:

 

Monday
Jun222009

df? No, du!

The command line utilities df and du are great for gathering information on disk usage.

 df - Displays free disk space based on the filesystem. This is useful for determining the free space of internal drives, external drives, and network shares.

The -h flag is used to display the output in human-readable form, i.e using unit suffixes such as megabyte, gigabyte, and terabyte.

 

du - Displays disk usage of files and directories. This is useful for determining the size of individual files, folders, and home directories.

Using the -s flag to show a summary (one folder deep) and -h to, again, display the output in human-readable form, we can determine the size of a user's home directory or the folders contained within.