Skip to content

Instantly share code, notes, and snippets.

View StanAngeloff's full-sized avatar

Stan Angeloff StanAngeloff

View GitHub Profile
@StanAngeloff
StanAngeloff / gist:dde22df7b55dbbc7d2c4
Created August 21, 2014 11:00
Sage Pay Simulator 404
➜ curl -i -X GET https://test.sagepay.com/simulator/
HTTP/1.1 404 Not Found
Content-Length: 0
Date: Thu, 21 Aug 2014 10:59:59 GMT
Server: undisclosed
Set-Cookie: NSC_WJQ-uftu.tbhfqbz.dpn-Tubhjoh=ffffffff09ebb88e45525d5f4f58455e445a4a423660;path=/;secure;httponly
@StanAngeloff
StanAngeloff / main.yml
Last active August 29, 2015 14:05
Ansible dictionary merge, can be used to allow inventory/hosts/groups to override defaults
---
- name: Create PgBouncer configuration
sudo: true
ini_file: >
backup=yes
dest=/etc/pgbouncer/pgbouncer.ini
section=pgbouncer
option="{{ item.key }}"
value="{{ item.value }}"
state="{% if item.value != None %}present{% else %}absent{% endif %}"
@StanAngeloff
StanAngeloff / postgresql.feature
Created August 5, 2014 15:43
Feature: PostgreSQL infrastructure integration.
@databases @postgresql
Feature: PostgreSQL infrastructure integration.
In order to have an efficient PostgreSQL server
As a DevOps Engineer
I want to ensure the infrastructure is set up for heavy-loads
Background:
Given the database connection "default" is in use
Scenario: The server must handle thousands of connections
diff --git a/modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java b/modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java
index 621bf00..7dd41e2 100644
see https://github.com/apache/axis2-java/commit/ab6072ef1ecb78e4811e66eae7b6d4e93c765d5b
see https://github.com/apache/axis2-java/commit/b00f147d9e39395b84404b6434e2f63c169f10c8
--- modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java
+++ modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java
@@ -425,22 +425,11 @@ public class AxisConfiguration extends AxisDescription {
boolean isClientSide = false;
while (services.hasNext()) {
AxisService axisService = (AxisService) services.next();
@StanAngeloff
StanAngeloff / parseuri.js
Created July 10, 2014 09:03
parseuri.js
// parseUri 1.2.2
// (c) Steven Levithan <stevenlevithan.com>
// MIT License
function parseUri (str) {
var o = parseUri.options,
m = o.parser[o.strictMode ? "strict" : "loose"].exec(str),
uri = {},
i = 14;
<?php
class Klass
{
# {{{ LoggerAwareInterface
/**
* {@inheritdoc}
*/
public function setLogger(LoggerInterface $logger)
@StanAngeloff
StanAngeloff / ArrayOfTextType.php
Created May 19, 2014 07:04
A quick & dirty Doctrine DBAL type for PostgreSQL text[] column.
<?php
/**
* (c) PSP UK Group Ltd. <hello@psp-group.co.uk>
*
* For the full copyright and license information,
* please view the LICENSE file that was distributed with this source code.
*/
namespace Psp\Components\DoctrineTypes\DBAL\Types;
@StanAngeloff
StanAngeloff / bpelunit.xml
Created May 18, 2014 12:05
BPELUnit Date arithmetic
<unit:condition>
<unit:template><![CDATA[(
## Since XPath 1.0 does not support date manipulation functions,
## we rely on Velocity's DateTool to perform the arithmetic involved.
##
## The substring(..) calls build a number from an ISO 8601 string.
## The resulting number is subtracted from the current date/time built using Velocity.
##
## The result of the operation is the duration between the two dates, in seconds.
(

Keybase proof

I hereby claim:

  • I am stanangeloff on github.
  • I am stanangeloff (https://keybase.io/stanangeloff) on keybase.
  • I have a public key whose fingerprint is 6E24 CA2D 687B 7A61 7F6C 1282 00C4 4212 595E A753

To claim this, I am signing this object:

<?php
/**
* (c) PSP UK Group Ltd. <hello@psp-group.co.uk>
*
* For the full copyright and license information,
* please view the LICENSE file that was distributed with this source code.
*/
namespace Psp\Query\Aggregate;