PHP Gist: Symfony 2 Testing Conventions

A comprehensive description of how to run tests in Symfony 2.

There is absolutely no official documentation available, so this guy just saved me many hours of tedious reverse engineering. I found this gist looking for instructions on replacing a PEAR-installed PHPUnit package with the latest code available on GitHub. Symfony2's internal tests target the current development version, and it took me a long minute to figure that out in the first place.

Vist Link

May 20th 2010
11:47 pm

by: Greg Thornton

GitHub Clone with Redmine

I’m in love with GitHub and I don’t mind paying a few bucks a month to host private code repositories there. It’s not without its issues though, and I’ve often had trouble getting others to collaborate with me via GitHub for one reason or another. Desiring more control, I was thrilled when GitHub:FI was announced. Unfortunately, the licensing fees are staggering and put the service far out of my reach. Recently, my buddy Marcus Whitney had been messing around with Redmine and my interest was piqued by his results. I decided to jump in head first and try to build a reliable GitHub:FI alternative using an Ubuntu VPS, Git, Gitosis, Gmail (or Google Apps for Domains), and Bitnami’s Redmine Stack.

Read more

May 4th 2010
4:17 pm

by: Greg Thornton
17 Comments
, , , ,

Bank of America Breakdown

I have a check written out to me from a local Nashville company, drawn on their Bank of America account. I no longer have a personal BOA account (thankfully) but I’ve never had a problem cashing a BOA check at a BOA branch, since that’s a pretty standard transaction. Regions is notorious in my mind for charging $5 per-check if you don’t have a Regions account, which they upped to $7 about a month ago. This whole concept of charging a fee to cash checks drawn on their customers’ accounts is fairly new, and many bank customers don’t understand that their own checks are potentially costing their payee money. I for one would be enraged if I found out my bank was stealing money intended for the person to whom I wrote a check, but that’s just me.

Read more

April 27th 2010
5:18 pm

by: Greg Thornton
0 Comments

Shell Gist: Grant all file permissions to a group

OS X command to add inherited ACL rules to a file or directory, allowing superuser-like status for members of a specific group.

Convenient for when your web server and terminal user must modify the same files, as in the Symfony 2 cache and log directories.

Vist Link

March 27th 2010
10:18 am

by: Greg Thornton

Shell Gist: Batch convert FLAC audio files to WAV

Convert all FLAC files in the current directory to WAV files in a subdirectory.

Requires flac command line tool, available at the FLAC home page.

Vist Link

March 26th 2010
7:00 pm

by: Greg Thornton

PHP Gist: Doctrine CLI script for Zend Server CE on Snow Leopard

An example of a working Doctrine CLI script for use with Zend Server CE on Snow Leopard.

Doctrine uses an ANSI colored formatter for its command line interface by default. The Zend Server CE package for OS X doesn't include the required extensions for outputting this formatted text making the Doctrine CLI unusable. This replacement script works from within a Zend Framework application and correctly registers a compatible non-colored output formatter with the Doctrine CLI. The linux Zend Server CE packages may require this change as well in some configurations.

Vist Link

March 19th 2010
9:30 am

by: Greg Thornton

Remove Trac Source Code Line Numbers Using Greasemonkey

This userscript will hide the line numbers column in Trac source code listings, so you can copy and paste without having to delete line numbers later.

I've been using this script since last August, and it really comes in handy in at the most random times.

Vist Link

March 9th 2010
6:45 am

by: Greg Thornton

PHP Gist: Add GET params to links in HTML

Filters HTML adding URL parameters to links beginning with a base URL.

The HTML source code is parsed with a regex replacement which updates the "href" attribute of all links whose URL begins with the base URL, adding the given data to the URL in the form of GET parameters.

Vist Link

March 3rd 2010
6:21 pm

by: Greg Thornton

Killer new GitHub feature: Compare View

Introducing GitHub Compare View

Wow, GitHub just got even cooler with this feature. Plus changelog generation and 3 in-the-wild examples of a "topic branch" workflow using the new Compare View.

Vist Link

March 3rd 2010
6:05 pm

by: Greg Thornton

Wrap logo words in spans for Thesis WP theme

A PHP snippet that wraps each individual word in the logo text with a span tag. This is useful for custom styling of Thesis for Wordpress.

Vist Link

February 19th 2010
6:58 pm

by: Greg Thornton

WordPreSt reStructuredText Plugin For WordPress

WordPreSt adds a reStructuredText input mode to the WordPress post/page editor. Once installed, reStructuredText may be input directly into the editor and converted to HTML with the click of a mouse. The reSt source is saved with each post/page for future edits. The rendered HTML output is stored as the actual post content to allow modification after rendering if desired. Plugin settings control the features of the reSt convertor and include automatic table of contents links, post title generation from reSt, header level customization, and others. A “View document source” link is also (optionally) available for each post.

WordPreSt requires no template modifications and every effort has been made to ensure a truly seamless integration into WordPress.

Read more

January 17th 2010
6:01 pm

by: Greg Thornton
3 Comments

Recent Tweets

Read more

Flickr

  • Miles of Destruction Pig-Dog
  • Lola Pig-Dog
  • Ike and Tina Would Be Proud
  • Coincidental Prayer

View Photostream

Last.Fm

Elsewhere