Skip to content

Instantly share code, notes, and snippets.

Henning Horn henninghorn

Block or report user

Report or block henninghorn

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
henninghorn / aggregate-listener.php
Last active Oct 25, 2018 — forked from Ocramius/.gitignore
`Zend\EventManager` examples
View aggregate-listener.php
use Zend\EventManager\AbstractListenerAggregate;
use Zend\EventManager\EventManager;
use Zend\EventManager\EventManagerAwareTrait;
use Zend\EventManager\EventManagerInterface;
require_once __DIR__ . '/vendor/autoload.php';
// Abstract aggregate listeners are a formalized way of writing a listener in a (testable) class
View app.docker
FROM php:7.1-fpm
RUN apt-get update && apt-get install -y libmcrypt-dev mysql-client \
&& docker-php-ext-install mcrypt pdo_mysql
WORKDIR /var/www

Keybase proof

I hereby claim:

  • I am henninghorn on github.
  • I am henninghorn ( on keybase.
  • I have a public key whose fingerprint is E90A 9C5A 3735 08DE 297B 3048 8149 14D1 0D4D 36EE

To claim this, I am signing this object:

henninghorn / Nordnet.php
Created Mar 24, 2012
Prints out instruments in C20
View Nordnet.php
class Nordnet {
public $base_url;
public function __construct($username, $password, $service = 'NEXTAPI', $base_url = '', $api_version = '1')
// Step 1: First Base64-encode the username, password and timestamp (UNIX timestamp in milliseconds) and combine them with the character ‘:’.
$login_string = base64_encode($username) . ':' . base64_encode($password) . ':' . base64_encode(microtime());
henninghorn / auth.php
Created Feb 28, 2012
Laravel 3 Auth Controller
View auth.php
class Auth_Controller extends Base_Controller {
public $restful = true;
public function __construct() {
$this->filter( 'before', 'guest' )->except( array( 'logout', 'validate' ) );
// Note: We may not always require CSRF on login for system based logins so ignore it here.
$this->filter( 'before', 'csrf' )->on( 'post' )->except( array( 'login' ) );
You can’t perform that action at this time.