Skip to content

Instantly share code, notes, and snippets.

View derickr's full-sized avatar

Derick Rethans derickr

View GitHub Profile
@derickr
derickr / gist:d54b33949d69ae12553ace8af4758934
Created April 16, 2024 16:01
PHP 8.4 Release Manager Election — STV
$ php elect.php 'php_8.4_rm_*' 2 "Y Hamada" "C Buckley" "S Takamachi" "M Beccati"
Reading from:
- php_8.4_rm_1st_preference.doodle
- php_8.4_rm_2nd_preference.doodle
- php_8.4_rm_3rd_preference.doodle
- php_8.4_rm_4th_preference.doodle
Candidates (in order of ballot):
Y Hamada — C Buckley — S Takamachi — M Beccati
@derickr
derickr / zic-changes-tzdata.zi.txt
Created January 6, 2024 10:02
zic-changes-tzdata.zi.txt
America/Ensenada
--- /dev/fd/63 2024-01-06 09:58:51.284801834 +0000
+++ /dev/fd/62 2024-01-06 09:58:51.284801834 +0000
@@ -106,7 +106,7 @@
2008-10-26 09:00:00 UT ( 1225011600) = 2 [-28800 0 8 'PST' (0,0)]
2009-04-05 10:00:00 UT ( 1238925600) = 3 [-25200 1 12 'PDT' (0,0)]
2009-10-25 09:00:00 UT ( 1256461200) = 2 [-28800 0 8 'PST' (0,0)]
-2010-03-14 10:00:00 UT ( 1268560800) = 3 [-25200 1 12 'PDT' (0,0)]
+2010-01-01 08:00:00 UT ( 1262332800) = 2 [-28800 0 8 'PST' (0,0)]
@derickr
derickr / zic-changes.txt
Created January 6, 2024 09:53
zic-changes.txt
America/Goose_Bay
--- /dev/fd/63 2024-01-06 09:49:39.517737906 +0000
+++ /dev/fd/62 2024-01-06 09:49:39.517737906 +0000
@@ -164,7 +164,7 @@
2010-03-14 04:01:00 UT ( 1268539260) = 7 [-10800 1 20 'ADT' (0,0)]
2010-11-07 03:01:00 UT ( 1289098860) = 8 [-14400 0 24 'AST' (0,0)]
2011-03-13 04:01:00 UT ( 1299988860) = 7 [-10800 1 20 'ADT' (0,0)]
-2011-11-06 05:00:00 UT ( 1320555600) = 8 [-14400 0 24 'AST' (0,0)]
+2011-11-01 03:00:00 UT ( 1320116400) = 7 [-10800 1 20 'ADT' (0,0)]
@derickr
derickr / whisper-net-to-srt.php
Last active May 3, 2024 12:36
A script to create SRT subtitle files out of WhisperNet's JSON files
<?php
/**
1
00:00:03,600 --> 00:00:09,740
Hello, today we're going to have a look at how to make a flame graph, a new feature
2
00:00:09,740 --> 00:00:11,920
in Xdebug 3.3.
@derickr
derickr / PHP 8.3 Release Manager
Created April 17, 2023 13:25
PHP 8.3 Release Manager
Reading from:
- php_8.3_rm_1st_preference.doodle
- php_8.3_rm_2nd_preference.doodle
- php_8.3_rm_3rd_preference.doodle
Candidates (in order of ballot):
E Mann — C Buckley — J Zelenka
Votes:
@derickr
derickr / workers.php
Created November 23, 2022 00:33
workers.php
<?php
class Calculator
{
private int $lastResult;
static private function fib(int $n) : int
{
if ($n <= 1) {
return 1;
}
@derickr
derickr / save-code-coverage.php
Last active September 16, 2024 16:46
save-code-coverage.php
<?php
require 'vendor/autoload.php';
use SebastianBergmann\CodeCoverage\Filter;
use SebastianBergmann\CodeCoverage\Driver\Selector;
use SebastianBergmann\CodeCoverage\CodeCoverage;
use SebastianBergmann\CodeCoverage\Report\PHP as PhpReport;
use SebastianBergmann\FileIterator\Facade as FileIteratorFacade;
$filter = new Filter;
@derickr
derickr / MANIFEST-7.4.33
Created October 31, 2022 15:04
MANIFEST-7.4.33
php-7.4.33.tar.gz
SHA256 hash: 5a2337996f07c8a097e03d46263b5c98d2c8e355227756351421003bea8f463e
PGP signature:
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEWlKIB4H3VWCL+BX8kQ3rRvU+oxIFAmNftBIACgkQkQ3rRvU+
oxLSuRAAxLCfYYOQ25Q/svXyBjqylG/2zpd95PBTp0zxlVisqR6+QsYnHo5jMkqm
JIjI+aqA9XCrz7ftUIOB98JvvaDKSMkLOxYPN18yjdzf1XRDZdYzU67FwmO5XmVD
kW7u0oXE2cXl1KaNVNNWEdvD9n0TuHJIkMYZ8XiFsNVQ0YiIy2kNX8OeKkvxpHq7
VgA5wi5Y7HiS/L2JwYPgbrMn9XgzDPvg8zh9QM7fYXCGWEGSsLyIe7Ff60P+hhHY
@derickr
derickr / MANIFEST-7.4.32
Created September 28, 2022 09:18
MANIFEST-7.4.32
php-7.4.32.tar.gz
SHA256 hash: 197e3372afd69694eb6b230838305eb9e1cbe5db272e0fa3bbe0d38e329a95bc
PGP signature:
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEWlKIB4H3VWCL+BX8kQ3rRvU+oxIFAmM0EBwACgkQkQ3rRvU+
oxLbRg/+MjQ9bwaWvy+j4POIelnek+0v7s9brStUwWXPoj87Oo71K8krrXBRaqgZ
J1p6pWDzMDrDqkVRkgJhkqDIWMJpVrm0vdaN2UnBtYBc94keXyT1cQMNsFTnHsDt
qSpTl3id3KlEiME2qmyCIRF7jLLuv7RjQGO9UfPAQwDMojmakuNfauf+r2kycfhb
Ox2bD8gOOQphkiha9560DUMnWco9scD9WCZDEB412rNlqtvt1eK2meRpT3+ITnWL
@derickr
derickr / MANIFEST-7.4.31
Created September 27, 2022 13:59
MANIFEST-7.4.31
php-7.4.31.tar.gz
SHA256 hash: ad435324863b8d0e2727c22cc6f81bfd0084f9b49d54b153a9f1c48d297c9de1
PGP signature:
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEWlKIB4H3VWCL+BX8kQ3rRvU+oxIFAmMzAR0ACgkQkQ3rRvU+
oxKEMxAA1wv0Vl8VchRAtCR2Z+1LJV1mVyXsW77ExGEuNFaFiqwlUh6tVWb3WnZM
w61FpQbE4o0mC4CWwlrjAaDQXcTVI0+EoA/62949JnnCWuYravSUjheTE6W2w2Px
CUCzObFIFjLcW3lLreLmb/2HIMndNAaKeudRcFZh48M6+Dj4Xipoc1eiC7rJkcVO
sVA57Jz6ZLKsHGpoHtsVqteb4gRO1Zfcn55sd20D2+WolK90vrRkyz32WQMAqUJq