Skip to content

Instantly share code, notes, and snippets.

Working from home

Ben Davies bendavies

Working from home
Block or report user

Report or block bendavies

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
View monolog.yaml
type: fingers_crossed
action_level: error
handler: grouped
# regex: exclude all 404 errors from the logs
- ^/
View gyp.log
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/srv/app/node_modules/contextify/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
View SymfonyCustomNormalizerBenchmark.php
namespace Ivory\Tests\Serializer\Benchmark;
use Ivory\Tests\Serializer\Benchmark\Model\Category;
use Ivory\Tests\Serializer\Benchmark\Model\Comment;
use Ivory\Tests\Serializer\Benchmark\Model\Forum;
use Ivory\Tests\Serializer\Benchmark\Model\Thread;
use Symfony\Component\Serializer\Encoder\JsonEncoder;
use Symfony\Component\Serializer\Encoder\XmlEncoder;
View Division.php
namespace App\Entity;
use ApiPlatform\Core\Annotation\ApiProperty;
use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\ORM\Mapping as ORM;
use Ramsey\Uuid\Uuid;
View CachedResourceClassResolver.php
* This file is part of the API Platform project.
* (c) Kévin Dunglas <>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
View is_array.php
namespace Foo;
$a = [];
$start = microtime(true);
for ($i = 0; $i <= 1000000000; $i++) {

Keybase proof

I hereby claim:

  • I am bendavies on github.
  • I am bendavies ( on keybase.
  • I have a public key ASArkGF0uKKkttXaSx04W9G6JuHNCPqVkNy2UyFHVBXj-go

To claim this, I am signing this object:

View reproduction.php
- "symfony/console: 3.2.4"
- "symfony/event-dispatcher: ~3.0"
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\ConsoleEvents;
bendavies / RevisionsCleanupCommand.php
Created Aug 31, 2016 — forked from soerenbernstein/RevisionsCleanupCommand.php
Revisions cleanup for SimpleThings/EntityAudit as symfony command
View RevisionsCleanupCommand.php
* Created by PhpStorm.
* User: Sören Bernstein
* Date: 15.09.2015
* Time: 12:57
namespace Redlink\CASBundle\Command;
View client.json
"operations": {
"GetMessages": {
"httpMethod": "GET",
"uri": "/messages",
"summary": "Gets a list of messages",
"responseClass": "GetMessagesOutput"
"GetMessage": {
"httpMethod": "GET",
You can’t perform that action at this time.