Skip to content

Instantly share code, notes, and snippets.

╰─$ ddev debug test 1 ↵
Running bash [-c /var/folders/td/m2shfpr11t53mr_bsyrrlpdw0000gq/T/test_ddev.sh]
======= Existing project config =========
These config files were loaded for project gsb-d9-1: [/Users/gmercer/Desktop/ddev/locals/gsb-d9-1/public-website/.ddev/config.yaml]
name: gsb-d9-1
type: drupal9
docroot: web
php_version: 8.0
webserver_type: nginx-fpm
webimage: ddev/ddev-webserver:v1.22.3
@gregmercer
gregmercer / elementor-permission-315.patch
Created September 7, 2023 15:18
Patch for Elementor 3.15
diff --git a/modules/system-info/reporters/server.php b/modules/system-info/reporters/server.php
index 1be5b890b..6f8d85369 100644
--- a/modules/system-info/reporters/server.php
+++ b/modules/system-info/reporters/server.php
@@ -318,7 +318,7 @@ class Server extends Base {
public function get_write_permissions() : array {
$paths_to_check = [
static::KEY_PATH_WP_ROOT_DIR => $this->get_system_path( static::KEY_PATH_WP_ROOT_DIR ),
- static::KEY_PATH_HTACCESS_FILE => $this->get_system_path( static::KEY_PATH_HTACCESS_FILE ),
+ //static::KEY_PATH_HTACCESS_FILE => $this->get_system_path( static::KEY_PATH_HTACCESS_FILE ),
╭─ ~/Desktop/ddev/locals/gsb-d9-2/public-website (develop ●)
╰─$ ddev debug test 255 ↵
Running bash [-c /var/folders/td/m2shfpr11t53mr_bsyrrlpdw0000gq/T/test_ddev.sh]
OS Information: Darwin GSB-VK4NXGL4H5 21.6.0 Darwin Kernel Version 21.6.0: Sat Jun 18 17:07:22 PDT 2022; root:xnu-8020.140.41~1/RELEASE_ARM64_T6000 arm64
ProductName: macOS
ProductVersion: 12.5
BuildVersion: 21G72
User information: uid=503(gmercer) gid=20(staff) groups=20(staff),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),33(_appstore),100(_lpoperator),204(_developer),250(_analyticsusers),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh),400(com.apple.access_remote_ae),702(com.apple.sharepoint.group.2),701(com.apple.sharepoint.group.1)
DDEV version: ITEM VALUE
@gregmercer
gregmercer / simplesamlphp-acquia
Created October 11, 2019 16:44
Patch file for simplesamlphp to allow you to add specific configuration per acquia environment.
diff --git a/config/authsources.php b/config/authsources.php
index 0d8da0e..3aa71c7 100644
--- a/config/authsources.php
+++ b/config/authsources.php
@@ -318,3 +318,12 @@ $config = [
],
*/
];
+
+// Add the GSB specific configuration.
@gregmercer
gregmercer / Remove trailing whitespace
Created July 19, 2019 18:29
Remove trailing whitespace
find . -type f -name '*.rb' -exec sed -i '' 's/[[:space:]]*$//' {} \+
Install Lando
On Mac run the following command:
brew cask install lando
Installing Drupal8
0. start with an empty directory
1. lando init
@gregmercer
gregmercer / DiskUsageDirectoriesSorted
Created March 4, 2019 22:03
Disk usage, per directory, sorted by MB size
du --block-size=MiB --max-depth=1 | sort -rn
@gregmercer
gregmercer / apply-patch-notes.txt
Last active March 22, 2019 18:13
apply patches
two methods
------------------------
git apply --ignore-space-change --ignore-whitespace mychanges.patch
patch -p1 < example.patch
also use these git configs
------------------------------
git config --global core.whitespace trailing-space,space-before-tab
git config --global apply.whitespace fix
@gregmercer
gregmercer / aws_device_farm_web_app.js
Last active February 17, 2019 17:32
Testing Web App AWS Web Farm Appium Nodejs
// https://aws.amazon.com/blogs/mobile/testing-mobile-apps-across-hundreds-of-real-devices-with-appium-node-js-and-aws-device-farm/
var expect = require('chai').expect;
var desiredCaps = {
// The generated session will be visible to you only.
sessionName: 'Automation test session',
sessionDescription: '',
deviceOrientation: 'portrait',
@gregmercer
gregmercer / D8 - Dependency Injection - Controllers
Created January 16, 2019 18:32
D8 - Dependency Injection - Controllers Example
D8 - Dependency Injection - Controllers
Key ContainerInterface method - create()
public static function create(ContainerInterface $container)
and use of $container->get()
...
lightning-8/modules/custom/basic/src/Controller/BasicController.php