I hereby claim:
- I am Great-Antique on github.
- I am greatantique (https://keybase.io/greatantique) on keybase.
- I have a public key whose fingerprint is 0711 7D9D 9289 7DF3 7778 36E3 6EE1 544F 5615 4137
To claim this, I am signing this object:
| #!/usr/bin/env php | |
| <?php | |
| // Found: https://stackoverflow.com/a/4678125 | |
| if (!isset($argv[1])) { | |
| echo <<<EXAMPLE |
| #!/usr/bin/env bash | |
| # https://kvz.io/bash-best-practices.html | |
| set -o errexit | |
| set -o pipefail | |
| set -o nounset | |
| # DEBUG | |
| #set -o xtrace |
| #!/usr/bin/env sh | |
| temporaryPath="$(mktemp -t php.XXXXXXXXXX).ini" | |
| # Using awk to ensure that files ending without newlines do not lead to configuration error | |
| php -i \ | |
| | grep "\.ini" \ | |
| | grep -v COMPOSER_ORIGINAL_INIS \ | |
| | grep -v XDEBUG_HANDLER_SETTINGS \ | |
| | grep -o -e '\(/[a-z0-9._-]\+\)\+\.ini' \ |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| class SomeImmutableObject { | |
| private $a; | |
| private $b; | |
| public function __construct($a, $b) { | |
| $this->a = $a; | |
| $this->b = $b; |
| <?php | |
| class Controller { | |
| public function handle(Request $request) { | |
| $event = new TryToRegisterUserEvent($request->get('email')); | |
| $this->dispatcher->dispatch($event); | |
| } | |
| } |
| <?php | |
| /* | |
| * | |
| * What is the difference between Service Locator and class with 2+ methods? | |
| * | |
| */ | |
| // We have class with two methods | |
| class InvoiceService implements InvoiceServiceInterface |
| #!/usr/bin/env bash | |
| echo 'Start installing pecl_http...' | |
| test $EUID -eq 0 || { echo 'Please run script as root' && exit 1; } | |
| type pecl > /dev/null 2>&1 || ( | |
| echo 'Install PEAR and PECL...' && apt-get install -y php-pear | |
| cat <<-"PHPCODE" >> /usr/share/php/Archive/Tar.php | |
| <?php |