Skip to content

Instantly share code, notes, and snippets.

@jonas1ara
jonas1ara / WebServer.fsx
Last active June 4, 2026 20:06
Simple web server in F#
open System.Net
open System.Net.Sockets
open System.IO
open System.Text.RegularExpressions
open System.Text
/// A table of MIME content types.
let mimeTypes =
dict [".html", "text/html";
".htm", "text/html";
#!/usr/bin/dotnet fsi
open System
open System.Collections.Generic
open System.Globalization
open System.IO
open System.Net.Http
open System.Numerics
open System.Text
@alexheretic
alexheretic / clean-dot-cargo
Last active June 4, 2026 19:52
Deletes ~/.cargo cached data older than 2 weeks
#!/usr/bin/env bash
## Deletes ~/.cargo cached data older than 2 weeks
set -eu
du_before=$(du -hd0 ~/.cargo/ | cut -f1)
# remove old crate caches & sources
find ~/.cargo/registry/cache/ -type f -ctime +13 -atime +13 -delete

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@usrbinkat
usrbinkat / README.md
Last active June 4, 2026 18:52
Ollama + Open-Webui + Nvidia/CUDA + Docker + docker-compose

Ollama + Open-WebUI + NVIDIA GPU

GitHub stars

A Docker Compose stack for running local LLMs on your own hardware with NVIDIA GPU acceleration, a web UI, and one-command model setup via profiles.

Open-WebUI Interface

What's Included

blueprint:
name: Ultimate Hue Remote Controller via Z2M
description: >
Configure Hue Remote buttons via Zigbee2MQTT with Device Triggers.
**Features:**
- Synthetic Double Click
- Organized settings by button
- Visual Section Headers
@mikefrobbins
mikefrobbins / Test-IsWindowsTerminal.ps1
Created May 15, 2024 22:17
Determine if the host is Windows Terminal
function Test-IsWindowsTerminal {
[CmdletBinding()]
param ()
# Check if PowerShell version is 5.1 or below, or if running on Windows
if ($PSVersionTable.PSVersion.Major -le 5 -or $IsWindows -eq $true) {
$currentPid = $PID
# Loop through parent processes to check if Windows Terminal is in the hierarchy
while ($currentPid) {
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active June 4, 2026 18:27
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k