Skip to content

Instantly share code, notes, and snippets.

View rfay's full-sized avatar

Randy Fay rfay

View GitHub Profile
@rfay
rfay / brewlink_ddev.sh
Created April 5, 2024 13:57
ddev symlinking scripts
@rfay
rfay / breakcompose.sh
Last active February 27, 2024 02:24
breakcompose.sh demonstrate https://github.com/ddev/ddev/pull/5893
#!/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
@rfay
rfay / Dockerfile
Last active April 25, 2023 22:00
Experimental gotenberg
FROM gotenberg/gotenberg
# CAROOT for mkcert to use, has the CA config
ENV CAROOT=/mnt/ddev-global-cache/mkcert
# If used on mac M1, the target platform will need to be adjustable
ARG TARGETPLATFORM=linux/arm64
USER root
RUN apt update && apt install -y inetutils-ping less procps sudo
@rfay
rfay / sponsors.md
Created April 17, 2023 21:46
github.com/ddev sponsorship profile

DDEV thrives on the collective strength of our incredible community. Your ideas, issues, PRs, and support play an invaluable role in driving the project forward. While these contributions are essential, financial support also plays a crucial part in ensuring DDEV's long-term sustainability.

Sponsorship funds are used to:

  • 10% go to all the wonderful upstream projects DDEV depends on
  • Compensate contributors for their work on documentation, feature development, and maintenance (Note: rfay is sponsored by Platform.sh and does not receive funds personally)
  • Pay for infrastructure needs, like testing resources.
  • Pay for software and equipment needed.

Details about the governance and financial goals are available in this issue and in DDEV Advisory Group minutes.

@rfay
rfay / ddev-get-list-all.txt
Created April 17, 2023 20:35
Output of ddev get --list --all
`ddev get --list --all`
┌────────────────────────────────────────┬────────────────────────────────────────────────────┐
│ ADD-ON │ DESCRIPTION │
├────────────────────────────────────────┼────────────────────────────────────────────────────┤
│ a11ywatch/ddev-a11ywatch │ A11yWatch ddev addon │
├────────────────────────────────────────┼────────────────────────────────────────────────────┤
│ bserem/ddev-typesense │ WIP: Typesense addon for DDEV │
├────────────────────────────────────────┼────────────────────────────────────────────────────┤
│ claudiu-cristea/ddev-virtuoso │ Virtuoso triplestore installation for DDEV │