aspe:keyoxide.org:G3IUQNQHJCPWF6FYBASNA5LKNU
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run -it --rm ubuntu | |
| apt update | |
| apt install curl build-essential autoconf libtool vim libpam-dev | |
| curl -LO https://github.com/google/google-authenticator-libpam/archive/refs/tags/1.09.tar.gz | |
| tar xvzf 1.09.tar.gz | |
| cd google-authenticator-libpam-1.09/ | |
| ./bootstrap.sh | |
| ./configure | |
| # This will break at some points. Check the script and fix it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Test; | |
| enum Locale: string | |
| { | |
| case en_GB = 'en_GB'; | |
| case de_DE = 'de_DE'; | |
| case fr_CA = 'fr_CA'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "require": { | |
| "symfony/security-bundle": "^6.3" | |
| }, | |
| "require-dev": { | |
| "phpstan/phpstan": "^1.10", | |
| "phpstan/phpstan-deprecation-rules": "^1.1" | |
| } | |
| } |
- ====== PHP RFC: Your Title Here ======
- Version: 0.1
- Date: 2023-05-03
- Author: Andreas Heigl, andreas@heigl.org
- Status: Draft
- First Published at: http://wiki.php.net/rfc/minimal_required_votes_on_rfcs
Quoting [[http://news.php.net/php.internals/71525|Rasmus]]:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Calendar buddhist | |
| Calendar chinese | |
| int(1) | |
| int(1) | |
| Calendar coptic | |
| Calendar dangi | |
| int(1) | |
| int(1) | |
| Calendar ethiopic | |
| Calendar ethiopic-amete-alem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Chinese Calendar | |
| int(1) | |
| int(0) | |
| Islamic Calendar | |
| int(8) | |
| int(0) | |
| Gregorian Calendar | |
| int(3) | |
| int(0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Org_Heigl\Holidaychecker\Holidaychecker; | |
| use Org_Heigl\Holidaychecker\HolidayIteratorFactory; | |
| $factory = new HolidayIteratorFactory(); | |
| $iterator = $factory->createIteratorFromISO3166('DE'); | |
| $checker = new Holidaychecker($iterator); | |
| $startDate = new DateTimeImmutable('2022-10-10'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jobs: | |
| patch-coverage: | |
| # Fail when untested lines are found | |
| steps: | |
| - name: "Install PHP" | |
| uses: "shivammathur/setup-php@v2" | |
| with: | |
| tools: "phive" | |
| coverage: "xdebug" | |
| - name: "Install tools" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class ClassToTestA | |
| { | |
| public function __construct(private ClockInterface $clock) {} | |
| public function do(): void | |
| { | |
| $a = $this->clock->now(); | |
| sleep(6); |
NewerOlder