Skip to content

Instantly share code, notes, and snippets.

View rydurham's full-sized avatar

Ryan C. Durham rydurham

View GitHub Profile
@rydurham
rydurham / Dockerfile
Created September 7, 2025 03:14
Automating Laravel Wayfinder in Docker without Vite
FROM php:8.4-alpine
LABEL maintainer="Ryan Durham <[email protected]>"
# Set up a www-data user with UID 1000 and GID 1000
ARG NAME=www-data
ENV NAME=${NAME}
RUN deluser www-data && \
adduser -s /bin/sh -D -u 1000 -g '' ${NAME} ${NAME} && \
chown -R ${NAME}:${NAME} /home/${NAME}
@rydurham
rydurham / pg_to_sqlite.php
Created September 16, 2025 13:38
Postgres to Sqlite conversion script
<?php
// Migrate a postgres SQL file to a format that can be ingested by sqlite
// Generated by cursor
if ($argc !== 2) {
die("Usage: php pg_to_sqlite.php <input_file>\n");
}
$inputFile = $argv[1];