Skip to content

Instantly share code, notes, and snippets.

View lcatlett's full-sized avatar
🍕

Lindsey Catlett lcatlett

🍕
View GitHub Profile
@lcatlett
lcatlett / route-diagnostics-report.md
Created May 9, 2025 15:20
Route Diagnostics Report for holly-hunt_live.live generated on Fri May 9 11:20:05 EDT 2025

Route Diagnostics Report for holly-hunt_live (20250509)

Executive Summary

This report analyzes routing issues in the Holly Hunt Drupal site, with a focus on UK path handling. The diagnostics reveal two failing checks (domain path configuration and path alias configuration) and two items needing verification (route cache and environment consistency). The cache backend configuration is correctly implemented and follows best practices.

Summary of Findings:

  • ⚠️ FAILING: Domain Path Configuration - Missing critical settings
  • ✅ PASSING: Cache Backend Configuration - Appropriate backends for different cache bins
  • ⚠️ NEEDS VERIFICATION: Route Cache - Exists but needs validation
<?php
/**
* Plugin Name: Fix JSON Support Detection for Action Scheduler
* Description: Fixes the JSON support detection in Action Scheduler for MariaDB on Pantheon
* Version: 1.0.0
* Author: Lindsey Catlett, Pantheon
*/
// Make sure this runs before Action Scheduler initializes
add_action('plugins_loaded', 'fix_json_support_detection', 5);
@lcatlett
lcatlett / composer.json
Created April 24, 2025 16:12 — forked from kyletaylored/composer.json
How to integrate Monolog with New Relic in Drupal 9
{
"require": {
"drupal/monolog": "^2.2",
"newrelic/monolog-enricher": "^2.0"
}
}
@lcatlett
lcatlett / composer.json
Created April 24, 2025 16:12 — forked from kyletaylored/composer.json
How to integrate Monolog with New Relic in Drupal 9
{
"require": {
"drupal/monolog": "^2.2",
"newrelic/monolog-enricher": "^2.0"
}
}
@lcatlett
lcatlett / ocp.php
Created October 3, 2024 01:58 — forked from nyufeng/ocp.php
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)#ocp #php #opcache #opcode #cache #zend #optimizerplus #optimizer+
<?php
/*
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)
Author: _ck_ (with contributions by GK, stasilok)
Version: 0.1.7
Free for any kind of use or modification, I am not responsible for anything, please share your improvements
* revision history
0.1.7 2015-09-01 regex fix for PHP7 phpinfo
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter
@lcatlett
lcatlett / README.md
Last active August 28, 2024 14:04
Enterprise Site Portfolio Deployments Scripting Library

Enterprise Many Site Deployment and Scripting Recommendations

This repository contains an example set of shell scripts that provide recommendations for Voya to execute CI / CD tasks at scale againt a large portfolio of Pantheon sites. Each script provided has inline docmentation for required functionality and additional examples of how to address common enterprise deployment challenges / requirements.

Features

  • Parallel execution of code and deployment tasks on multiple sites
  • Race condition handling for workflows, terminus commands, and git commands
  • Configuration of environment variables commonly required in enterprise deployment scripts
  • Automatic retries of failed site deployments
@lcatlett
lcatlett / 01-readme.md
Last active June 8, 2024 02:31
Enterprise CI / CD Release - Keepalive / Prime Site Portfolio

Keepalive Checks Script

This script is a wrapper to ensure that services are healthy and ready for code push and deployment tasks on Pantheon sites. It hardens the release process by adding:

  • Parallel execution of healthcheck and deployment tasks on many sites
  • Race condition handling for workflows and terminus commands
  • Automatic retry and wake of failed sites' services

Table of Contents

@lcatlett
lcatlett / call-deploy.yml
Last active May 31, 2024 21:19
Codeserver known host modificcation
name: 'Reusable: Deploy code to configurable Pantheon environment'
on:
workflow_call:
inputs:
environment:
required: true
type: string
site_id:
type: string
clone:
@lcatlett
lcatlett / collect-logz
Created May 28, 2024 14:46
Bulk Pantheon Log Collection
#!/bin/bash
# This script is used to streamline the process of collecting logs accross multiple environments and containers for a site.
# It sets up the necessary SSH configuration and keys to disable interactive prompts, then uses Terminus to collect logs from the desired site's environments.
# USAGE:./collect-logz <site> <env> where <env> is a single pantheon environment such as live or dev, or "all" to collect logs from all environments.
# EXAMPLE:./collect-logz ufc-com all will collect logs from all environments for the ufc-com site.
# EXAMPLE:./collect-logz ufc-com live will collect logs from the live environment for the ufc-com site.
# Put this script in /usr/local/bin/collect-logz and make it executable with chmod +x /usr/local/bin/collect-logz
SITE=$1
@lcatlett
lcatlett / Convert to InnoDB, Add missing PK, Dedupe PK
Last active August 8, 2023 15:24
Schema Changes For High Performance Drupal
ALTER TABLE ip2location_olson_timezone ENGINE=InnoDB;
CREATE TABLE tmp_s3 SELECT uri, filesize, timestamp, dir, version
FROM s3fs_file;
ALTER IGNORE TABLE tmp_seq ADD PRIMARY KEY (uri);
CREATE TABLE tmp_s3 SELECT uri, filesize, timestamp, dir, version
FROM s3fs_file;
ALTER IGNORE TABLE tmp_s3 ADD PRIMARY KEY (uri);