Skip to content

Instantly share code, notes, and snippets.

<?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:
@kepford
kepford / duplicity_backup.sh
Created March 8, 2012 16:11 — forked from anonymous/duplicity_backup.sh
duplicity_backup by mig5
#!/bin/bash
# Duplicity Backup script
# written by mig5
# Functions that define which API to use
function amazon_s3() {
export AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXXXXX
export AWS_SECRET_ACCESS_KEY=XXXXXXXXXXXXXXXXXX
@kepford
kepford / check_all.js
Created June 1, 2011 21:34 — forked from nathansmith/check_all.js
Used to check all checkboxes in a page.
(function(d) {
var input = d.getElementsByTagName('input');
var i = input.length;
while (i--) {
if (input[i].type === 'checkbox') {
input[i].setAttribute('checked', 'checked');
}
}
})(this.document);
@kepford
kepford / gist:823604
Created February 12, 2011 08:18 — forked from imathis/gist:590559
// Create a simple top to bottom linear gradient with a background-color backup
// The first argument, $color will be output as background-color: $color
//
// This yields a gradient that is 5% brighter on the top and 5% darker on the bottom
//
// +gradient-bg(#777)
//
// This yeilds a gradient where the bright and dark colors are shifted 10% from the original color.
// If you don't specify a third argument it will assign this value for the darkness too, keeping the gradient even.
//