Skip to content

Instantly share code, notes, and snippets.

@rfay
rfay / DiscordSignupTrouble.md
Last active Jan 18, 2022
Discord signup trouble
View DiscordSignupTrouble.md

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 Dec 25, 2021
ddev test junk left laying around
View ddevtest.txt
0B TestCmdDescribeMissingProjectDirectory1232390035
0B TestCmdDescribeMissingProjectDirectory1438195926
0B TestCmdDescribeMissingProjectDirectory1463459776
0B TestCmdDescribeMissingProjectDirectory1690941594
0B TestCmdDescribeMissingProjectDirectory1763872614
0B TestCmdDescribeMissingProjectDirectory1804645898
0B TestCmdDescribeMissingProjectDirectory2042833100
0B TestCmdDescribeMissingProjectDirectory2168283453
0B TestCmdDescribeMissingProjectDirectory2214098906
0B TestCmdDescribeMissingProjectDirectory2610779251
@rfay
rfay / docker-compose.mercure.yaml
Created Aug 31, 2021
Experimental mercure for ddev
View docker-compose.mercure.yaml
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 Jun 28, 2021
docker compose v2. start/stop stdout
View startandstop.txt
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 Jun 28, 2021
Possible example of adding to phpmyadmin
View Dockerfile
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 Mar 13, 2021
Update windows buildkite-agent
View update_buildkite_windows.sh
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 Nov 7, 2020
ddev-local nginx-site.conf for svgz files
View nginx-site.conf
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 Sep 3, 2020
ddev environment variable custom commands (work as global or project commands)
View hostenv
#!/bin/bash
## Description: show host environment variables like DDEV
## Usage: hostenv
## Example: "ddev hostenv"
set | grep DDEV
@rfay
rfay / testddev.sh
Last active Dec 2, 2020
testddev.sh - simple way to see if ddev is working
View testddev.sh
#!/bin/bash
# Please run this script with "bash testddev.sh"
# You can copy and paste it (make a file named testddev.sh)
# Or use curl or wget to download the *raw* version.
# If you're on Windows (not WSL2) please run it in a git-bash window
# When you are reporting an issue, please include the full output of this script.
# If you have NFS enabled globally, please temporarily disable it with
# `ddev config global --nfs-mount-enabled=false`