Skip to content

Instantly share code, notes, and snippets.

View nickygerritsen's full-sized avatar

Nicky Gerritsen nickygerritsen

View GitHub Profile
@nickygerritsen
nickygerritsen / .php-cs-fixer.php
Created March 18, 2023 19:46
Diff on judgedaemon with PHP CS Fixer
<?php
$finder = PhpCsFixer\Finder::create()
->in([
__DIR__ . '/judge',
]);
$config = new PhpCsFixer\Config();
return $config
->setRules([
'@Symfony' => true,
@nickygerritsen
nickygerritsen / laravel-framework.patch
Created February 2, 2022 07:54
laravel-framework.patch
From c55de5e654d136bc24ca126aca4f5daf87491faa Mon Sep 17 00:00:00 2001
From: Laurence Ioannou <github@theshiftexchange.com>
Date: Sat, 9 Dec 2017 14:24:58 +0000
Subject: [PATCH] fix sqs queue for 7.2 (#22374)
---
src/Illuminate/Queue/SqsQueue.php | 2 +-
tests/Queue/QueueSqsQueueTest.php | 14 ++++++++++++++
2 files changed, 15 insertions(+), 1 deletion(-)
@nickygerritsen
nickygerritsen / econtract-compare.patch
Last active January 26, 2022 15:15
econtract-compare.patch
--- a/src/Econtract/Compare/CompareServiceProvider.php 2019-11-07 11:58:03.000000000 +0100
+++ b/src/Econtract/Compare/CompareServiceProvider.php 2022-01-26 16:14:11.000000000 +0100
@@ -31,7 +31,8 @@
protected function registerProductServiceProvider()
{
- $this->app['Compare.product'] = $this->app->share(
+ $this->app->singleton(
+ 'Compare.product',
function($app)
@nickygerritsen
nickygerritsen / codesleeve-stapler.patch
Created January 26, 2022 15:11
codesleeve-stapler.patch
--- a/src/Attachment.php 2022-01-26 16:09:33.000000000 +0100
+++ b/src/Attachment.php 2022-01-26 16:10:05.000000000 +0100
@@ -385,7 +385,7 @@
*/
public function getInstanceClass()
{
- return get_class($this->instance);
+ return is_null($this->instance) ? null : get_class($this->instance);
}
@nickygerritsen
nickygerritsen / nikic-php-parser-7.4-fix.patch
Created January 26, 2022 13:33
nikic-php-parser-7.4-fix.patch
From 773de16eb8fad6747064312f408fbb1e6c5e2759 Mon Sep 17 00:00:00 2001
From: Tyson Andre <tysonandre775@hotmail.com>
Date: Sat, 13 Jul 2019 17:05:09 -0400
Subject: [PATCH] Avoid notices in php 7.4 with hexdec/base_convert
This is made to avoid notices caused by
https://wiki.php.net/rfc/base_convert_improvements
(seen with `php -d error_reporting=E_ALL vendor/bin/phpunit`)
---
@nickygerritsen
nickygerritsen / keybase.md
Created August 17, 2016 13:48
keybase.md

Keybase proof

I hereby claim:

  • I am nickygerritsen on github.
  • I am nickygerritsen (https://keybase.io/nickygerritsen) on keybase.
  • I have a public key ASDKlb15HoZ1izHpAfnsABB1d5SahQL0Oh9FfZvZypvmPwo

To claim this, I am signing this object: