OS X Mavericks Developers Preview and Homebrew

Last night I upgraded to Developers Preview of OS X 10.9 Mavericks. Needless to say, Homebrew wasn’t functional anymore (unable to compile or link a library, all that jazz). Thankfully, it’s pretty easy to get it up and running again.

First, download and install Xcode 5 Preview.

Then open your console and execute the following command:
xcode-select --install

This will open a prompt to install CLI dev tools. Once it’s installed, your system is raring to brew once again.

Color Output on Bash Scripts

Linux Tidbits

Users who have been using Linux for awhile often learn that creating a basic script is a good way to run multiple, often-repeated commands. Adding a little color to scripts can additionally provide nice feedback. This can be done in a fairly straight-forward way by using the tput command.

A common way of doing this is to define the colors that tput can produce by putting them at the beginning of the bash script:

=1          =             =1 =4 =7 =             =*        =*=*=?

When writing new scripts using templates with these variables already defined can quicken the creation process and help keep scripts organized (my Bash Templates).

If just needing to use tput colors for specific instances this script can display the tput definitions and their corresponding possibilities:

 i   17

View original post 93 more words


Although I don’t deal with a lot of frontend development (I don’t really like it), I really dig SASS lately.

And if you got 5k lines commit,
I feel bad for you, son,
I got 99 problems,
But a code review ain’t one

(goes out to WordPress VIP team, that has to review the above mentioned commit by me)

Totally saves the day on svn repos with big revision number

write-only by Gregg Lind

It can be awfully tempting to make some changes to an existing open-source project [1]. Some of that excitement diminishes when one realizes how long a git-svn clone will take on a large project repo, like Python. The gain git-svn gives you in terms of quick history lookup is taken as cost in the beginning.

Instead, we can do a “shallow-copy” to get the last few revisions. It seems that you need to use actual revisions numbers for the first argument to -r, but I could be wrong. I tried using HEAD~1000:HEAD

$ git-svn clone http://svn.python.org/projects/python/trunk/ python-dev -r 65000:HEAD.

If you find this is *still* taking too long, try canceling, changing into the directory and issue a:

$ git svn fetch

Good luck all!


  1. Finally got my first one into python, #4568: remove limitation in varargs callback example.

View original post

Leaving for two week vacation starting Tuesday. It’s a perfect way to meet the End of the World if Mayans were right. In that case, see y’all on some other plane of existence.

Or, if Mayans were wrong, it’s a good way to get well rested and kick some serious ass in 2013.