Skip to content

Instantly share code, notes, and snippets.

View Souvent22's full-sized avatar

Earnest Berry III Souvent22

View GitHub Profile
<?php
$page = 0;
$url = "/blogs?me=you&jim=earnest&page=13";
$query = parse_str($url);
echo "Page var is: $page, notice it is $page not 0";
?>
@Souvent22
Souvent22 / gist:ca9ad74b3ae2ae35726e
Last active August 29, 2015 14:02
Snipppets for DrupalCon Austin
## APACHE BENCH COMMANDS
ab -c 25 -n 100 http://localhost/heavy
ab -c 25 -n 100 http://localhost
# This are snippets for DrupalCon.
# Bitly link: http://bit.ly/DDAustin
# Files: http://www.earnestberry.com/austintalk.zip
# <esi:include src="/robots.txt" />
# White list items
## 4 ##################################################################################################
## 5 ##################################################################################################
## 6 ##################################################################################################
## 7 ##################################################################################################
## 8 ##################################################################################################
<?php
// Global targeting from Tealium
/**
* Get our Tealimum items and let's pass those through.
*/
if (class_exists('\TI\Tealium\API')) {
$api_do = new \TI\Tealium\API();
$udo = $api_do->get_udo();
foreach ($udo as $tealium_key => $tealium_value) {