-
Install xcode command line tools
xcode-select --install
-
If you are on a M1 / Apple Silicon chip, install rosetta2
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
This file contains hidden or 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
# docker | |
wget -q -O - https://get.docker.io/gpg | apt-key add - | |
echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list | |
apt-get update -qq; apt-get install -q -y --force-yes lxc-docker | |
# Add vagrant user to the docker group | |
usermod -a -G docker vagrant | |
# packer | |
apt-get install unzip | |
wget https://dl.bintray.com/mitchellh/packer/0.5.2_linux_amd64.zip |
This file contains hidden or 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
apt-get update | |
apt-get -y upgrade | |
apt-get -y install build-essential zlib1g-dev libreadline-dev libssl-dev libcurl4-openssl-dev | |
apt-get -y install git-core | |
# Install rbenv | |
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
# Add rbenv to the path: | |
echo '# rbenv setup' > /etc/profile.d/rbenv.sh |
This file contains hidden or 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
aaron | |
abacus | |
abandon | |
abandoned | |
abandoning | |
abandonment | |
abandons | |
abate | |
abatement | |
abba |
This file contains hidden or 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
{ | |
"$schema": "http://json-schema.org/schema#", | |
"type": "object", | |
"definitions": { | |
"empty": { | |
"type": "string", | |
"maxLength": 0 | |
}, | |
"intOrEmpty": { | |
"oneOf": [ |
This file contains hidden or 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
# BEGIN Cache Enabler | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
# set blog sub path | |
SetEnvIf Request_URI "^(.*)$" SUB_PATH=/app/cache/cache-enabler/ | |
# set Cache Enabler path | |
SetEnvIf Request_URI "^(.*)$" CE_PATH=$1 |
This file contains hidden or 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
curl -k -w " time_namelookup: %{time_namelookup}\n\ | |
time_connect: %{time_connect}\n\ | |
time_appconnect: %{time_appconnect}\n\ | |
time_pretransfer: %{time_pretransfer}\n\ | |
time_redirect: %{time_redirect}\n\ | |
time_starttransfer: %{time_starttransfer}\n\ | |
----------\n\ | |
time_total: %{time_total}\n" -o /dev/null -s "$URL" |
This file contains hidden or 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 | |
namespace Flynt\AcfPerformance; | |
define('ACF_STORE_AS_JSON', true); | |
add_action('acf/init', function () { | |
$types = acf()->fields->types; | |
replaceLoadValue($types); | |
if (defined('ACF_STORE_AS_JSON') && ACF_STORE_AS_JSON) { |
This file contains hidden or 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
# Apache Server Configs v3.2.1 | MIT License | |
# https://github.com/h5bp/server-configs-apache | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
# RewriteCond %{HTTP_HOST} !^$ | |
# RewriteCond %{HTTP_HOST} !^www\. [NC] | |
# # RewriteCond %{HTTPS}s ^on(s)| | |
# # RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] |
This file contains hidden or 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
# supress php errors | |
php_flag display_startup_errors off | |
php_flag display_errors off | |
php_flag html_errors off | |
# enable PHP error logging | |
php_flag log_errors on | |
php_value error_log /home/path/public_html/domain/PHP_errors.log | |
# prevent access to PHP error log | |
<Files PHP_errors.log> | |
Order allow,deny |
OlderNewer