Skip to content

Instantly share code, notes, and snippets.

View rfay's full-sized avatar

Randy Fay rfay

View GitHub Profile
@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 │
@rfay
rfay / Dockerfile
Last active March 12, 2023 16:50
Simple docker-compose.yaml + Dockerfile with build stage; Put these in a directory and `docker-compose build` in this directory will leave untagged "none" image
FROM debian
RUN ls
@rfay
rfay / convert-old-db.sh
Created August 18, 2022 23:20
Convert a pre-v1.19.0 in-volume database marker to current usage
#!/bin/bash
# convert the marker on an old pre-ddev v1.19 database to current usage
# See issue at https://github.com/drud/ddev/issues/4129
# First argument should be the project name
# Second argument is the correct value you want, for example,
# mariadb_10.2 or mysql_8.0
# Example: bash convert-old-db.sh fe-kuerschnersmart mariadb_10.2
if [ $# != 2 ]; then
@rfay
rfay / nginx-site.conf
Created August 21, 2022 14:13
Custom nginx-site.conf to redirect http to https
# ddev drupal7 config
# See https://ddev.readthedocs.io/en/stable/users/extend/customization-extendibility/#providing-custom-nginx-configuration
server {
listen 80 default_server;
listen 443 ssl default_server;
root /var/www/html/docroot;
ssl_certificate /etc/ssl/certs/master.crt;
@rfay
rfay / nginx-site.conf
Last active June 30, 2022 19:49
Put drupal in a subdirectory - ddev + nginx
# ddev drupal9 config
server {
listen 80 default_server;
listen 443 ssl default_server;
root /var/www/html/maresmuseum/web;
ssl_certificate /etc/ssl/certs/master.crt;
ssl_certificate_key /etc/ssl/certs/master.key;
@rfay
rfay / failure.txt
Created May 10, 2022 22:25
Failure installing dd-ext:0.5.2
PS C:\WINDOWS\system32> docker extension install slimdotai/dd-ext:0.5.2
Extensions can install binaries, invoke commands and access files on your machine.
Are you sure you want to continue? [y/N] y
Installing new extension "slimdotai/dd-ext:0.5.2"
Installing service in Desktop VM...
Setting additional compose attributes
VM service started
executing 'docker cp d38acd41dae136949c71353d021d98aa6dbb801f6f67579b87f798746097f542:/codi.svg C:\Users\randy\AppData\Roaming\Docker\extensions\slimdotai_dd-ext\codi.svg' : exit status 1:
Error response from daemon: i/o timeout
Removing extension slimdotai/dd-ext:0.5.2...
@rfay
rfay / Dockerfile
Created March 16, 2022 00:55
Updated healthcheck.sh and other files for mailhog with basic auth
ARG BASE_IMAGE
FROM $BASE_IMAGE
ADD mailhog-auth.txt /etc
ADD mailhog.conf /etc/supervisor/conf.d
ADD healthcheck.sh /
@rfay
rfay / gist:1398086
Created November 27, 2011 20:20
My nginx rewrite
server {
listen 80;
#server_name ~^($<domain>.*)\.l\/.*$;
server_name ~^(www\.)?(?<domain>.+)\.(l|bigsony|b)$;
#gzip off;
root /home/rfay/workspace/$domain;
fastcgi_read_timeout 1200;
fastcgi_send_timeout 1200;
client_max_body_size 128m;
@rfay
rfay / Dockerfile
Created May 10, 2022 01:08
DDEV: Build xdebug from scratch
ARG BASE_IMAGE
FROM $BASE_IMAGE
ENV PHP_TAG=7.4.29
# May want to install php7.4-dev to find out config arguments with `php-config`
#RUN git clone https://github.com/php/php-src.git && cd php-src && git checkout php-$PHP_TAG && ./buildconf --force
#RUN ./configure --includedir=/usr/include --mandir=/usr/share/man --infodir=/usr/share/info --disable-option-checking --disable-silent-rules --libdir=/usr/lib/x86_64-linux-gnu --libexecdir=/usr/lib/x86_64-linux-gnu --disable-maintainer-mode --disable-dependency-tracking --prefix=/usr --enable-cli --disable-cgi --disable-phpdbg --with-config-file-path=/etc/php/7.4/cli --with-config-file-scan-dir=/etc/php/7.4/cli/conf.d --build=x86_64-linux-gnu --host=x86_64-linux-gnu --config-cache --cache-file=/build/php7.4-7.4.29/config.cache --libdir=${prefix}/lib/php --libexecdir=${prefix}/lib/php --datadir=${prefix}/share/php/7.4 --program-suffix=7.4 --sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man --disable-all --disable-debug --disable-rpath --disable-static --wi