Skip to content

Instantly share code, notes, and snippets.

@chrisjohnson00
chrisjohnson00 / testCharacterProgressionPayload
Created January 25, 2013 02:29
Blizzard WOW Character Progression API Payload Test
public function testCharacterProgressionPayload()
{
$payload = $this->getPayloadObject($this->urlArray['CharacterProgression']);
$this->assertInternalType('object', $payload, 'Payload is not an object');
$this->assertObjectHasAttributeOfType('progression', 'object', $payload);
$progression = $payload->progression;
$this->assertObjectHasAttributeOfType('raids', 'array', $progression);
foreach ($progression->raids as $raid)
{
$this->assertInternalType('object', $raid, 'raid is not an object');
@chrisjohnson00
chrisjohnson00 / GearmanClusterAdmin.php
Created September 14, 2014 01:50
Gearman Admin Service
<?php
namespace FTW\GuildBundle\Services;
/**
* Monitoring Gearman over telnet port 4730
*
* So the only way to monitor Gearman is via doing a telnet to port 4730. The
* current monitoring supported commands are fairly basic.
* There are plans to include more set of commands in the next release.
@chrisjohnson00
chrisjohnson00 / notes
Created February 23, 2015 16:50
compiling s3fs on ubuntu
#install s3fs
apt-get install -y git libxml2-dev libcurl4-openssl-dev gcc g++ pkg-config openssl autotools-dev automake libfuse-dev make unzip
cd /home/ubuntu/
wget https://github.com/s3fs-fuse/s3fs-fuse/archive/v1.78.zip
unzip v1.78.zip
mv s3fs-fuse-1.78/ s3fs-fuse
#git clone git://github.com/s3fs-fuse/s3fs-fuse.git
cd /home/ubuntu/s3fs-fuse
./autogen.sh