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
| (wp|drush) eval '$cachetool=sys_get_temp_dir()."/cachetool.phar";$old="https://gordalina.github.io/cachetool/downloads/cachetool-3.2.2.phar";$new="https://github.com/gordalina/cachetool/releases/download/8.5.0/cachetool.phar";$url=(version_compare(phpversion(), "8") < 0) ? $old : $new;file_put_contents($cachetool, file_get_contents($url));chmod($cachetool, 0755);echo shell_exec("php $cachetool opcache:status --fcgi=/shared-run/php-fpm.sock");unlink($cachetool);' |
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
| name: example | |
| recipe: pantheon | |
| config: | |
| framework: drupal8 | |
| site: example | |
| id: <SITE_UUID> | |
| xdebug: true | |
| php: 8.1 | |
| index: false | |
| edge: false |
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
| #!/bin/bash -e | |
| # ____ _ ______ | |
| # | __ )| |_ _ ___ / / ___|_ __ ___ ___ _ __ | |
| # | _ \| | | | |/ _ \ / / | _| '__/ _ \/ _ \ '_ \ | |
| # | |_) | | |_| | __// /| |_| | | | __/ __/ | | | | |
| # |____/|_|\__,_|\___/_/ \____|_| \___|\___|_| |_| | |
| # | |
| # Blue / Green deployment script for Pantheon sites using Terminus. | |
| # |
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
| { | |
| "require": { | |
| "drupal/monolog": "^2.2", | |
| "newrelic/monolog-enricher": "^2.0" | |
| } | |
| } |
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
| #!/bin/bash | |
| # Example | |
| # ./terminus-org-primary-domain.sh <ORG_ID> | |
| # Exit on error | |
| set -e | |
| ORG_ID=$1 | |
| TEMP_FILE=$(echo "/tmp/$ORG_ID-primary-domains.csv") |
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 | |
| /** | |
| * @file | |
| * Contains \Project\composer\ComposerPrivateAuth. | |
| */ | |
| namespace Project\composer; | |
| use Composer\Script\Event; |
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 | |
| $myFile = new SplFileObject("data.txt"); | |
| $ips = []; | |
| $count=0; | |
| while (!$myFile->eof()) { | |
| $ip = trim($myFile->fgets()); | |
| // Skip if IPv6 |
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 | |
| /* | |
| Plugin Name: WPML CLI | |
| Plugin URI: https://pantheon.io | |
| Description: WPML CLI demo commands | |
| Author: Kyle Taylor | |
| Version: 1.0.0 | |
| Author URI: https://github.com/kyletaylored | |
| */ |
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 | |
| /* | |
| Plugin Name: WDS Hello World | |
| Plugin URI: https://webdevstudios.com/ | |
| Description: Teaching the basics of WP-CLI | |
| Author: Web Dev Studios | |
| Version: 1.0.0 | |
| Author URI: https://webdevstudios.com/ | |
| */ | |
| class WDS_CLI { |
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
| # Ignore asset build path in theme | |
| # -------------------------------- | |
| /web/themes/custom/radix_subtheme/build/ |