Skip to content

Instantly share code, notes, and snippets.

View allgood2386's full-sized avatar

Richard Allen allgood2386

  • Northern Virgina
View GitHub Profile
<?php
/**
* Implements hook_node_view().
*/
function sponsor_school_page_node_view($node, $view_mode, $langcode) {
switch ($node) {
case $node->nid == '217308':
if(user_is_logged_in()) {
@allgood2386
allgood2386 / ab test script
Last active December 14, 2015 19:18
figuring out ab testing
#!/bin/bash
# This script will run a series of ab benchmarks and print them out to a files directory in a drupal site with the -w
# flag for easy web browser reading.
# Example usage:
# ./thisScript.sh -u 'ourpassword:todev' -d http://somedomain.com -o dir/towrite/to -f 'index/ something.php /content/node/xxxx'
while getopts u:d:o:f: option
do
case "${option}"
in