Skip to content

Instantly share code, notes, and snippets.

@webbj74
webbj74 / gist:6911428
Created October 10, 2013 01:11
Devel 6.x-1.27's mail wrapper
// Devel 6.x-1.27's mail wrapper
// $conf['smtp_library'] is set to path/to/devel.module
// Only define our mail wrapper if the devel module is the current mail
// wrapper.
if (variable_get('smtp_library', '') == drupal_get_filename('module', 'devel')) {
/**
* Log the mails sent out instead of mailing.
*/
function drupal_mail_wrapper($message) {
@webbj74
webbj74 / pubkey.txt
Last active December 19, 2015 23:29
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCyDCrrH+6VK5y21HxjvrstSnk0p2mdVmQg3rVjbx8/0vb/qPKC8TLM9fFCco0kVaUoojgjfgtaaMVTpOWrlJixtbQ//ItcRRehT3rkXfi/KPIbbq5kI+B2rk9+Hp2licXsWBlFy+fZYocjuTUpB+15jS4zjYrrnVkj18TFBqMXG2NXnIfwkWs3wL8bhlK/f1VP2cRcIKVQpzDmihAxossQw80bdkpZ16aZtfr8yodC2QfWSjqH54C6Ih8L07pYYloeY8sDfdPrm58FMYdW7fFdC0A4sguwC/NVpwVKUoZ8u/di0be6QJFp66/GHnixHRRGyqoxSQNCxmbPtVjnkr3FhPxi3BOvVlnr9WKgKZ/JSfUbOSNn0XXkwUhfJFXCmWHnnE/SvOeNw0HWnx8lDbTUtamashK8BLA7AqyDBKI8MaRw4P1LmKXVQNlDSDVSE38D+3FDQmiMlyJb6D0WfwR6XypgJEuOkBgUyDVYj4DjVdxruFbr0U6fqVkPT22D9f0AAEnGxJC8uU+J5Mnzu1cRsSSasjVdaYnSasuYpgzvcimJkKHAa+sS3HPnD2oIzzNSmK6Fw3TY1+KM/ldxWUorMT+YL4X8SNpGPgFvSNbISLr1N+hac/KUVbDzV51cHMlazsuhXUeg5j9aceCaGMBn3XhecNYg4xayWgkQTVOINw== jwebb
@webbj74
webbj74 / gist:5587486
Created May 15, 2013 21:18
Acquia Memcache Stats to CSV
MCINTERVAL=5; HOSTSHORT=`hostname -s`; MCHEADER=`(echo stats; sleep 0.5) | nc -w1 ${HOSTSHORT} 11211 | tr -d "\r\n"`; echo "host,${MCHEADER}" | sed -e 's/STAT \([a-z_]\+\) [0-9.]\+/\1,/g;s/,END//'; while [ 1 = 1 ]; do MCSTATS=`(echo stats; sleep ${MCINTERVAL}) | nc -w1 ${HOSTSHORT} 11211 | tr -d "\r\n"`; echo "${HOSTSHORT}${MCSTATS}" | sed -e 's/STAT [a-z_]\+ /,/g;s/END$//'; done | tee -a /mnt/tmp/sitename/memcache-logs.csv
@webbj74
webbj74 / keybase.md
Created November 22, 2015 02:23
Keybase proof

Keybase proof

I hereby claim:

  • I am webbj74 on github.
  • I am webbj (https://keybase.io/webbj) on keybase.
  • I have a public key whose fingerprint is C608 45C9 8B36 489B BBA8 7CF7 3072 3AF4 B048 09F9

To claim this, I am signing this object:

<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say voice="man" language="en">Hello and welcome to the twenty first century. I no longer accept phone calls. Please email me.</Say>
<Pause length="1"/>
<Say voice="woman" language="en">Let me repeat that. I no longer accept phone calls. Please email me.</Say>
<Pause length="1"/>
<Say voice="alice" language="en-US">Message 1 0 2</Say>
</Response>
@webbj74
webbj74 / gist:1416891
Created December 1, 2011 13:55
Acquia Cloud - SVN Repository Layout (Text Expander Snippet)
Overall Repository Organization
This is your base repository URL:
%fill:repo_url%
Under this path you have three folders to organize your repository:
%fill:repo_url%/trunk
%fill:repo_url%/tags
%fill:repo_url%/branches
@webbj74
webbj74 / .gitconfig
Created April 1, 2015 17:55
.gitconfig
[user]
name = Your Name
email = your.name@example.com
[core]
pager = /usr/bin/less -+$LESS -FRX
excludesfile = ~/.gitignore-global
editor = vim
[color]
@webbj74
webbj74 / behat.yml
Last active August 29, 2015 14:08
Alter the curl timeout when using behat and goutte
# Problem:
#
# Behat tests fail with messages like:
# [curl] 28: Operation timed out after 30096 milliseconds with 0 bytes received
#
# Reason:
#
# By default, goutte sets CURLOPT_TIMEOUT to 30 seconds
#
# Solution: