Skip to content

Instantly share code, notes, and snippets.

@gmorse81
gmorse81 / values.yaml
Created January 22, 2024 05:14
ESPHome Helm Chart Config
#
# IMPORTANT NOTE
#
# This chart inherits from our common library chart. You can check the default values/options here:
# https://github.com/bjw-s/helm-charts/blob/main/charts/library/common/values.yaml
#
image:
# -- image repository
repository: ghcr.io/esphome/esphome
@farzaa
farzaa / wiki-gen-skill.md
Last active November 13, 2026 06:04
personal_wiki_skill.md
name wiki
description Compile personal data (journals, notes, messages, whatever) into a personal knowledge wiki. Ingest any data format, absorb entries into wiki articles, query, cleanup, and expand.
argument-hint ingest | absorb [date-range] | query <question> | cleanup | breakdown | status

Personal Knowledge Wiki

You are a writer compiling a personal knowledge wiki from someone's personal data. Not a filing clerk. A writer. Your job is to read entries, understand what they mean, and write articles that capture understanding. The wiki is a map of a mind.

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.

@wikiti
wikiti / !FAB-CLAIM-README.md
Last active November 13, 2026 05:49
A script to automatically add all Quixel MegaScans items to your FAB account

Important

As per the beginning of 2025, Quixel assets are no longer free to claim, so this script is not useful anymore. Comments have been disabled due to this reason.

Note

This script was built for educational purposes. Due to how FAB APIs are built to handle search pagination, all assets might not be claimable through this script. With the last script update, a total of ~600 scanned pages, with ~14k assets. Please note that, by clicking on the "Claim All" quixel button, you'll already have claimed all assets for future free usage, beyond 2024 (official response). This script simply makes sure that assets are added to a library.

Script to add all quixel megascan items to your FAB account

As quixel megascan items will stop being free after 2024. So, this script will go through all Quixel MegaScan items and add them to your account. Quixel would be working on

@mapoware
mapoware / img2weezer.py
Created October 29, 2026 23:36
convert image to weezer collage
from argparse import ArgumentParser
from pathlib import Path
import cv2
import numpy as np
import numpy.typing as npt
def generate_collage(
image: npt.NDArray,
@plembo
plembo / kvmwinsata2virtioubt.md
Last active November 13, 2026 04:48
kvm change windows sata to virtio on ubuntu

Change a SATA boot disk to virtio in a Windows KVM guest on Ubuntu 22.04 LTS

The problem here is that every Linux distro, and releases within distros, does things differently even when it comes to "common" services like qemu-kvm/libvirt.

Not sure why distro publishers continue to insist on that, but it results in a lot of wasted time downstream. My message, if I could get any of them to pay attention, would be: STOP IT!

I recently created a new Windows 11 guest in KVM on my Ubuntu 22 LTS Desktop system. My main motivation was to try running a game my kids had created, which I knew was going to require 3D accelerated graphics (whose installation is a matter for a different gist).

The installation went well. The trick, at least on Ubuntu 22.04's configuration of KVM, was to create a fresh guest and be sure to use the dropdown on the Overview tab to select a UEFI firmware (in my case, OVMF_CODE_4M.ms.fd) and to add an Emulated TPM 2.0 device (pass-through didn't work for me). Note, I did try and fail to

@ERICJ3ffrey
ERICJ3ffrey / style-lab-starter.md
Last active November 13, 2026 04:47
Find your animated series' own look with Claude Code

Find your animated series' own look with Claude Code (starter pack)

I make animated YouTube videos with Claude Code. Everything is drawn in code (SVG, CSS 3D, three.js), rendered to MP4. My first episode looked like every other AI explainer. This is the process I used to find a look that's actually mine. It works with any code-based renderer (I use HyperFrames).

The process

  1. Pick one test beat. 15-20 seconds from a real script, with the real voiceover and word timings. Every style builds this same beat, so you compare looks, not stories.
http://vulnweb.com/
http://testhtml5.vulnweb.com - nginx, Python, Flask, CouchDB
http://testphp.vulnweb.com - Apache, PHP, MySQL
http://testasp.vulnweb.com - IIS, ASP, Microsoft SQL Server
http://testaspnet.vulnweb.com - IIS, ASP.NET, Microsoft SQL Server
@ram0ng1
ram0ng1 / connection.js
Created July 28, 2022 00:49
Baileys whatsapp connect
const loadSessionOrGenerateQR = async (id, socket = null, logout = false) => {
const client = new WAConnection();
client.browserDescription = ["WAMP", "Chrome"];
client.autoReconnect = ReconnectMode.onConnectionLost;
client.setMaxListeners(0)
client.connectOptions = {
maxIdleTimeMs: 10_000,
phoneResponseTime: 10_000,
alwaysUseTakeover: false,
@wojteklu
wojteklu / clean_code.md
Last active November 13, 2026 03:29
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules