Skip to content

Instantly share code, notes, and snippets.

View cbwinslow's full-sized avatar

Blaine Winslow cbwinslow

View GitHub Profile
@cbwinslow
cbwinslow / install_node_brew_and_tools.sh
Created September 28, 2025 16:47
install node and homebrew and terminal tools
# Download and install Homebrew
curl -o- https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | bash
# Download and install Node.js:
brew install node@24
# Verify the Node.js version:
node -v # Should print "v24.9.0".
# Verify npm version:
@cbwinslow
cbwinslow / cbw-download-docs-for-services.sh
Created September 28, 2025 15:22
downloads large amount of documentation from the software providers website. the urls for docs are guessed or provided by AI
# Create docs directory
mkdir -p docs
# Parse subdomains from DNS records (extract from second column)
SUBDOMAINS=$(echo "$DNS_RECORDS" | cut -d',' -f2 | cut -d'.' -f1 | sort -u)
# Map subdomain to service docs URL (common mappings)
declare -A SERVICE_DOCS=(
["llm"]="https://ollama.com/docs"
@cbwinslow
cbwinslow / install_coders_terminal.sh
Last active September 9, 2025 16:33
to install a bunch of the terminal LLM models
# Download and install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
# in lieu of restarting the shell
\. "$HOME/.nvm/nvm.sh"
# Download and install Node.js:
nvm install 24
# Verify the Node.js version:
@cbwinslow
cbwinslow / ubuntu_post_install.sh
Created August 15, 2025 15:11
post-install basics
#!/usr/bin/env bash
###################################################################################################
# Name: Post-Install DevOps & Web Development Bootstrap Script
# Date: 2025-08-15
# Script Name: post_install_devops_web.sh
# Version: 1.0.0
# Log Summary: Creates a robust development environment on Ubuntu for DevOps & Web stacks.
# Description: Idempotent setup script to install and configure common tooling for
# DevOps, cloud engineering, container workflows, and web development.
# Safe to re-run; only missing or outdated components are (re)installed.
@cbwinslow
cbwinslow / install_uv_python.sh
Created August 15, 2025 14:30
Install UV Python Library Astra
# From the website. install then pipe to bash: viola!
curl -LsSf https://astral.sh/uv/install.sh | sh
@cbwinslow
cbwinslow / install_brew_linux.sh
Created July 23, 2025 05:20
Install homebrew (brew) on linux. and sets it up properly
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
sudo apt-get install build-essential
brew install gcc
@cbwinslow
cbwinslow / INSTALL_LOCALAI_NVIDIA_GPU.yml
Created July 20, 2025 17:26
installs local ai with nvidia gpus with cuda 12 gpus
docker run -ti --name local-ai -p 8080:8080 --gpus all localai/localai:latest-aio-gpu-nvidia-cuda-12
@cbwinslow
cbwinslow / cbw_litellm_simple.yaml
Created July 20, 2025 07:36
LiteLLM Install Simple
apiVersion: v1
kind: ConfigMap
metadata:
name: litellm-config-file
data:
config.yaml: |
model_list:
- model_name: gpt-4o
litellm_params:
model: azure/gpt-4o-ca
@cbwinslow
cbwinslow / udf_install_ai_toolkit.sh
Created July 15, 2025 21:37
Install AI Toolkit
# install ai tools
curl -fsSL https://opencode.ai/install | bash
git clone https://github.com/cbwinslow/forge.git
cd forge
npx forgecode@latest
# vLLM
# Get the code
git clone https://github.com/BerriAI/litellm
@cbwinslow
cbwinslow / install_snap_store_opensuse.sh
Created May 13, 2025 06:54
install the snap store on OpenSuse
#!/bin/bash
# install_snap_store_opensuse.sh
# This script installs Snap and Snap Store on openSUSE
set -e
echo "Updating system..."
sudo zypper refresh
sudo zypper update -y