LAMP stack kickstart script for AWS with PHP55

August 11, 2014

I’ve been messing around with Puppet and Vagrant a lot at work recently working to automate our infrastructure. However, I had an idea for a little website and I just wanted to get started on some basic things with the site and not have to worry about a whole complicated Puppet setup.

AWS has a tutorial for setting up a basic lamp stack on the EC2 instances and I thought it would be handy to make that in to a little bash run all the commands in the tutorial.


Scrypt mining on AWS Nvidia GPU with CudaMiner

March 24, 2014

I’ve been following the Bitcoin/Altcoin “movement” for a little while now and for the past few weeks have been playing around with various miners.

I had been reading a little about various mining setups when I found this thread on using AWS GPU instances as a mining platform. The thread was a few years old so I decided to try and reproduce the results mentioned.


Quick WordPress/website performance tweaks

November 27, 2011

Add some expires data and compress stuff. Add this to your .htaccess file and be done, or your httpd.conf file and then restart apache.

Drupal 7 panel pane theming suggestions

October 17, 2011

I was working on a project and and I wanted to be able to update the panel pane template on a per pane basis. What I did was copy the panels-pane.tpl.php file from panels/templates in to my theme. I then added this to my template.php file.

function MYTHEME_preprocess_panels_pane(&$vars) {
// get the subtype
$subtype = $vars['pane']->subtype;

// Add the subtype to the panel theme suggestions list
$vars['theme_hook_suggestions'][] = 'panels_pane__'.$subtype;

return $vars;

This allows me to rename the panel template in this format panels-pane–SUBTYPE-NAME.tpl.php.

If you have any problems send me an email and I’ll try and help.

MP3 to Post plugin

September 1, 2011

I saw this question on the WordPress Stackexchange a little while ago and thought it seemed like a cool idea. So I made a plugin…

MP3 to Post Plugin


Browser color override test for Modernizr

July 13, 2011

I’ve been working on a project recently that requires the website to be usable for people with visual and cognitive impairments. One of the tests that we’ve been doing is overriding the text/link and background colors in Firefox and IE.


WordPress Google Analytics Content Filter

March 17, 2011

I’ve been working on a site recently that has a lot of PDFs that the content owners link to and I’ve been wanting to track the number of views that each PDF has. To accomplish that I’ve been using a feature of google analytics that requires you to add some extra info to links so you can track how many clicks a PDF gets.

Up until now I’ve been adding that extra information by hand because there haven’t been a lot of links but I figured there was a ripe oppurtunity to do some simple automation. I’ve created the following content filter that will automatically add the google analytics bit to each link in the content, you just have to put it in your theme’s function.php file. I also added a bit that tracks outbound links as well just because that might be handy info to have as well.

Web development plugins for Firefox

December 5, 2010

There are a few plugins for Firefox that I use every time I work on a web project. I thought I would list them here just in case someone else finds them useful.

New Minimal Theme

July 26, 2010

I just finished redoing the Fractured State theme with a simpler grid based theme. I used the 960 grid system because it’s super straight forward and I’ve used it on a couple of commercial projects in the past. The other thing I tried with this theme is using custom post types for the portfolio projects, each project is a post with a custom taxonomy for the skills/technologies. I then set a featured image and upload the rest of the pictures I want for the project and all the thumbnails are generated automatically with the Autothumb plugin. I also ended up writing a function to print out the thumbnails for each project. I know WordPress already has a gallery short tag that will output the uploaded pictures but it generates this huge mess of HTML that is really not elegant and I thought I should do better for my personal site.

I’ve also designed it so it should degrade nicely with no javascript. The only things that I’ve used javascript for is the filtering of projects on the projects page, the lightbox and showing/hiding the archives and categories, none of which are super crucial to navigating the site in the long run.

Good WordPress Plugins

December 16, 2009

When I make wordpress themes there are usually a few good plugins that I use repeatedly and I thought that if I found them useful other folks might to.

This is best plugin for resizing images. I’ve found it most effective when I set image URLs in custom fields and then grab that info to generate resized images. This is really handy when people upload pictures and don’t have any concept about picture dimensions and where the image is actually going to go. It can even grab pictures from another host and resize those as well.

TDO Mini Forms
This plugin is great if you want people to submit posts or pages for your site. It lets people upload pictures and write everything you would need for a post; it also has built in moderation features and the forms that it makes are very customizable. I’ve used it several times for contest websites where people upload photos and descriptions.

Page Link Manager
When you need to hide pages from being listed in the wp_list_pages() function this plugin is really handy. It provides a simple page of with all the published pages in the site listed and select a checkbox to turn them on and off.

All In One SEO
Really great plugin to generate the basic metatags for your content without you actually having to write it in.

Link to Post
The WYSIWYG link button in wordpress drives me nuts. This plugin will add two new buttons to the WYSIWYG editor that will provide you with a list of pages or posts on your site that you can select from. No more copying and pasting links!

Page Links To
If you ever need to redirect a post/page to another location this plugin is great. Adds a simple field on the edit post page where you can type in the URL that you want that post to redirect to.