sudo ./sockdump.py --format string --output dump.txt ~/.phpbrew/php/php-7.4.5/var/run/php-fpm.sock
This file contains 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
from abc import ABC, abstractmethod | |
class Operation(ABC): | |
@abstractmethod | |
def apply(self, color): | |
pass | |
@abstractmethod | |
def __str__(self): |
This file contains 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 Doctrine\DBAL\Connection; | |
use Doctrine\DBAL\Driver as DriverInterface; | |
use Doctrine\DBAL\Driver\API\ExceptionConverter; | |
use Doctrine\DBAL\Driver\PDO\Connection as PDOConnection; | |
use Doctrine\DBAL\Platforms\AbstractPlatform; | |
class Driver implements DriverInterface | |
{ |
This file contains 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 Doctrine\DBAL\Connection; | |
use Doctrine\DBAL\ExpandArrayParameters; | |
use Doctrine\DBAL\ParameterType; | |
use Doctrine\DBAL\SQL\Parser; | |
use Doctrine\DBAL\SQLParserUtils; | |
require __DIR__ . '/vendor/autoload.php'; |
This file contains 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
#!/usr/bin/env bash | |
set -eu | |
if [ $# -ne 1 ]; then | |
echo "Usage: `basename $0` <pull>"; | |
exit 1; | |
fi | |
PULL="$1" |
This file contains 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
/vendor |
This file contains 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
/example.phar | |
/vendor |
This file contains 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
#!/usr/bin/env bash | |
set -euo pipefail | |
function __get_missing_keys { | |
php -- "$@" << 'EOF' | |
<?php | |
$args = $GLOBALS['argv']; | |
array_shift($args); |
This file contains 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
#!/usr/bin/env bash | |
set -eu | |
if [ $# -ne 2 ]; then | |
echo "Usage: `basename $0` <pull> <branch>"; | |
exit 1; | |
fi | |
PULL="$1" |
This file contains 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 Sorter | |
{ | |
private $callback; | |
public function __construct(array $orderBy) | |
{ | |
$functions = []; |
NewerOlder