Skip to content

Instantly share code, notes, and snippets.

View samstride's full-sized avatar

Vijay samstride

View GitHub Profile
@samstride
samstride / Dockerfile
Last active August 24, 2023 08:14
Dockerfile to run Stable Diffusion on AMD64 CPUs.
ARG USERNAME=ownage
ARG USER_UID=1000
ARG USER_GID=$USER_UID
FROM ubuntu:22.04
ARG USERNAME
ARG USER_UID
ARG USER_GID
@samstride
samstride / POSTGRES.md
Last active February 29, 2024 21:43
Postgres setup using Docker
# Create data directory.
mkdir -p ~/postgresql_data

# Download and start container.
docker run -d \
    --name postgres \
    -p 5433:5432 \
    -e POSTGRES_PASSWORD=postgres \
 -e PGDATA=/var/lib/postgresql/data/pgdata \