- Create a folder on your server.
- Copy the composer.json file
- Run
composer install
- Create a file called
restart-php-fpm.php
- Set the correct email, key, server ID and php-fpm version.
- Run
php restart-php-fpm.php
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
# Set MAMP's latest PHP version | |
PHP_VERSION=$(ls /Applications/MAMP/bin/php/ | sort -n | tail -1) | |
export PATH=/Applications/MAMP/bin/php/${PHP_VERSION}/bin:$PATH | |
# Add support for MYSQL (wp db commands) | |
export PATH=/Applications/MAMP/Library/bin:$PATH |
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 | |
add_action( 'wp', function () { | |
if ( get_post_type() === 'person' ) { | |
remove_all_filters( 'the_title' ); | |
} | |
} ); |
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
.advertisement .bsaProItemInner__img { | |
background-size: contain; | |
} |
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
# HEAVILY BASED ON: https://github.com/alfg/docker-nginx-rtmp/blob/master/Dockerfile | |
ARG NGINX_VERSION=1.16.1 | |
ARG NGINX_RTMP_VERSION=1.2.1 | |
ARG FFMPEG_VERSION=4.2.2 | |
ARG IM_VERSION=7.0.10-6 | |
############################## | |
# Build the NGINX-build image. |
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
FROM ubuntu:18.04 | |
# Update and install software-properties-common (for some reason) | |
RUN apt update && apt upgrade -y && \ | |
apt-get install software-properties-common -y | |
# Add repo's (whyuuut) | |
RUN add-apt-repository ppa:nginx/stable && \ | |
add-apt-repository ppa:jonathonf/ffmpeg-4 |
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
.mphb-reserve-btn-wrapper { | |
position: relative; | |
} | |
.mphb-preloader { | |
position: absolute; | |
left: 5px; | |
top: -23px; | |
} |
Download WP-CLI
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
Test to see if it works correctly
php wp-cli.phar --info
Add extra permissions
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 | |
class Main { | |
public function __construct() { | |
$this->init(); | |
} | |
public function init() { | |
add_action( 'after_setup_theme', array( $this, 'add_image_sizes' ) ); | |
add_filter( 'image_size_names_choose', array( $this, 'show_image_sizes' ) ); | |
} |
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
# The script below is updated following a comment by RJT. | |
# If you use a different prefix, replace wp_users by the actual name of the table. | |
wp db query "ALTER TABLE wp_users ADD spam TINYINT NOT NULL DEFAULT 0;" | |
# When the spam column is missing, the ‘deleted’ column might be missing as well. | |
wp db query "ALTER TABLE wp_users ADD deleted TINYINT NOT NULL DEFAULT 0;" |