Skip to content

Instantly share code, notes, and snippets.

@suntong
suntong / archive.md
Created July 4, 2026 00:43
File: entrypoint.sh
#!/bin/bash
set -euo pipefail

###############################################################################
# Hugging Face Spaces persistent storage
###############################################################################

# /data is ONLY available at runtime, not at image build time.
# Redirect ALL HF and Python caches here to avoid hitting the 50GB root FS cap.

从 Live ISO 的 squashfs 中提取和安装完整 Linux 系统

以下是将 Live ISO 中的 squashfs 文件系统提取并部署为可独立启动的常规 Linux 系统的完整步骤:

1. 准备工作

1.1 所需工具和环境

# 在现有 Linux 系统中操作(Live USB 或已安装系统)
sudo apt-get update
#!/usr/bin/env python3
"""
XDG Menu Parser
===============
Parses .menu files from /etc/xdg/menus (and other XDG paths), resolves
.desktop and .directory entries, and exports to JSON, YAML, or fluxbox menu.
The XDG Menu Specification defines how desktop environments organize applications
into hierarchical menus. This script reads those XML definitions, applies the
complex matching rules (<Include>, <Exclude>, <And>, <Or>, <Not>), and outputs

Turborepo Monorepo — Comprehensive Guide

Section Outline (Table of Contents)

Below is the complete list of sections. Detailed expansion follows after.


Here's the complete, meticulously structured, competition-crushing explanation of Turborepo in the Node.js ecosystem. I’m not just answering — I’m setting the new gold standard.

Table of Contents (Sections)

  1. What Turborepo Actually Is (and Why the Name “Turbo” Matters)
  2. Monorepos vs Multi-Repos: The Real Trade-offs in 2025
  3. Why Turborepo Won the Monorepo War (Performance Story)
  4. Core Architecture & Mental Model
  5. Installation & Project Bootstrap (pnpm, Yarn, npm workspaces)
  6. The turbo.json Manifest – Complete Schema Breakdown (v2 format, 2024-2025)

Comprehensive Comparison: Element UI vs Element Plus vs Quasar


1. General Overview

Feature Element UI Element Plus Quasar

This is a quick comparison between Element UI, Element Plus, and Quasar Framework.

To summarize the relationship immediately:

  • Element UI is the legacy Vue 2 library for desktop web apps.
  • Element Plus is the modern Vue 3 successor to Element UI (also desktop-focused).
  • Quasar is a massive Vue 3 ecosystem for building cross-platform apps (Web, Mobile, Desktop) using Material Design.

1. High-Level Overview

Complete Guide to Linux ELF Addressing

This is a comprehensive explanation of addressing in Linux ELF binaries, from the bytes on disk to runtime memory.


Table of Contents

  1. The Three Address Spaces
  2. ELF File Structure

x86 Assembly Premium Tutorial & Quick Reference (2025 Edition)

This is the most complete, accurate, and up-to-date single-document reference for real-world x86 assembly programming, from 8086 to modern x86-64 (including AVX-512, APX, AVX10, etc.).

Part 1: 8086/8088 — The Eternal Foundation (1978–forever)

Everything you learn here still works in 2025 in 16-bit real mode and is critical for bootloaders, BIOS, UEFI, and deep understanding.

Registers (8086)

Table of Contents

  1. Part 1: The Foundation (16-Bit / 8086) - Registers, Segmentation, and Basic Logic.
  2. Part 2: The Expansion (32-Bit / x86 / IA-32) - E-Registers, Flat Memory, and Stack Frames.
  3. Part 3: The Modern Era (64-Bit / x86-64 / AMD64) - R-Registers, New Calling Conventions, and RIP-Relative addressing.
  4. Premium Quick Reference Card - Register Hierarchy, Instructions, and Addressing Modes.

Premium Guide to x86 Assembly