Skip to content

Instantly share code, notes, and snippets.

View 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'
@benclark
benclark / nodequeue_create.php
Created Sep 21, 2012 — forked from brockboland/nodequeue_create.php
Drupal: Create a nodequeue if it doesn't exist already
View nodequeue_create.php
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 / local.settings.php
Last active Sep 29, 2015 — forked from brockboland/local.settings.php
My local settings for Drupal sites
View local.settings.php
<?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: