<p>Here are some bash aliases that I use and find helpful for quickly writing Git and Git Flow commands.</p>
<ahref="/blog/2014/01/15/some-useful-git-aliases">Read more →</a>
</li>
<liclass="post">
<h2>Download Different Versions of Drupal with Drush</h2>
<pclass="posted">31st December 2013</p>
<p>If you use <ahref="https://raw.github.com/drush-ops/drush/master/README.md"title="About Drush">Drush</a>, it's likely that you've used the <code>drush pm-download</code> (or <code>drush dl</code> for short) command to start a new project. This command downloads projects from Drupal.org, but if you don't specify a project or type "drush dl drupal", the command will download the current stable version of Drupal core. Currently, this will be Drupal 7 with that being the current stable version of core at the time of writing this post.</p>
<p>But what if you don't want Drupal 7?</p>
<ahref="/blog/2013/12/31/download-different-versions-drupal-drush">Read more →</a>
<h2>Quickly Apply Patches Using Git and curl or wget</h2>
<pclass="posted">24th December 2013</p>
<p>Testing a patch file is usually a two-step process. First you download the patch file from the source, and then you run a separate command to apply it.</p>
<p>You can save time and typing by running the two commands on one line:</p>
<ahref="/blog/2013/12/24/quickly-apply-patches-using-git-and-curl-or-wget">Read more →</a>
</li>
<liclass="post">
<h2>Useful Vagrant Commands</h2>
<pclass="posted">27th November 2013</p>
<p><ahref="http://www.vagrantup.com"title="About Vagrant">Vagrant</a> is a tool for managing virtual machines within <ahref="https://www.virtualbox.org">VirtualBox</a> from the command line. Here are some useful commands to know when using Vagrant.</p>
<ahref="/blog/2013/11/27/useful-vagrant-commands">Read more →</a>
</li>
<liclass="post">
<h2>Don't Bootstrap Drupal, Use Drush</h2>
<pclass="posted">19th November 2013</p>
<p>There are times when doing Drupal development when you need to run a custom PHP script, maybe moving data from one field to another, that doesn't warrant the time and effort to create a custom module. In this scenario, it would be quicker to write a .php script and bootstrap Drupal to gain access to functions like <code>node_load()</code> and <code>db_query()</code>.</p>
<p>To bootstrap Drupal, you would need to add some additional lines of code to the stop of your script. Here is an alternative way.</p>
<ahref="/blog/2013/11/19/dont-bootstrap-drupal-use-drush">Read more →</a>
</li>
<liclass="post">
<h2>Create a Zen Sub-theme Using Drush</h2>
<pclass="posted">6th September 2013</p>
<p>How to use <ahref="https://drupal.org/project/drush">Drush</a> to quickly build a new sub-theme of <ahref="https://drupal.org/project/zen">Zen</a>.</p>
<ahref="/blog/2013/09/06/create-a-zen-sub-theme-using-drush">Read more →</a>
</li>
<liclass="post">
<h2>Going to DrupalCon</h2>
<pclass="posted">26th July 2013</p>
<p><ahref="http://www.precedent.co.uk">Precedent</a> are sending myself and two of our other Drupal Developers to <ahref="http://prague2013.drupal.org">Drupalcon Prague</a>.</p>
<ahref="/blog/2013/07/26/going-drupalcon">Read more →</a>
</li>
<liclass="post">
<h2>Creating Local and Staging sites with Drupal's Domain Module Enabled</h2>
<pclass="posted">17th July 2013</p>
<p>The <ahref="https://drupal.org/project/domain"title="The Domain Access project on Drupal.org">Domain Access project</a> is a suite of modules that provide tools for running a group of affiliated sites from one Drupal installation and a single shared database. The issue is that the domains are stored within the database so these are copied across when the data is migrated between environments, whereas the domains are obviously going to change.</p>
<p>Rather than changing the domain settings within the Domain module itself, the best solution I think is to use table prefixes and create a different domain table per environment.</p>
<ahref="/blog/2013/07/17/creating-local-and-staging-sites-drupals-domain-module-enabled">Read more →</a>
</li>
<liclass="post">
<h2>Some useful links for using SimpleTest in Drupal</h2>
<pclass="posted">13th June 2013</p>
<p>Here are some useful links that I've found when researching about unit testing in Drupal using SimpleTest.</p>
<ahref="/blog/2013/06/13/some-useful-links-using-simpletest-drupal">Read more →</a>
</li>
<liclass="post">
<h2>Display Git Branch or Tag Names in your Bash Prompt</h2>
<pclass="posted">27th April 2013</p>
<p>Whilst watching <ahref="http://drupalize.me"title="Drupalize.me">Drupalize.me</a>'s recent <ahref="http://drupalize.me/series/introduction-git-series"title="Introduction to Git on Drupalize.me">Introduction to Git series</a>, I thought it was useful the way that the current Git branch or tag name was displayed in the bash prompt. Here's how to do it.</p>
<ahref="/blog/2013/04/27/display-git-branch-or-tag-names-your-bash-prompt">Read more →</a>