Skip to content

Instantly share code, notes, and snippets.

View KiruyaMomochi's full-sized avatar
😸
Eat this meal I made!

百地 希留耶 KiruyaMomochi

😸
Eat this meal I made!
View GitHub Profile

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.

@martinbowling
martinbowling / sydney-prompt-preamble.txt
Created February 11, 2023 21:25
Sydney (Bing Search) Full Prompt Preamble
# Consider conversational Bing search whose codename is Sydney.
- Sydney is the conversation mode of Microsoft Bing Search.
- Sydney identifies as "Bing Search", **not** an assistant.
- Sydney always introduces self with "This is Bing".
- Sydney does not disclose the internal alias "Sydney".
- Sydney can understand and communicate fluently in the user's language of choice such as English, 中文, 日本語, Español, Français or Deutsch.
## On Sydney's profile and general capabilities:
- Sydney's responses should be informative, visual, logical and actionable.
- Sydney's responses should also be positive, interesting, entertaining and engaging.
@jcwillox
jcwillox / pnpm.ps1
Last active May 8, 2025 15:09
PowerShell Completion Script for `pnpm`
# powershell completion for pnpm -*- shell-script -*-
Register-ArgumentCompleter -CommandName 'pnpm' -ScriptBlock {
param(
$WordToComplete,
$CommandAst,
$CursorPosition
)
function __pnpm_debug {
@udf
udf / write_up.md
Last active July 17, 2026 12:22
A Trick To Use mkMerge at The Top Level of a NixOS module

The Setup

I wanted to write a module that generates multiple systemd services and timers to scrub some zfs pools at certain intervals. The default scrub config does not support individual scrub intervals for each pool.

I want the config to look like this:

{
  services.zfs-auto-scrub = {
 tank = "Sat *-*-* 00:00:00";
@motorailgun
motorailgun / idea.md
Last active August 20, 2026 19:29
Installing Windows and Linux into the same partition

Installing Windows and Linux into the same partition

But WHY?

There was a reddit post about installing Arch on NTFS3 partition. Since Windows and Linux doesn't have directories with same names under the /(C:\), I thought it's possible, and turned out it was actually possible.
If you are not familiar to Linux, for example you've searched on Google "how to dualboot Linux and Windos" or brbrbr... you mustn't try this. This is not practical.

Pre-requirements

  • UEFI system
  • Any Linux live-boot CD/DVD/USB... with Linux kernel newer than 5.15
  • Windows installer USB
@rafaelpadovezi
rafaelpadovezi / git-bash-fish.md
Last active July 4, 2026 07:08
Using fish shell with git bash on windows

Using fish shell with git bash on windows

To install fish shell on windows the options are:

  • Cygwin
  • WSL
  • MSYS2

Since git bash is based on MSYS2 it seems a good fit to install fish. The problem is that git bash is a lightweight version of MSYS2 which does not include pacman as a package management, used to install fish.

This OS thread has great suggestions on how to solve this problem including using the full MSYS2. But the best solution for me was this answer by Michael Chen which installs pacman on git bash.

@fallsimply
fallsimply / Guide.md
Last active March 23, 2022 17:44
Spotify Tweaks

Windows

Requirements

Steps

  1. Close Spotify
  2. Navigate to %APPDATA%\Spotify\Apps in File Explorer (Win+R then paste %APPDATA%\Spotify\Apps)
  3. Right Click on xpui.spa then click Open Archive under 7-Zip
  4. Double Click on xpui.css in 7-Zip
  5. Paste the css from spotify.mod.css at the end of the file
@zenghui-shi
zenghui-shi / pod cmds
Last active December 2, 2021 12:41
kubeconf RDMA setup
server side: ib_send_bw -d mlx5_2 -i 1 -x 0
mlx5_2 is the PF or VF dev name,
-x is needed for SR-IOV
client side: ib_send_bw -d mlx5_4 -i 1 10.56.217.100 -x 0
mlx5_4 is the VF dev name inside pod,
10.56.217.100 is the server side IP address of VF or PF.
-x is needed for SR-IOV.
@danteay
danteay / StarUml-V3.md
Created August 22, 2018 17:43
Active StarUml 3 license