Skip to content

Instantly share code, notes, and snippets.

View rfay's full-sized avatar

Randy Fay rfay

View GitHub Profile
@rfay
rfay / customizations.txt
Last active October 9, 2024 14:13
ddev debug test examples
======== Output file will be in /var/folders/_d/d66tr_cj5j1dq9gjr1rftddr0000gn/T/ddev-debug-test.txt ========
======== Existing project config ========
ddev installation alternate locations:
/usr/local/bin/ddev
/opt/homebrew/bin/ddev
/usr/local/bin/ddev
@rfay
rfay / ddevcontainer.json
Created September 30, 2024 22:21
devcontainer.json
{
"name": "DDEV Devcontainer setup",
"image": "mcr.microsoft.com/devcontainers/base:latest",
"workspaceFolder": "/var/www/html",
"settings": {
"terminal.integrated.cwd": "/var/www/html"
}
}
/Users/rfay/bin/check-addons.sh
ddev/ddev-drupal-contrib: success (2024-04-26T08:38:14Z)
torenware/ddev-viteserve: failure (2024-02-05T07:23:16Z)
Scheduled test failed in torenware/ddev-viteserve at https://github.com/torenware/ddev-viteserve/actions/runs/7780870604 (2024-02-05T07:23:16Z)
ddev/ddev-browsersync: success (2024-04-26T07:11:50Z)
ddev/ddev-selenium-standalone-chrome: success (2024-04-26T07:12:25Z)
ddev/ddev-redis: success (2024-04-26T07:11:29Z)
ddev/ddev-cron: success (2024-04-26T07:15:30Z)
justafish/ddev-drupal-core-dev: failure (2024-04-26T08:28:48Z)
Scheduled test failed in justafish/ddev-drupal-core-dev at https://github.com/justafish/ddev-drupal-core-dev/actions/runs/8845384239 (2024-04-26T08:28:48Z)
@rfay
rfay / brewlink_ddev.sh
Created April 5, 2024 13:57
ddev symlinking scripts
#!/bin/bash
set -eu -o pipefail
ddev config --project-type=drupal10 --docroot=web --create-docroot
if [ ! -f web/index.php ]; then
set -x
ddev composer create drupal/recommended-project
ddev composer require drush/drush
@rfay
rfay / gist:0025f4d5cdaacee22839bf6e869c23ad
Created January 31, 2024 11:21
pimcore DDEV quickstart
#This uses the pimcore skeleton repo:
mkdir my-pimcore && cd my-pimcore
ddev composer create pimcore/skeleton
ddev config --docroot=public --create-docroot
ddev exec pimcore-install --mysql-username=db --mysql-password=db --mysql-host-socket=db --mysql-database=db --admin-password=admin --admin-username=admin --no-interaction
ddev launch
@rfay
rfay / breakit.sh
Last active November 18, 2023 00:49
breakit.sh - to try to break colima, requires `brew install ddev/ddev/ddev`
#!/bin/bash
set -eu -o pipefail
#set -x
if ! command -v ddev; then brew install ddev/ddev/ddev; hash -r; fi
export PROJDIR=~/tmp/junk
ddev poweroff
docker ps -a
mkdir -p ${PROJDIR} && cd ${PROJDIR} && ddev config --auto
i=0
@rfay
rfay / Dockerfile
Last active September 17, 2023 00:52
Experimental dockerfile to build specific patch version of php/fpm using static-php-cli
ENV STATIC_PHP_VERSION=7.4.30
RUN apt update && apt install -y build-essential
RUN mkdir -p /usr/local/src/static-php-cli && chown -R ${uid}:${gid} /usr/local/src
USER ${uid}:${gid}
RUN git clone https://github.com/crazywhalecc/static-php-cli.git /usr/local/src/static-php-cli/.
WORKDIR /usr/local/src/static-php-cli
RUN composer update
RUN chmod +x bin/spc
RUN ./bin/spc doctor --auto-fix
@rfay
rfay / diff.txt
Last active August 20, 2023 00:00
Diff between Bookworm amd64 and arm64 (amd64 on left, lots of things not in arm64)
64d63
< etc/php/5.6/mods-available/amqp.ini php/php5.6-amqp
69d67
< etc/php/5.6/mods-available/gnupg.ini php/php5.6-gnupg
76d73
< etc/php/5.6/mods-available/lz4.ini php/php5.6-lz4
91d87
< etc/php/5.6/mods-available/smbclient.ini php/php5.6-smbclient
101d96
< etc/php/5.6/mods-available/zmq.ini php/php5.6-zmq