Skip to content

Instantly share code, notes, and snippets.

View rfay's full-sized avatar

Randy Fay rfay

View GitHub Profile
@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 / DiscordSignupTrouble.md
Last active January 18, 2022 01:48
Discord signup trouble

From James Wilson in slack

Okay. I’ve figured this out… very confusing.

  1. Had to go to discord.com first and click “login”. (Somehow my user account was logged out but there was no indication of this on the invite link… it just said “accept invite”).
  2. On providing valid email and password creds, it gave me an error message about logging in from a new location, and to “check e-mail” (when i read this last week I didn’t understand that it meant I needed to actually check my inbox for an authorization link).
  3. Clicked the auth link sent via email, which sent me to a page that let me authorize my current ip address.
  4. Logged in again with email address and password.
  5. Clicked the Ddev Discord invite link. It worked. I’m in.
@rfay
rfay / ddevtest.txt
Created December 25, 2021 16:15
ddev test junk left laying around
0B TestCmdDescribeMissingProjectDirectory1232390035
0B TestCmdDescribeMissingProjectDirectory1438195926
0B TestCmdDescribeMissingProjectDirectory1463459776
0B TestCmdDescribeMissingProjectDirectory1690941594
0B TestCmdDescribeMissingProjectDirectory1763872614
0B TestCmdDescribeMissingProjectDirectory1804645898
0B TestCmdDescribeMissingProjectDirectory2042833100
0B TestCmdDescribeMissingProjectDirectory2168283453
0B TestCmdDescribeMissingProjectDirectory2214098906
0B TestCmdDescribeMissingProjectDirectory2610779251
@rfay
rfay / get-linker-thing.markdown
Created November 24, 2021 22:42
get linker thing
@rfay
rfay / docker-compose.mercure.yaml
Created August 31, 2021 15:00
Experimental mercure for ddev
version: "3.6"
services:
mercure:
# Name of container using standard ddev convention
container_name: ddev-${DDEV_SITENAME}-mercure
labels:
com.ddev.site-name: ${DDEV_SITENAME}
com.ddev.approot: $DDEV_APPROOT
image: dunglas/mercure
@rfay
rfay / startandstop.txt
Created June 28, 2021 19:14
docker compose v2. start/stop stdout
Container ddev-d9-db Created
Container ddev-d9-dba Created
Container ddev-d9-web Created
Container ddev-d9-db Starting
Container ddev-d9-db Started
Container ddev-d9-web Starting
Container ddev-d9-dba Starting
Container ddev-d9-dba Started
Container ddev-d9-web Started
Container ddev-d9-dba Stopping
@rfay
rfay / Dockerfile
Created June 28, 2021 03:07
Possible example of adding to phpmyadmin
ARG BASE_IMAGE
FROM $BASE_IMAGE
# RUN do stuff here, you can add files from .ddev/phpmyadmin-build
@rfay
rfay / update_buildkite_windows.sh
Last active March 13, 2021 19:08
Update windows buildkite-agent
VERSION=$(curl -fsSL -H 'Accept: application/json' https://github.com/buildkite/agent/releases/latest | jq -r .tag_name | sed 's/v//g') && curl -fL https://github.com/buildkite/agent/releases/download/v${VERSION}/buildkite-agent-windows-amd64-${VERSION}.zip -o ~/Downloads/buildkite-agent.zip && cd /c/buildkite-agent/bin && unzip ~/Downloads/buildkite-agent.zip buildkite-agent.exe
@rfay
rfay / nginx-site.conf
Created November 7, 2020 01:19
ddev-local nginx-site.conf for svgz files
server {
listen 80;
listen 443 ssl;
root /var/www/html/public;
ssl_certificate /etc/ssl/certs/master.crt;
ssl_certificate_key /etc/ssl/certs/master.key;
@rfay
rfay / hostenv
Created September 3, 2020 12:46
ddev environment variable custom commands (work as global or project commands)
#!/bin/bash
## Description: show host environment variables like DDEV
## Usage: hostenv
## Example: "ddev hostenv"
set | grep DDEV