Skip to content

Instantly share code, notes, and snippets.

View SamuelDavis's full-sized avatar

Samuel Davis SamuelDavis

  • Stallings, NC, USA
View GitHub Profile
@SamuelDavis
SamuelDavis / with-cuda.nix
Last active January 12, 2025 00:17
Support Cuda for PyTorch in NixOS
# Run with `nix-shell cuda-shell.nix`
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
name = "cuda-env-shell";
buildInputs = with pkgs; [
git gitRepo gnupg autoconf curl
procps gnumake util-linux m4 gperf unzip
cudatoolkit linuxPackages.nvidia_x11
libGLU libGL
xorg.libXi xorg.libXmu freeglut
@SamuelDavis
SamuelDavis / docker-compose.yml
Created March 7, 2025 22:13
Dockerize many PHP Sites with HTTPS
services:
nginx:
image: nginx:alpine
container_name: web
depends_on:
- php
ports:
- "80:80"
- "443:443"
volumes: