Skip to content

Instantly share code, notes, and snippets.

@ddh0
ddh0 / safetensors_convert_fp16_to_8bit.py
Last active May 16, 2026 00:12
Python code to convert SDXL fp16 safetensors to 8-bit safetensors
# safetensors_convert_fp16_to_8bit.py
# Python 3.11.7
import safetensors.torch
import safetensors
import torch
import os
# blacklist takes priority over whitelist
# a tensor will only be cast if it matches the whitelist but not the blacklist

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.

@cedrickchee
cedrickchee / aie-singapore-2026-leadership-workshops-recap.md
Created May 15, 2026 22:31
AIE Singapore 2026 Leadership Track Recap

AIE Singapore 2026 Leadership Track Recap

Session 1 - Building an AI-Native Startup: Lessons from Belli

Speaker: Jeff Pan and Alex, Belli

  • We're going to talk about the unsexy bits today
  • We do forward deployed engineering with airlines
    • Cargo softwares
  • Palantir - coined FDE
@journeymanavi
journeymanavi / production-web-server-setup-and-deployment-guide.md
Last active May 15, 2026 23:39
A runbook for setting up a Linux based secure, production web server, for serving static web content as well as deploying Node.js based web applications.
@heiswayi
heiswayi / malaysia.geojson
Last active May 15, 2026 23:34
Malaysia Map GeoJSON
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nikita-nuykin
nikita-nuykin / doom-emacs-cheatsheet.md
Last active May 15, 2026 22:54
Doom Emacs cheatsheet

Doom Emacs Cheatsheet

Shortcuts

Use SPC h w to find shortcut or command

Cursor

Combination Description
@burkeholland
burkeholland / ainstall.md
Last active May 15, 2026 22:52
Ultralight Orchestration

Ultralight Orchestration

A minimal multi-agent system with an orchestrator, a planner, a coder, and a designer working together providing orchestration between Claude, Codex and Gemini.

Instructions

Install all agents listed below into VS Code Insiders...

Title Type Description
@guettli
guettli / ssh-tunnel@.service
Created December 22, 2017 11:40
Reliable persistent SSH-Tunnel via systemd (not autossh)
# Reliable persistent SSH-Tunnel via systemd (not autossh)
# https://gist.github.com/guettli/31242c61f00e365bbf5ed08d09cdc006#file-ssh-tunnel-service
[Unit]
Description=Tunnel for %i
After=network.target
[Service]
User=tunnel
ExecStart=/usr/bin/ssh -o "ExitOnForwardFailure yes" -o "ServerAliveInterval 60" -N tunnel@%i
@ryanhossain9797
ryanhossain9797 / windows_activation.md
Created February 11, 2025 17:23 — forked from bramada/windows_activation.md
Activate Windows for free

For Windows 10

Step 1 - Open PowerShell or Command Prompt as administrator

Step 2 - Install KMS client key

slmgr /ipk your_license_key

Replace your_license_key with following volumn license keys according to Windows Edition: