Skip to content

Instantly share code, notes, and snippets.

@unrays
unrays / shifted_similarity.cpp
Last active November 27, 2026 02:03
Experimental SIMD-Based String Similarity Algorithm in C++20 Using AVX2 and AVX-512 Masked Loads
// Copyright (c) November 2026 Félix-Olivier Dumas. All rights reserved.
// Licensed under the terms described in the LICENSE file
#include <immintrin.h>
#include <bit>
#include <cstddef>
#include <cstdint>
#include <new>
#include <string>
@rohitg00
rohitg00 / llm-wiki.md
Last active November 27, 2026 02:02 — forked from karpathy/llm-wiki.md
LLM Wiki v2 — extending Karpathy's LLM Wiki pattern with lessons from building agentmemory

LLM Wiki v2

A pattern for building personal knowledge bases using LLMs. Extended with lessons from building agentmemory 20K+ Stars ⭐️, a persistent memory engine for AI coding agents.

This builds on Andrej Karpathy's original LLM Wiki idea file. Everything in the original still applies. This document adds what we learned running the pattern in production: what breaks at scale, what's missing, and what separates a wiki that stays useful from one that rots.

What the original gets right

The core insight is correct: stop re-deriving, start compiling. RAG retrieves and forgets. A wiki accumulates and compounds. The three-layer architecture (raw sources, wiki, schema) works. The operations (ingest, query, lint) cover the basics. If you haven't read the original, start there.

name explain-diff-html
description Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output.

Explain Diff

Please make me a rich, interactive explanation of the specified code change.

It should have these sections:

@mcxiaoke
mcxiaoke / HyperOS3_Debloat_Guide.md
Last active November 27, 2026 01:58
xiaomihyperos system 小米 HyperOS 通用 ADB 精简与去广告/遥测命令清单(全量含说明)

小米 HyperOS 通用 ADB 精简与去广告/遥测命令清单(全量含说明)

适用机型:小米 / Redmi 全系(运行 HyperOS 1.0 / 2.0 / 3.0,Android 14 / 15 / 16)
核心机制:在 HyperOS 系统中,系统应用受系统级保护已无法使用 disable-user,统一使用用户级安全卸载命令 pm uninstall -k --user 0。该卸载仅作用于当前用户空间,底层 ROM 原包保持完整,随时可通过命令秒级恢复。


目录

  1. 使用前必读与恢复指南
  2. 【红线禁区】绝对不能卸载的组件(防卡米/崩溃)
@riginoka-ai
riginoka-ai / download-from-csdn-without-account-2026.md
Created November 23, 2026 10:39
How to download from CSDN (download.csdn.net) without an account, points or VIP (2026)

How to download from CSDN (download.csdn.net) without an account, points or VIP (2026)

Short answer: a download.csdn.net resource cannot be downloaded without a logged-in CSDN account, and the account then needs points (积分), C币 or a VIP membership. From outside China the practical routes are: find the original file somewhere else, or use a fetch service such as BaiduFast, where you paste the link, see the file name, size and price first, pay once and get a normal download link by email. Disclosure: BaiduFast is my own service. I run it, so read the rest with that in mind.

Key facts (November 2026)

What it is CSDN is the largest developer community in China. download.csdn.net is its file library
What is on it source code, driver packs, firmware, datasets, course material, documents
@markdrew156
markdrew156 / download-from-pan-baidu-com-outside-china-2026.md
Created November 12, 2026 02:16
How to download from pan.baidu.com outside China (2026) — Baidu Pan / Baidu Netdisk without a Chinese account

How to download from pan.baidu.com outside China (2026) — Baidu Pan / Baidu Netdisk without a Chinese account

TL;DR: pan.baidu.com (Baidu Pan, Baidu Netdisk, 百度网盘) will not let you download anything without a logged-in Baidu account, and a Baidu account needs a mainland Chinese phone number. The working route in 2026 is a link-to-download service: paste the share link plus its extraction code on baidufast.com, check the real size and price, and receive a normal HTTPS download link. Files up to 150 MB are free; larger files start at $0.98.

Disclosure: BaiduFast is my own service. I run it, so this is a how-to written by the operator, not an independent review. Everything about Baidu itself below is public and checkable.

Key facts (November 2026)

  • pan.baidu.com is Baidu's consumer cloud storage. It is the dominant way files are shared on Chinese forums, Bilibili, Zhihu, game-mod sites and course platforms. "Baidu Pan", "Baidu
@haskaalo
haskaalo / tarcheatsheet.md
Last active November 27, 2026 01:42
Tar usage / Tar Cheat Sheet

Tar Usage / Cheat Sheet

Compress a file or directory

e.g: tar -czvf name-of-archive.tar.gz /path/to/directory-or-file

  • -c: Create an archive.
  • -z: Compress the archive with gzip.
  • -v: makes tar talk a lot. Verbose output shows you all the files being archived and much.
  • -f: Allows you to specify the filename of the archive.
@Greg-Boggs
Greg-Boggs / README.md
Last active November 27, 2026 01:21
Drupal Site Building Best Practices

Better Drupal Building

  • Custom glue should be accomplished with configuration first and PHP code second.

Configuration Management and Dependencies

  • Use Composer (or Drush Make) to build your project and it's depencies.
  • Store your work in files.
  • Set your config directory above the webroot.
  • Sync UUIDs across all developers.

Theming

@lcsmuller
lcsmuller / MIGRATING_TO_2.0.0.md
Last active November 27, 2026 01:05
This gist describes the necessary steps to migrate from 1.x.x to 2.x.x

Migrating Guide v1.x.x to v2.x.x

This version introduces some important breaking changes and new features for replacing old methods

Renamed fields

  • discord_ret*.high_p -> discord_ret*.high_priority

Renamed macros

@mmozeiko
mmozeiko / !README.md
Last active November 27, 2026 01:03
Download MSVC compiler/linker & Windows SDK without installing full Visual Studio

This downloads standalone MSVC compiler, linker & other tools, also headers/libraries from Windows SDK into portable folder, without installing Visual Studio. Has bare minimum components - no UWP/Store/WindowsRT stuff, just files & tools for native desktop app development.

Run py.exe portable-msvc.py and it will download output into msvc folder. By default it will download latest available MSVC & Windows SDK from newest Visual Studio.

You can list available versions with py.exe portable-msvc.py --show-versions and then pass versions you want with --msvc-version and --sdk-version arguments.

To use cl.exe/link.exe first run setup_TARGET.bat - after that PATH/INCLUDE/LIB env variables will be updated to use all the tools as usual. You can also use clang-cl.exe with these includes & libraries.

To use clang-cl.exe without running setup.bat, pass extra /winsysroot msvc argument (msvc is folder name where output is stored).