Skip to content

Instantly share code, notes, and snippets.

Avatar

Shane Harter shaneharter

View GitHub Profile
@shaneharter
shaneharter / stomp_test.php
Created Jul 3, 2012
stomp client test script
View stomp_test.php
<?php
/**
* Test Stomp Throughput
* @author Shane Harter
*/
require 'stomp/Stomp.php';
$start = microtime(true);
View bashrc
function bashrc() {
# If $script variable exists, use it as filename to append. If not, use $1
if [ -z "$script" ]
then fname="$1"
else fname="$script"
fi
if [ -z "$fname" ]
then return 1
fi
View gist:2084244
<?php
function shutdown_function()
{
$error = error_get_last();
if (is_array($error) && isset($error['type']) == false)
return;
switch($error['type'])
{
You can’t perform that action at this time.