Skip to content

Instantly share code, notes, and snippets.

View networkextension's full-sized avatar
🎯
Focusing

abigt networkextension

🎯
Focusing
View GitHub Profile
@networkextension
networkextension / 26.0.4 crash on ARM N1 board.txt
Created June 27, 2026 15:04
26.0.4 crash on ARM N1 board
0.225245] pci 0000:00:00.0: [10b5:8749] type 01 class 0x060400 PCIe Switch Upstream Port
[ 0.225262] pci 0000:00:00.0: BAR 0 [mem 0x71500000-0x7153ffff]
[ 0.225267] pci 0000:00:00.0: PCI bridge to [bus 02-08]
[ 0.225273] pci 0000:00:00.0: bridge window [io 0x0000-0x2fff]
[ 0.225277] pci 0000:00:00.0: bridge window [mem 0x71200000-0x714fffff]
[ 0.225285] pci 0000:00:00.0: bridge window [mem 0x900000000-0x9002fffff 64bit pref]
[ 0.225347] pci 0000:00:00.0: PME# supported from D0 D3hot D3cold
[ 0.225509] pci 0000:00:00.1: [10b5:87d0] type 00 class 0x088000 PCIe Endpoint
[ 0.225535] pci 0000:00:00.1: BAR 0 [mem 0x71546000-0x71547fff]
[ 0.225544] pci 0000:00:00.1: enabling Extended Tags
Copyright (c) 1992-2023 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 14.4-RELEASE releng/14.4-n273675-a456f852d145 GENERIC arm64
FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git llvmorg-19.1.7-0-gcd708029e0b2)
VT: init without driver.
module scmi already present!
real memory = 17162477568 (16367 MB)
avail memory = 16705548288 (15931 MB)
Autoboot in 9 seconds. [Space] to pause
Loading kernel...
/boot/kernel/kernel text=0x2a8 text=0x9fbb90 text=0x26eebc data=0x152048 data=0x
0+0x2c0000 0x8+0x1560f0+0x8+0x180134|
Loading configured modules...
can't find '/boot/entropy'
can't find '/etc/hostid'
No valid device tree blob found!
WARNING! Trying to fire up the kernel, but no device tree blob found!
---<<BOOT>>---
@networkextension
networkextension / freebsd-14.4-boot-demsg.txt
Created June 25, 2026 05:53
Arm Neoverse N1 SDP(N1SDP)
Shell>
Shell> help
acpiview - Display ACPI Table information.
alias - Displays, creates, or deletes UEFI Shell aliases.
attrib - Displays or modifies the attributes of files or directories.
bcfg - Manages the boot and driver options that are stored in NVRAM.
cd - Displays or changes the current directory.
cls - Clears the console output and optionally changes the background
and foreground color.
comp - Compares the contents of two files on a byte-for-byte basis.
@networkextension
networkextension / Swift 6.3 on FreeBSD.sh
Last active May 8, 2026 10:02
Swift 6.3 dev on FreeBSD smoke test
# 看现在有哪些 FreeBSD 镜像
gcloud compute images list \
--project freebsd-org-cloud-dev --no-standard-images
# 拉一台 4 核 8G 的 14.x amd64
gcloud compute instances create swift-freebsd \
--image-project=freebsd-org-cloud-dev \
--image-family=freebsd-14-3 \
--zone=us-central1-c \
--machine-type=e2-standard-2 \
@networkextension
networkextension / mitm_curl.txt
Created April 26, 2026 15:59
Latch mitm first test
% curl -v -x http://127.0.0.1:4591 https://example.com
* Trying 127.0.0.1:4591...
* Connected to 127.0.0.1 (127.0.0.1) port 4591
* CONNECT tunnel: HTTP/1.1 negotiated
* allocate connect buffer
* Establish HTTP proxy tunnel to example.com:443
> CONNECT example.com:443 HTTP/1.1
> Host: example.com:443
> User-Agent: curl/8.7.1
> Proxy-Connection: Keep-Alive
@networkextension
networkextension / build-android-swift.sh
Created March 30, 2026 05:42
init android Swift project script
#!/usr/bin/env bash
set -euo pipefail
# ====== 配置区(按需修改) ======
APP_NAME="hello"
ANDROID_API=28
TARGET="aarch64-unknown-linux-android${ANDROID_API}"
# Swift SDK 名(你当前环境)
SWIFT_SDK="aarch64-unknown-linux-android${ANDROID_API}"
@networkextension
networkextension / Extended interview: Tim Cook.md
Created March 16, 2026 01:50
Extended interview: Tim Cook

Reflecting on Apple's Journey and Purpose

Apple's culture traditionally focuses on looking forward, not back. However, the company has intentionally developed a "new muscle" to reflect on its 50-year journey. This introspection helps foster gratitude for the past, remember Steve Jobs' foundational principles, and reaffirm the company's core purpose: to enrich people's lives, empower them, and enable them to change the world.

Apple's Resurgence and Current Leadership

The speaker, who joined Apple 28 years ago, recounts the company's "bleak" state upon his arrival. It faced financial difficulties, dwindling revenue, and a lack of direction. Steve Jobs' return reinvigorated the company with a unique vision to target the consumer market, a stark contrast to the enterprise focus of competitors. Despite advice against joining, the speaker was drawn by Jobs' passion for product and unconventional thinking, finding profound purpose in Apple's mission to make a positive global impact.

Core Principles and

@networkextension
networkextension / 价值观.md
Created September 30, 2025 20:11
红三代--价值观

根据您提供的访谈内容,这位“红三代”(刘颖,Kenny)所展现的家族观,主要体现在严格的教育要求、对家庭背景的认知与反思、对腐败的警惕和坚守道德底线,以及对下一代的价值观塑造等方面。

以下是关于“红色家族家族观”的详细阐述:

一、 严格的教育与个人成长理念

  1. 精英化的早期教育和严格要求: 刘颖的父母对他的教育要求非常严格。他小时候的生活很“卷”。在他六七岁时,家里就开始让他学习计算机(DOS),使用昂贵的电脑(九十年代初花费一万多块钱人民币购买的486电脑),并练习毛笔字、阅读高尔基的小说。他的父母非常看重价值观的塑造以及学习对他能带来的影响。
  2. 坚持学科方向的塑造: 尽管刘颖属于文科强、理科弱的偏科型学生,但他的父母坚持让他去读理工科,导致他高中阶段的学习非常痛苦,充满了挫折感和倦怠。
  3. 对高考的认知: 刘颖曾认为自己只是一个“普通孩子”,高考考好了就能有一个好的未来,考不好可能就是“天塌下来了”。
@networkextension
networkextension / mlx_distributed_deepseek.md
Created April 7, 2025 01:45 — forked from awni/mlx_distributed_deepseek.md
Run DeepSeek R1 or V3 with MLX Distributed

Setup

On every machine in the cluster install openmpi and mlx-lm:

conda install conda-forge::openmpi
pip install -U mlx-lm

Next download the pipeline parallel run script. Download it to the same path on every machine: