Skip to content

Instantly share code, notes, and snippets.

View piwi91's full-sized avatar

Pim Widdershoven piwi91

View GitHub Profile
2019-08-15T10:42:55.584+0200 [DEBUG] plugin.terraform-provider-openstack_v1.21.1_x4: 2019/08/15 10:42:55 [DEBUG] Waiting for member 829bb988-564c-4e88-bc8b-bff953d5ba86 to become ACTIVE.
2019-08-15T10:42:55.584+0200 [DEBUG] plugin.terraform-provider-openstack_v1.21.1_x4: 2019/08/15 10:42:55 [DEBUG] OpenStack Request URL: GET https://network.openstack.cloudvps.com/v2.0/lbaas/listeners/e574e8f3-105a-427e-aad8-591d4f7362e3
2019-08-15T10:42:55.584+0200 [DEBUG] plugin.terraform-provider-openstack_v1.21.1_x4: 2019/08/15 10:42:55 [DEBUG] OpenStack Request Headers:
2019-08-15T10:42:55.584+0200 [DEBUG] plugin.terraform-provider-openstack_v1.21.1_x4: Accept: application/json
2019-08-15T10:42:55.584+0200 [DEBUG] plugin.terraform-provider-openstack_v1.21.1_x4: User-Agent: Terraform/0.12.2 gophercloud/2.0.0
2019-08-15T10:42:55.584+0200 [DEBUG] plugin.terraform-provider-openstack_v1.21.1_x4: X-Auth-Token: ***
2019-08-15T10:42:55.747+0200 [DEBUG] plugin.terraform-provider-openstack_v1.21.1_x4: 2019/08/15 10:42:55 [DEBUG] Op
### Keybase proof
I hereby claim:
* I am piwi91 on github.
* I am piwi91 (https://keybase.io/piwi91) on keybase.
* I have a public key whose fingerprint is 84EB 359A 75C3 AC9C FEF9 4D59 93CB F768 190A 780A
To claim this, I am signing this object:
Verifying that +piwi91 is my blockchain ID. https://onename.com/piwi91
@piwi91
piwi91 / LocaleListener.php
Created September 25, 2015 13:33
Symfony2 set locale from user profile setting
<?php
namespace AppBundle\EventListener;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
use Symfony\Component\HttpKernel\KernelEvents;
class LocaleListener implements EventSubscriberInterface
{
private $defaultLocale;
public function __construct($defaultLocale = 'en')
{
<?php
interface WebserviceInterface
{
public function getFoo();
}
class Webservice implements WebserviceInterface
{
public function getFoo()
@piwi91
piwi91 / KernelAndDatabaseAwareTest.php
Created September 14, 2015 10:44
KernelAndDatabaseAwareTest Symfony2 Doctrine
<?php
namespace Company\Core\Tests;
use Doctrine\ORM\Tools\SchemaTool;
/**
* Test case class helpful with Entity tests requiring the database interaction.
* For regular entity tests it's better to extend standard \PHPUnit_Framework_TestCase instead.
*/
<?php
class ChartA {
public function getData()
{
/** @var $array array */
$array = $this->getStuffFromStorage();
// Remove null valuse
@piwi91
piwi91 / ExactOnlineApi - API.php
Created April 11, 2014 12:51
ExactOnline PHP API
<?php
/**
*
* This file contains a class which can be used to connect with the Exact Online API
*/
namespace ExactOnlineApi;
use \ExactOnlineApi\ApiException;