Skip to content

Instantly share code, notes, and snippets.

View firxworx's full-sized avatar

Kevin Firko firxworx

View GitHub Profile
@firxworx
firxworx / node-spawn.md
Created August 5, 2022 03:22
nodejs child processes

from: prisma/prisma#2917

The reason Prisma is cleaning up its child processes, is we'll end up with a dangling child process. So unfortunately Node.js does not make sure, that the child process is killed properly. That's why Prisma Client is cleaning this up, for now, to not introduce a foot gun for Prisma users.

index.js

@firxworx
firxworx / pma-docker.sh
Created October 5, 2023 00:41
bash script to launch phpmyadmin docker that connects to a running wp-env (@wordpress/env) database for local wp development
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
# ---------------------------------------------------------------------------------------------------------------------
# script runs/stops phpmyadmin docker image as a container that's configured to connect to a running wp-env database
# author: Kevin Firko (@firxworx)