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
#!/bin/sh | |
sudo yum install php-pecl-ssh2 -y |
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
version: 0.2 | |
phases: | |
install: | |
runtime-versions: | |
nodejs: 12 | |
build: | |
commands: | |
- npm install | |
- npm run build -- --mode=production |
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 php:7.4-cli | |
ARG SWOOLE_VERSION=swoole | |
RUN apt-get update -q | |
RUN apt-get install -y --no-install-recommends \ | |
libssl-dev | |
RUN docker-php-ext-install \ | |
opcache |
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
#!/bin/sh | |
sudo yum update -y | |
sudo amazon-linux-extras install -y epel | |
sudo amazon-linux-extras install -y php7.2 | |
sudo yum install -y nginx | |
sudo systemctl enable nginx | |
sudo systemctl start nginx |
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 | |
declare(strict_types=1); | |
function overload(callable ...$implementations): callable | |
{ | |
return function (...$args) use ($implementations) { | |
$error = new \LogicException('Invalid overloaded implementations'); | |
foreach ($implementations as $candidate) { | |
try { | |
return $candidate(...$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
<?php | |
interface Throwable | |
{ | |
/** | |
* Return immutable copy with causal chain extended by given root cause | |
* | |
* @return Throwable | |
*/ | |
public function chain(Throwable $cause = null): Throwable; |
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
#!/bin/sh | |
if [ -z "$1" ]; then | |
echo "Usage: $0 <command> [args...]" | |
exit | |
fi | |
trap ':' SIGINT SIGTERM | |
chmod u-x "$0" |
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
/* Hide GitHub UI controls */ | |
header, | |
.pagehead, | |
.footer, | |
.repository-content > :not(.Box), | |
.repository-content > .Box--condensed:not(#readme), | |
.Box-header { | |
display: none !important; | |
} |
NewerOlder