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 phpdaily/php:7.4.0-dev | |
RUN apk add --no-cache --virtual .persistent-deps libffi-dev \ | |
&& docker-php-ext-configure ffi --with-ffi \ | |
&& docker-php-ext-install ffi |
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 -y https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm | |
sudo yum install -y mysql-community-client |
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
#!/bin/sh | |
sudo yum update -y | |
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
sudo yum install -y https://rpms.remirepo.net/enterprise/remi-release-7.rpm | |
sudo yum-config-manager --setopt="remi-php72.priority=5" --enable remi-php72 | |
sudo yum install -y nginx | |
sudo systemctl enable 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
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
[Unit] | |
Description=Redis persistent key-value storage | |
After=network.target | |
[Service] | |
Type=notify | |
ExecStart=/usr/bin/redis-server /etc/redis.conf --supervised systemd --daemonize no | |
ExecStop=/usr/bin/redis-cli -p 6379 shutdown | |
ExecReload=/bin/kill -USR2 $MAINPID | |
Restart=always |
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
{ | |
/* | |
~/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
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
#!/bin/sh | |
sudo tee -a /etc/hosts << EOF | |
# Block Google Chrome auto-update | |
0.0.0.0 tools.google.com | |
EOF |
NewerOlder