Skip to content

Instantly share code, notes, and snippets.

Robert Allen zircote

Block or report user

Report or block zircote

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@zircote
zircote / memcached_cache_config_example.xml
Created Oct 24, 2010
How to enable Memcached caching with eve-lib
View memcached_cache_config_example.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<Api>
<userID>000000</userID>
<apiKey>7E87B3A4DC214E08A35B8722C844AC40CD872423692A4E85982D45F640EC5A3F</apiKey>
<characterID>000000000</characterID>
</Api>
<Scope>corp</Scope>
<Cache>
<backend>
View gist:804353
string cUrl = "https://{CVAccountName}.cloudvox.com/api/v1/applications/{CVAppID}/sms";
HttpWebRequest webClient = (HttpWebRequest) WebRequest.Create(cUrl);
// *** Send any POST data
string postData = "to={to}&from={CVPhoneNumber}&message={message}";
webClient.Method="POST";
byte [] postBuffer = System.Text.Encoding.GetEncoding(1252).GetBytes(postData);
webClient.ContentLength = postBuffer.Length;
View Notification.xml
<?xml version='1.0' encoding='UTF-8'?>
<eveapi version="2">
<currentTime>2011-01-22 13:24:07</currentTime>
<result>
<rowset name="notifications" key="notificationID" columns="notificationID">
<row notificationID="331337318"><![CDATA[applicationText: ''
charID: 334795251
corpID: 503239300
]]></row>
</rowset>
@zircote
zircote / phpcs.xml
Created May 10, 2011
a PHP_CodeSniffer ruleset for Zend Code Standards
View phpcs.xml
<?xml version="1.0"?>
<ruleset name="Zend Standard">
<description>A custom coding standard</description>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/data/*</exclude-pattern>
<exclude-pattern>*/.svn/*</exclude-pattern>
<exclude-pattern>*.js</exclude-pattern>
<exclude-pattern>*.css</exclude-pattern>
<rule ref="Zend" />
</ruleset>
@zircote
zircote / phpcs-install.sh
Created May 10, 2011
install PHP_CodeSniffer
View phpcs-install.sh
sudo pear upgrade pear
sudo pear –all-deps install PHP_CodeSniffer
@zircote
zircote / reports.txt
Created May 10, 2011
phpcs report types
View reports.txt
phpcs --standard=tests/build/phpcs.xml --report=summary .
PHP CODE SNIFFER REPORT SUMMARY
--------------------------------------------------------------------------------
FILE ERRORS WARNINGS
--------------------------------------------------------------------------------
/usr/local/zend/apache2/htdocs/project/application/Bootstrap.php 1 4
...2/htdocs/Project/application/controllers/ActivityController.php 3 1
...
View redis-status.php
#!/usr/bin/env php
<?php
/**
*
* Result string for parsing
* @var string
*/
$string = null;
/**
*
View meteor-status.php
#!/usr/bin/env php
<?php
/**
*
* Result string for parsing
* @var string
*/
$string = null;
/**
*
@zircote
zircote / build-dirs.sh
Created May 13, 2011
A project is born...
View build-dirs.sh
# If you use Zend Studio or Eclipse PDT create a new
# `PHP Project` named ZfBugs in your workspace
# workspace could easily be in /usr/local/zend/apache2/htdocs
# if you utilize Zend Server the location is up to you
cd ~/${Workspace}
zf create project ZendDb
# create the build structure, build.xml and build container
touch ZendDb/build.xml
# edit the build.xml
mkdir ZendDb/build
@zircote
zircote / Bootstrap.php
Created May 15, 2011
Creating a Zend Framework Project [2/2]
View Bootstrap.php
<?php
/**
*
* The Application Bootstrap
* @author zircote
* @package ZendDb
*
*/
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
You can’t perform that action at this time.