Skip to content

Instantly share code, notes, and snippets.

View mrintegrity's full-sized avatar

Alan McGinlay mrintegrity

View GitHub Profile
# poundtest.pp
node 'poundtest' {
include pound
pound::listener {
testlistener :
listen_ip => '10.10.10.10',
listen_port => '80',
listen_protocol => 'ListenHTTP',
head_require => 'Host: .*www.example.com*',
backend_ip => '10.0.100.10',
# Definition: pound::listener
#
# This class installs Pound listeners
#
# Parameters:
# - The $listen_ip to configure the ip that the listener will listen on
# - The $listen_port to configure the port that the listener will listen on
# - The $listen_protocol to configure the protocol that the listener accepts (currently http or https)
# - The $ssl_cert_path to set the location of the SSL certificate if the listen_protocol is https
# - The $head_require to set the required header to allow connections through to the backend
@mrintegrity
mrintegrity / DanskeBank.php
Created January 31, 2012 21:48 — forked from fasmide/DanskeBank.php
Danske Bank console app and php class
<?
class DanskeBank {
private $_magicKey;
private $_curlHandle;
public function __construct()
{
$this->_curlHandle = curl_init();
$data = array(
'os' => 'Android', //hmmf tried with php_uname('s') but then the service rejects logins
'model' => php_uname('m'),