This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
# | |
# Quicksilver configuration file | |
# | |
# Requirements: | |
# - Terminus Quicksilver plugin: https://github.com/pantheon-systems/terminus-quicksilver-plugin) | |
# | |
# Copy to $HOME/.quicksilver/quicksilver.yml | |
# | |
# To create your own repository with installable examples: | |
# |
<?php | |
add_filter( 'comments_open', '__return_false' ); | |
add_action( 'admin_menu', function(){ | |
global $menu; | |
// Remove Comments | |
if ( isset( $menu[25] ) ) { | |
unset( $menu[25] ); | |
} |
<?php | |
add_action( 'admin_bar_menu', function( $wp_admin_bar ) { | |
$screen = get_current_screen(); | |
if ( is_a( $screen, 'WP_Screen' ) ) { | |
$wp_admin_bar->add_node( [ | |
'id' => 'screen_id', | |
'title' => sprintf( __( 'Screen ID: <kbd style="font-family: monospace; font-weight: 900;">%s</kbd>' ), esc_html( $screen->id ) ), | |
] ); |
<?php | |
namespace DeliciousBrains\Admin; | |
use DeliciousBrains\DBI; | |
class ACF { | |
public function init() { | |
add_filter( 'acf/settings/save_json', array( $this, 'get_local_json_path' ) ); |
#!/usr/bin/env bash | |
PRIMARY_LOCATION=~/Development | |
SECONDARY_LOCATION=/Volumes/Macintosh\ HD/Development | |
BROWSER= | |
CLOPS= | |
VERBOSE=true | |
SHOWHELP=false | |
SCHEME=http: |
<?php | |
/** | |
* Update a specific site from 'http://' to 'https://'. | |
* | |
* Only touches the 'home' and 'siteurl' options. | |
* Depending on plugins, etc., you may need to update other options too. | |
* | |
* Run on WordPress multisite with: | |
* | |
* wp site list --field=url | xargs -I % wp eval-file http-to-https.php --url=% |
#!/usr/bin/env bash | |
set -e | |
if [ ! -d src/amazon-s3-and-cloudfront ]; then | |
echo 'This script must be run from the repository root.' | |
exit 1 | |
fi | |
for PROG in composer find sed |
If you're trying to load a private repository with Composer/Laravel, we'll need to generate a GitHub Personal Access Token (similar to OAuth token) to access the repository during a composer install
without entering credentials.
If you have used other Github packages from
{my-org}
before, you may be able to skip this step.
Click Generate new token.
# The initial version | |
if [ ! -f .env ] | |
then | |
export $(cat .env | xargs) | |
fi | |
# My favorite from the comments. Thanks @richarddewit & others! | |
set -a && source .env && set +a |