Skip to content

Instantly share code, notes, and snippets.

@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 August 7, 2025 03:57
Funny Belgian Malinois in a bathroom and other places

Image Prompts for 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 expression”
Lighting/Environment
@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 April 1, 2025 15:39
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
@psiborg
psiborg / README.md
Last active August 31, 2025 05:08
Make Windows 11 Always Show More Options

By default, Windows 11 shows a simplified right-click context menu, and you have to click "Show more options" (or press Shift + F10) to access the full legacy menu. You can make Windows 11 always show the full context menu by following these steps:

  1. Run the following command in Command Prompt (Admin):
reg add "HKEY_CURRENT_USER\Software\Classes\CLSID\{86CA1AA0-34AA-4E8B-A509-50C905BAE2A2}\InprocServer32" /f /ve
  1. Restart Windows Explorer by running:
@psiborg
psiborg / distro_checker.sh
Last active February 15, 2025 06:01
Linux Distro Checker
#!/bin/bash
# Log and data files
LOG_FILE="distro_checker.log"
DATA_FILE="distro_versions.txt"
# Source the external distro configuration file
source "./distro_checker_config.sh"
# Function to fetch and extract version information
@psiborg
psiborg / README.md
Last active January 7, 2025 02:59
Huffman compression

Huffman Coding (Variable-Length Encoding)

Huffman coding is a lossless data compression algorithm that assigns shorter binary codes to more frequent characters and longer codes to less frequent characters. This minimizes the overall size of encoded data while ensuring perfect decompression.

How Huffman Coding Works

  1. Analyze Character Frequencies
    • Count how often each character appears in the text.
  2. Build a Huffman Tree
  • Create a binary tree where characters with lower frequency are placed deeper.