Skip to content

Instantly share code, notes, and snippets.

@0xntpower
0xntpower / Configure-WindowsUpdate-NoAutoReboot.ps1
Created May 10, 2026 21:47
Auto-patch, never auto-reboot. A self-verifying Windows 11 Update policy script.
<#
.SYNOPSIS
Configures Windows 11 Enterprise to auto-install updates without ever auto-rebooting.
.DESCRIPTION
- Enables fully automatic download + scheduled install of Windows Updates.
- Disables every known auto-reboot path: logged-on-user reboots, scheduled-time
reboots, deadline-forced reboots, and the UpdateOrchestrator reboot tasks.
- Verifies all settings after applying and prints a pass/fail report.

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.

"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@jh3y
jh3y / fluid-type.css
Created May 14, 2026 22:16
fluid typography scales with css pow()
/*
* Fluid Modular Type Scale
*
* A pure-CSS fluid typography system that smoothly scales font sizes
* between a minimum and maximum viewport width using a modular scale.
*
* Based on the great work of those at Clearleft, modified for modern css (pow())
* (https://utopia.fyi/blog/css-modular-scales/)
*
* Required custom properties (set on a parent or :root):
@JamesHopbourn
JamesHopbourn / feishu.json
Last active May 15, 2026 08:58
含参数的 URL Scheme 收集.md
{
"key_open_app_link_config": {
"hosts": {
"eu_ea": [
"applink.feishu.cn",
"applink.larksuite.com"
],
"eu_nc": [
"applink.feishu.cn",
"applink.larksuite.com"
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active May 15, 2026 08:54
set -e, -u, -o, -x pipefail explanation