Skip to content

Instantly share code, notes, and snippets.

@benclark
benclark / local.settings.php
Last active September 29, 2015 20:48 — forked from brockboland/local.settings.php
My local settings for Drupal sites
<?php
/**
* @file
* local.settings.php (Drupal 6.x)
*
* This settings file is intended to contain settings specific to a local
* development environment, by overriding options set in settings.php.
*
* Include this file from your regular settings.php by including this at the
* bottom:
@benclark
benclark / nodequeue_create.php
Created September 21, 2012 18:25 — forked from brockboland/nodequeue_create.php
Drupal: Create a nodequeue if it doesn't exist already
drupal_load('module', 'nodequeue');
// Homepage Features
$queue = nodequeue_load_queue_by_name('homepage_features');
if (empty($queue)) {
$queue = new stdClass();
$queue->title = 'Homepage Features';
$queue->name = 'homepage_features';
$queue->size = 4;
$queue->owner = 'nodequeue';
@benclark
benclark / gist_tag.rb
Last active December 11, 2015 08:58 — forked from BinaryMuse/gist_tag.rb
# Gist tag Jekyll plugin
#
# From:
# http://brandontilley.com/2011/01/30/gist-tag-for-jekyll.html
require 'cgi'
require 'digest/md5'
require 'net/https'
require 'uri'