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
AWSTemplateFormatVersion: '2010-09-09' | |
Description: An EC2 instance used to run a logstash batch job | |
Parameters: | |
KeyName: | |
Description: Key pair for SSH access | |
Type: AWS::EC2::KeyPair::KeyName | |
ConstraintDescription: Must be a valid EC2 key pair name | |
SecurityGroups: | |
Type: List<AWS::EC2::SecurityGroup::Id> |
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 | |
declare(strict_types=1); | |
namespace MyAuth\Middleware; | |
use \RuntimeException; | |
use Psr\Http\Message\ResponseInterface; | |
use Psr\Http\Message\ServerRequestInterface; | |
use Psr\Http\Server\MiddlewareInterface; |
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 | |
$currencyCodes = [ | |
'AED' => '784', // United Arab Emirates dirham United Arab Emirates | |
'AFN' => '971', // Afghan afghani Afghanistan | |
'ALL' => '008', // Albanian lek Albania | |
'AMD' => '051', // Armenian dram Armenia | |
'ANG' => '532', // Netherlands Antillean guilder Curaçao, Sint Maarten | |
'AOA' => '973', // Angolan kwanza Angola | |
'ARS' => '032', // Argentine peso Argentina |
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 | |
declare(strict_types=1); | |
namespace Api\Filter; | |
use Laminas\Filter\FilterInterface; | |
use League\ISO3166\ISO3166; | |
use Throwable; |
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 My_Mail_Protocol_Smtp_Auth_Login extends My_Mail_Protocol_Smtp | |
{ | |
/** | |
* LOGIN username | |
* | |
* @var string | |
*/ | |
protected $_username; |
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 | |
declare(strict_types=1); | |
namespace FunctionalTest; | |
use Doctrine\ORM\EntityManagerInterface; | |
use Doctrine\ORM\Tools\SchemaTool; | |
use PHPUnit\Framework\TestCase; | |
use Psr\Container\ContainerInterface; |
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 | |
declare(strict_types=1); | |
namespace ApiTest\InputFilter; | |
use PHPUnit\Framework\TestCase; | |
use Zend\InputFilter\InputFilter; |
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 | |
declare(strict_types=1); | |
namespace Api\Middleware; | |
use Psr\Http\Message\ResponseInterface; | |
use Psr\Http\Message\ServerRequestInterface; | |
use Psr\Http\Server\MiddlewareInterface; | |
use Psr\Http\Server\RequestHandlerInterface; |
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 | |
$client->newCustomer([ | |
'code' => 'TEST_CUSTOMER', | |
'firstName' => 'Example', | |
'lastName' => 'Customer', | |
'email' => '[email protected]', | |
'subscription' => [ | |
'planCode' => 'PLAN_CODE' | |
] | |
]); |
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
#!/usr/bin/env python | |
""" | |
Server Density Supervisord plugin. | |
Track the number of processes in each state. | |
For possible states see the docs at | |
http://supervisord.org/subprocess.html#process-states | |
""" |
NewerOlder