Skip to content

Instantly share code, notes, and snippets.

>
> 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);
<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);
<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);
//$(".gsc-input").val("<?php echo $_POST['as_q']; ?>");//insert into search field requested search text
//$('.gsc-input').focus();//give search box focus