View all posts

vimrc

syntax on
highlight Comment term=bold ctermfg=6 guifg=Cyan
highlight Special term=bold ctermfg=6 guifg=Cyan
set showmode
set tabstop=2
set shiftwidth=2
set noexpandtab
set ruler
set nowrap
set smartindent
set backspace=2
set nobackup
:abbr #b /**********************************************************
:abbr #e **********************************************************/

Posted: 06/01/2015

Common fonts for the browser

Common fonts for use on the web.

Posted: 14/09/2014

Blog moves to github page with Jekyll

This blog has been migrated to github pages.

Posted: 07/09/2014

Change the primary domain document root on cPanel 11

This is how to make manual changes to an Apache virtual host configuration file.

Posted: 11/05/2014

Geddy EJS templates, import partial templates

For Geddy version 0.11.8.

Here is a typical directory listing for some template files.

Posted: 08/01/2014

Geddy SyntaxError: Unexpected token catch at Object.Function (unknown source) at Template.compile

Working with the Geddy nodejs framework, I got the following error. I knew it was to do with a view file (using EJS templates).

Posted: 07/01/2014

Add bootstrap3 to a symfony project with composer

This post covers adding bootstrap without using bundles.

Add the requirement to your project composer.json, and run composer update

Posted: 15/11/2013

Google Tag Manager - Analytics Page View Setup

How to set up Analytics tracking with Google Tag Manager.

Posted: 11/10/2013

Set file permissions to be executable using GIT on windows

I needed to make a file executable with unix permissions 0755, but I was developing on the windows platform.

Luckily there is an easy solution with GIT.

$ git update-index --chmod=+x 

Commit your changes, and when you pull onto a remote *nix system, the file permissions will be correct.

Posted: 10/10/2013

Git Deployment and Branching Stratergies

The branching strategy outlined by Vincent at nvie.com is what I use myself.

This posts adds a few Git commands I find useful in my day to day work.

Pushing a release branch to a remote server

$ git checkout -b release-1.2 develop
$ ./bump-version.sh 1.2
$ git commit -a -m "Bumped version number to 1.2"

If I want to push this release branch to another server, I can do so via origin in the standard way:

$ git push origin release-1.2

And then on the remote server:

$ git fetch origin
$ git checkout -b release-1.2 origin/release-1.2

Posted: 03/10/2013