Skip to content

Instantly share code, notes, and snippets.

View adamwdennis's full-sized avatar
:octocat:
Pushing to Prod

Adam Dennis adamwdennis

:octocat:
Pushing to Prod
View GitHub Profile
@adamwdennis
adamwdennis / vercel-api-deployments-cleanup.sh
Created September 19, 2025 13:31
List and cleanup deployments on Vercel
#!/bin/bash
###############################################################################
# Title: vercel-api-deployments.sh - Deployment cleanup functions
# Description: This script is used to list and cleanup deployments on Vercel.
# Author: Adam Dennis
# Date: 2025-09-19
# Version: 1.0.0
###############################################################################
# Usage: ./vercel-api-deployments.sh
# Simply set your Vercel API credentials (below) and then run the script to
@adamwdennis
adamwdennis / local-llama3-macos.txt
Created April 23, 2024 12:37
Running Llama3 locally...
# Make sure you have the following installed:
# 1. homebrew for MacOS
# 2. docker desktop for MacOS
# Run the following commands, in order:
brew install ollama;
ollama serve &;
ollama pull llama3;
docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main
@adamwdennis
adamwdennis / update-objects.tsx
Last active May 18, 2022 12:24
Comparing two objects for additions, deletions, and updates.
const existingFields = [
{
id: "1",
name: "",
value: "6.2%",
related_id: "1",
},
{
id: "3",
name: "",