Skip to content

Instantly share code, notes, and snippets.

View davecranwell's full-sized avatar

Dave Cranwell davecranwell

View GitHub Profile
<script type="text/javascript">
(function () {
"use strict";
// once cached, the css file is stored on the client forever unless
// the URL below is changed. Any change will invalidate the cache
var css_href = './index_files/web-fonts.css';
// a simple event handler wrapper
function on(el, ev, callback) {
if (el.addEventListener) {
el.addEventListener(ev, callback, false);
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
# Base box to build off, and download URL for when it doesn't exist on the user's system already
config.vm.box = "wagtail-base-v0.1"
config.vm.box_url = "http://downloads.torchbox.com/wagtail-base-v0.1.box"
# You can also build from a vanilla precise32 box, although it'll take longer
@davecranwell
davecranwell / updatecore.sh
Last active December 11, 2015 23:08 — forked from zerolab/updatecore.sh
Updated to suit pressflow
#!/bin/bash
#
# Upgrades/Installs Pressflow (Drupal) core. Targeted at Pressflow 6
# Script based on gopressflow.sh
#
# Should be run from root folder of existing drupal installation
#
# * please backup your files before doing anything!
#