This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global-ignores = \.settings \.buildpath \.project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'Zend/Service/Abstract.php'; | |
/** | |
* | |
* | |
* @author zircote@zircote.com | |
* | |
* <code> | |
* <?php | |
* $metadata = new Zircote_Service_Ec2_Metadata; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git build.xml build.xml | |
index 0342c23..2608ddf 100644 | |
--- build.xml | |
+++ build.xml | |
@@ -26,7 +26,7 @@ | |
</target> | |
<target name="parallelTasks" | |
- description="Run the pdepend, phpmd, phpcpd, phpcs, phpdoc and phploc tasks in parallel using a maximum of 2 threads."> | |
+ description="Run the pdepend, phpmd, phpcpd, phpcs, docblox and phploc tasks in parallel using a maximum of 2 threads."> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$options = array('namespace' => 'WorkerProcess_', | |
'servers' => array(array('host' => '127.0.0.1', 'port' => 6380))); | |
/* el Jeffe */ | |
$redis = new Rediska($options); | |
while (true) { | |
$first_url = $redis->popFromListBlocking(SRC_QUEUE, 0, SRC_QUEUE); | |
if($first_url){ | |
$redis->appendToList(WORK_QUEUE, $first_url); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Api extends Zend_Http_Client | |
{ | |
/** | |
* | |
* @group Account | |
*/ | |
public function accountStatus() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* | |
* This could be a mechanism that builds acl lists from the database or file | |
* based storage. | |
* @author zircote | |
* | |
*/ | |
class Model_BugsServiceAcl | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'Zend/Acl/Assert/Interface.php'; | |
/** | |
* | |
* Assert the REMOTE_ADDR of the reqeust is from a private IP address | |
* @author zircote | |
* | |
*/ | |
class PrivateIPAssertion implements Zend_Acl_Assert_Interface | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$prowl = array( | |
'apikey' => '072a7159e...e36ebe57', | |
// 'apikey' => array('072a7159e...e36ebe57','072a7159e...e36ebe57','072a7159e...e36ebe57'), //for multi-keys | |
'priority' => Skulk_Client_Message::PRIORITY_EMERGENCY, // optional | |
'url' => 'http://www.zircote.com/admin/console', // optional url to forward the user to. | |
'event' => 'Error logging via Prowl with Zend_Log', // optional Your message header | |
// 'providerkey' => '072a7159e9e8f......e7765cd11c229e36ebe57' // optional | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'Zend/Service/Abstract.php'; | |
require_once 'Zend/Json.php'; | |
/** | |
* A PHP CometD Publisher | |
* @author zircote / Robert Allen | |
* Publishing: | |
* <code> | |
* $bayuex = new Bayuex('http://localhost:8080'); | |
* $i = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-keygen -y -f private_key1.pem > public_key1.pub |