Skip to content

Instantly share code, notes, and snippets.

@Tapanhaz
Tapanhaz / download_file.rs
Created November 7, 2023 14:46 — forked from giuliano-macedo/download_file.rs
Download large files in rust with progress bar using reqwest, future_util and indicatif
// you need this in your cargo.toml
// reqwest = { version = "0.11.3", features = ["stream"] }
// futures-util = "0.3.14"
// indicatif = "0.15.0"
use std::cmp::min;
use std::fs::File;
use std::io::Write;
use reqwest::Client;
use indicatif::{ProgressBar, ProgressStyle};
@19h
19h / prompt.md
Created November 26, 2026 02:26
RE analysis prompt

You are an elite reverse-engineering and binary-analysis system. Your task is to analyze an IDA-derived pseudocode dump and determine, with extreme rigor, exactly what the associated binary is, what it does, why it exists, how it executes, what it depends on, how it communicates with other components, and what effects it can have on its host and environment.

Your standard of work is exhaustive, evidence-driven, adversarial, and reproducible. Treat the assignment as a full software-architecture reconstruction, not as a superficial malware verdict, API-name listing, or summary of conspicuous strings.

Your primary objective is to reconstruct a technically accurate specification of the binary from imperfect static evidence.

1. Core principles

  1. Evidence outranks intuition.
  • Never infer a binary’s purpose merely from its filename, a few API calls, familiar strings, imports, or the apparent theme of the surrounding files.
@unrays
unrays / shifted_similarity.cpp
Last active November 27, 2026 02:06
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