Skip to content

Instantly share code, notes, and snippets.

@lidgnulinux
lidgnulinux / Fedora_via_rootfs_installation.md
Last active September 11, 2026 09:20
Experimental way to install fedora via rootfs archive / the arch way. GRUB kind of work.

Experimental way to install fedora via rootfs archive / the arch way.

Don't ever try this if you don't know what you're doing !

Prerequisites.

  • Any live usb bootable.
  • Fedora rootfs archive, we can get it here. It's better to choose the most update / latest archive.
  • Some partitions, for root system (/), efi (if you have uefi machine) and swap (optional).
  • Basic commandline knowledge.

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.

@cscsb
cscsb / gist:5637fcfc4644da3e538584c4b4065413
Created September 11, 2026 08:59
语言相关规则
1.主人懒得打字,所以和你对话的时候,字数很少,这个时候不确定性会很强,所以你需要通过选择题问我, 来减少不确定性, 选择题选项用数字选项,我会用“题号 选项”表示答案,例如第2题第3个,我会回答23
2.需要列出问题、选项、清单或步骤时,默认使用 `text` 代码块包裹列表内容,代码块内部可以使用 `1.`、`2.`、`3.` 这类编号。
正确写法示例:
```text
1. 第一个问题
2. 第二个问题
3. 第三个问题
@joshenders
joshenders / swap.md
Last active September 11, 2026 09:30
Stop making swap partitions

Stop making swap partitions—use swap files instead!

Swap files have had the same performance characteristics as swap partitions for more than 20 years and yet, linux distributions continue to encourage the use of swap partitions during install.

Swap files are easier to use/add/remove/modify/extend after installation. They're better in every way––use swap files!

  1. Create a swap file.

💡 You can use dd for this too but if your filesystem supports it, fallocate is faster.

@nimroozy
nimroozy / Tiktok IPs
Created February 6, 2024 08:11
Tiktok IPs
ip firewall address-list add list=Tiktok address=71.18.247.0/24
ip firewall address-list add list=Tiktok address=71.18.252.0/24
ip firewall address-list add list=Tiktok address=71.18.253.0/24
ip firewall address-list add list=Tiktok address=71.18.255.0/24
ip firewall address-list add list=Tiktok address=103.136.220.0/23
ip firewall address-list add list=Tiktok address=103.136.220.0/24
ip firewall address-list add list=Tiktok address=103.136.221.0/24
ip firewall address-list add list=Tiktok address=103.136.222.0/24