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:
A friend of mine (yes I have non-Drupal friends) is ready to dive into
development, specifically Drupal. He was going to go to one of those developer
bootcamps like Hackreactor but isn't really interested in the Silicon Valley
startup scene and lifestyle. That said, he does want a bootcamp style on-ramp
to Drupal and the community. He wants to dive in hard and spend a significant
amount of time to get on-boarded as quickly as possible. He wants to switch
careers. I have offered to mentor him and get him plugged into the Drupal
community. He is 35 with two kids and a spouse. Fortunately he is able to
take some time off his current job to get going. He says he has studied HTML/CSS
and basic JS. He recently studied and was certified with some Cisco cert,
>
> This is a Quix Command File
>
> For the syntax of this file, please refer to http://quixapp.com/syntax/
>
> Permalink to this file: http://dl.dropbox.com/u/18414/quix.txt
> By TJ Luoma
> http://luo.ma
> http://twitter.com/tj
> A lot (MOST! as of right now) of these came from Merlin Mann's Quix file
@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.
//
@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 / pre_conference_sessions.module
Created August 2, 2011 21:24
A module adding session selection to UC Signup module
<?php
/**
* Implementation of hook_perm().
*/
function pre_conference_sessions_perm() {
return array('change pre-conference sessions', 'allow check or money order payment');
}
/**
It appears you need a SMTP relayhost added
in your Postfix /etc/postfix/main.cf config.
Please enter your SMTP relay host name
as a value for _SMTP_RELAY_HOST="smtp.your.relay.server"
Vagrant::Config.run do |config|
config.vm.share_folder("platforms", "/var/aegir/platforms/.", "../platforms", :owner => "aegir", :group => "www-data")
config.vm.share_folder("builds", "/var/aegir/builds", "../builds", :owner => "aegir", :group => "aegir")
@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
<div id="cse" style="width: 100%;">Loading</div>
<script src="https://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
google.load('search', '0', {language : 'en'});
google.setOnLoadCallback(function() {
var customSearchControl = new google.search.CustomSearchControl('012175768895571244741:5zxvz8g5isy');
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
var options = new google.search.DrawOptions();
options.setAutoComplete(true);
customSearchControl.draw('cse', options);