Skip to content

Instantly share code, notes, and snippets.

View drywall's full-sized avatar

Ben Byrne drywall

View GitHub Profile

Keybase proof

I hereby claim:

  • I am drywall on github.
  • I am drywall (https://keybase.io/drywall) on keybase.
  • I have a public key ASAJZ4OrGfIgeCWLrXvnq96gHuXWDqjr8FytxgdtsPtUfgo

To claim this, I am signing this object:

jQuery(function($) {
// set data-after-submit-value on input:submit to disable button after submit
$(document).on('submit', 'form', function() {
var $form = $(this),
$button,
label;
$form.find(':submit').each(function() {
$button = $(this);
label = $button.data('after-submit-value');
if (typeof label != 'undefined') {
@drywall
drywall / gist:4bf6da1e07bdfcbdd911
Last active August 29, 2015 14:15
Checks ABA routing number checksum
/**
* function to test if a given value (string/int) passes a basic ABA routing number checksum
*/
function isValidABA(aba) {
var numericRegex = /^\d{9}$/,
total = null;
// just in cases
aba = aba.toString();
<?php
function sca_map_block_view($delta = '') {
$block = array();
$map_path = drupal_get_path('module', 'sca_map');
//drupal_add_js(array('servicemap' => array('current_status' => 'kewl as a kitten')), 'setting');
$display = array(
'#markup' => servicemap_all(),
@drywall
drywall / gist:0ddc21660d5eca9cfc1d
Last active August 29, 2015 14:03
Watch what's in git
#/bin/bash
# /home/mazonorg/public_html/cshp_bin/git_monitor.sh
#
# Purpose:
# Monitor mazon.org public HTML directory structure for local changes.
# This will alert Cornershop Creative of any potential hacked files.
#
# Usage:
# Install to the server's crontab with the following command, as root.
Jumbotron:~ bbyrne$ brew install php54
==> Downloading http://www.php.net/get/php-5.4.4.tar.bz2/from/this/mirror
Already downloaded: /Library/Caches/Homebrew/php54-5.4.4
==> ./configure --prefix=/usr/local/Cellar/php54/5.4.4 --disable-debug --localst
configure: WARNING: unrecognized options: --enable-sqlite-utf8
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking build system type... i386-apple-darwin10.8.0
checking host system type... i386-apple-darwin10.8.0
@drywall
drywall / config.ini
Created June 14, 2012 18:27
Settings
[ESys_Core]
;=============================================================
; htdocsPath
; the server-side path to the application web directory
; value: absolute path, ending without a slash
;=============================================================
htdocsPath = /home/bbyrne/sites/votifi-site
/**
* jQuery Resettable - A function to make form fields reset to their initial values when left blank
* Copyright (c) 2009 Ben Byrne - ben(at)fireflypartners(dot)com | http://www.fireflypartners.com
* Dual licensed under MIT and GPL.
* Date: 10/16/2009
* @author Ben Byrne
* @version 0.1.0
*
*/