I hereby claim:
- I am cam8001 on github.
- I am cam8001 (https://keybase.io/cam8001) on keybase.
- I have a public key whose fingerprint is EC6C CBC2 D6C3 4977 BA4A 52A6 D1E6 98A6 1B4C B576
To claim this, I am signing this object:
#!/bin/bash | |
CURL="/usr/bin/curl" | |
GAWK="/usr/bin/gawk" | |
URL="$1" | |
result=`$CURL -o /dev/null -s -w %{time_connect}:%{time_starttransfer}:%{time_total} $URL` | |
echo "Host: $URL" | |
echo "Time_Connect Time_startTransfer Time_total | |
$(echo $result | $GAWK -F: '{ print $1" "$2" "$3}') | |
" | column -t |
I hereby claim:
To claim this, I am signing this object:
{ | |
"acapi": { | |
"title": "Acquia commands", | |
"summary": "Acquia Cloud commands.", | |
"commands": { | |
"ac-api-login": { | |
"description": "Store Acquia Cloud API credentials and configuration information.", | |
"arguments": [], | |
"options": { | |
"email": { |
#!/usr/bin/env bash | |
# Usage: dice makefile docroot dbuser dbpass dbname sitename install-profile | |
drupal_install_clean_env() { | |
if [[ -r $2 ]]; then | |
sudo rm -r $2 | |
cd ~/ | |
fi | |
if [[ -r $1 ]]; then | |
drush make --working-copy --concurrency=5 $1 $2 |
<?php | |
$config = array( | |
// Example of a LDAP authentication source. | |
'example-ldap' => array( | |
'ldap:LDAP', | |
// Give the user an option to save their username for future login attempts | |
// And when enabled, what should the default be, to save the username or not | |
//'remember.username.enabled' => FALSE, | |
//'remember.username.checked' => FALSE, |
<?php | |
/** | |
* @file | |
* Utilities for use in protecting an environment via basic auth or IP whitelist. | |
*/ | |
function ac_protect_this_site() { | |
global $conf; |
$arg = "%".drupal_get_path_alias($_GET['q'])."%"; | |
echo $arg; | |
$query = db_select('url_alias', 't'); | |
$query->fields('t'); | |
$query->condition('t.alias', '$arg', 'LIKE'); | |
$query->range(0, 1); | |
$result = $query->execute(); | |
while ($record = $result->fetchAssoc()) { | |
print_r($record); |
# Only works for vars that are expressed on one line, grep -A1 or a multilne pcregrep | |
# might be useful if you have longer var definitions. | |
# Check extant definitions | |
egrep "[$]conf\['related_videos_return'\]" --include site.conf.php . | |
# Blast em (note bsd/osx sed syntax, the first "" is not needed on gnu grep) | |
find . -type f -name site.conf.php -exec sed -i "" "/[$]conf\['related_videos_return'\]/d" {} \; | |
# Check them again, they are gone! | |
egrep "[$]conf\['related_videos_return'\]" --include site.conf.php . |
<?php | |
array( | |
0 => | |
array ( | |
'file' => '/Users/cam8001/Sites/drupal/core/includes/bootstrap.inc', | |
'line' => 2220, | |
'function' => '_drupal_log_error', | |
'args' => | |
array ( |