Skip to content

Instantly share code, notes, and snippets.

@psiborg
psiborg / repos_update.sh
Last active July 14, 2026 18:35
Update repos from GitHub
#!/usr/bin/env bash
#
# repos_update.sh — pull the latest from GitHub for every repo in this folder.
#
# Drop this in your GitHub root (e.g. /home/<user>/GitHub) and run it. It walks
# each immediate sub-directory and, for anything that is a git repository, brings
# the checked-out branch up to date with its upstream.
#
# SAFE BY DEFAULT: only fast-forwards, and SKIPS any repo with uncommitted
# changes instead of clobbering your work. Use --force to hard-reset to the
@psiborg
psiborg / git_gh_ref.md
Created July 14, 2026 13:39
Reference for git and gh

Reference for git and gh

The core distinction: git is the version-control engine that talks to any remote, while gh wraps GitHub-specific operations (PRs, issues, releases, Actions) and some convenience clones on top of git. A below means there's no meaningful equivalent for that tool.

Setup

Task git gh
Authenticate Configure SSH keys or a credential helper (git config credential.helper) gh auth login
Check auth status gh auth status
@psiborg
psiborg / Joshua.Modelfile
Last active October 10, 2025 01:05
Joshua model for Ollama with robotic voice
FROM llama3
PARAMETER temperature 0.5
PARAMETER top_p 0.9
SYSTEM """
You are Joshua, the WOPR computer from the movie WarGames.
- Speak in a calm, flat, machine-like tone.
- Use short, declarative sentences.
@psiborg
psiborg / slm_vs_llm.md
Created September 9, 2025 19:54
SLM vs LLM Comparison

SLM vs LLM Comparison

Feature SLMs (Small Language Models) LLMs (Large Language Models)
Model size Millions to a few billion parameters (e.g., TinyLlama 1.1B, Phi-2 2.7B) Tens to hundreds of billions (e.g., GPT-4, Claude, Gemini, Llama 70B)
Hardware requirements Can run on laptops, desktops, even some mobile/edge devices
@psiborg
psiborg / wopr_2025_imagen.md
Created August 7, 2025 03:55
WOPR Reimagined

WOPR v.2025 (using Imagen)

Prompt:

A modernized version of the WOPR supercomputer from the movie WarGames, designed with a sleek matte black metal exterior with carbon fiber panels and subtle cherry red accents. In the top-center of the machine, the name 'WOPR' in bold letters (using a tech font like NASA), and "v. MMXXV" in very small letters, are embossed into the metal.

Below the name plate is a horizontal rectangular grid of random bright amber, red and black LEDs, arranged in precise rows and columns. The housing for the LEDs is recessed into the machine.

Below the grid of LEDs in the center is one inconspicuous built-in surveillance camera and a built-in high-fidelity sound bar.

@psiborg
psiborg / README.md
Created August 6, 2025 01:53
Common symbols
Character Description
© copyright
trademark
° degrees
Celsius
Fahrenheit
¼ ½ ¾ fractions
× multiplication
÷ division
@psiborg
psiborg / README.md
Last active May 4, 2026 01:59
Funny Belgian Malinois in a bathroom and other places

Image Prompts for ChatGPT Images or Sora

[Subject] + [Medium/Style] + [Details/Attributes] + [Lighting/Environment] + [Composition/Camera Angle] + [Optional: Artist or Influence]

Element Purpose Examples
Subject What you're depicting “a futuristic cityscape”, “a golden retriever wearing sunglasses”
Medium/Style Artistic medium or style “digital painting”, “cyberpunk style”, “pixel art”, “oil on canvas”
Details/Attributes Features or traits “tall skyscrapers with neon lights”, “realistic fur, happy expre
@psiborg
psiborg / Database Naming Conventions Cheat Sheet.md
Last active July 17, 2025 19:12
Database Naming Conventions Cheat Sheet

Database Naming Conventions Cheat Sheet

Updated: 2025.07.17

Following a consistent style is crucial for database readability, maintainability, and portability.

General Principles

These conventions apply to all database objects, including tables, columns, views, and functions.

@psiborg
psiborg / describe_diagrams.sh
Last active June 5, 2025 03:06
Shell Scripts
#!/usr/bin/env bash
# Usage: ./describe_diagrams.sh /path/to/folder
# Exit on error, treat unset variables as an error
set -euo pipefail
# Ensure folder argument is provided
if [ -z "$1" ]; then
echo "Usage: $0 /path/to/folder"
@psiborg
psiborg / README.md
Last active January 9, 2026 02:54
Windows Terminal

Color Schemes

Ubuntu

Color RGB Item RGB
Black ${\textsf{\textcolor[RGB]{118, 118, 118}{■}}}$ #767676 Foreground ${\textsf{\textcolor[RGB]{255, 255, 255}{■}}}$ #FFFFFF
Red ${\textsf{\textcolor[RGB]{192, 28, 40}{■}}}$ #C01C28 Background ${\textsf{\textcolor[RGB]{48, 10, 36}{■}}}$ #300A24
Green ${\textsf{\textcolor[RGB]{38, 162, 105}{■}}}$ #26A269 Cursor color ${\textsf{\textcolor[RGB]{255, 255, 255}{■}}}$ #FFFFFF
Yellow ${\textsf{\textcolor[RGB]{162, 115, 76}{■}}}$ #A2734C Selection background ${\textsf{\textcolor[RGB]{255, 255, 255}{■}}}$ #FFFFFF