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
unsetopt multios | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxCxDxBxegedabagacad | |
export PROMPT='%F{cyan}%n%f@%F{green}%m:%f%B%F{yellow}%0~%f%b%(!.#.$) ' | |
autoload -U select-word-style && select-word-style bash | |
autoload -Uz +X compinit && compinit | |
autoload -Uz +X bashcompinit && bashcompinit |
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
net.inet.tcp.keepidle=20000 | |
net.inet.tcp.keepintvl=20000 | |
net.inet.tcp.keepinit=20000 | |
net.inet.tcp.always_keepalive=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
{ | |
/* | |
~/Library/KeyBindings/DefaultKeyBinding.dict | |
*/ | |
// Home/End Keys | |
"\UF729" = "moveToBeginningOfLine:"; // Home | |
"\UF72B" = "moveToEndOfLine:"; // End | |
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; // Shift + Home | |
"$\UF72B" = "moveToEndOfLineAndModifySelection:"; // Shift + End |
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
const aws = require('aws-sdk'); | |
const codepipeline = new aws.CodePipeline(); | |
const cloudfront = new aws.CloudFront(); | |
exports.handler = async (event, context) => { | |
let job = event['CodePipeline.job']; | |
let config = job.data.actionConfiguration.configuration.UserParameters; | |
try { | |
let params = JSON.parse(config); | |
if (!params || !params.distributionId) { |
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 | |
# Uninstall ImageMagic library and imagick PHP extension using it (installed previously) | |
yum remove -y php-pecl-imagick ImageMagick | |
# Install libraries for JPG, PNG, GIF, WebP, and TIFF image formats | |
yum install -y libpng-devel libjpeg-devel openjpeg2-devel libtiff-devel libwebp-devel giflib-devel | |
# Install latest ImageMagick library compiled from downloaded sources | |
yum install -y gcc |
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
<?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); |
NewerOlder