Skip to content

Instantly share code, notes, and snippets.

View hsqStephenZhang's full-sized avatar
🎯
Focusing

z combinator hsqStephenZhang

🎯
Focusing
View GitHub Profile
@MattPD
MattPD / analysis.draft.md
Last active June 15, 2026 07:26
Program Analysis Resources (WIP draft)

##分布式系统(Distributed System)资料


#####希望转载的朋友,你可以不用联系我.但是一定要保留原文链接,因为这个项目还在继续也在不定期更新.希望看到文章的朋友能够学到更多.

介绍:这是一篇介绍在动态网络里面实现分布式系统重构的paper.论文的作者(导师)是MIT读博的时候是做分布式系统的研究的,现在在NUS带学生,不仅仅是分布式系统,还有无线网络.如果感兴趣可以去他的主页了解.

@islishude
islishude / k8s-install.md
Last active October 16, 2025 07:07
k8s-国内源安装

MOVE TO HERE

注意以下命令,需要切换到 root 后运行

安装 docker

首先确定已经安装完成 docker,如果没有安装可以使用以下脚本快速安装并配置:

@yunazuno
yunazuno / drop_ipv4_tcp_80.c
Last active January 11, 2025 15:35
Testing a XDP program with BPF_PROG_TEST_RUN through Python
#include <uapi/linux/if_ether.h>
#include <uapi/linux/in.h>
#include <uapi/linux/ip.h>
#include <uapi/linux/tcp.h>
int drop_ipv4_tcp_80(struct xdp_md *ctx) {
void *data = (void *)(long)ctx->data;
void *data_end = (void *)(long)ctx->data_end;
struct ethhdr *eth;
@mtds
mtds / lvn.md
Last active June 18, 2026 08:35
Linux Virtual Networking

Virtual Networking on Linux

In the Linux Kernel, support for networking hardware and the methods to interact with these devices is standardized by the socket API:

                +----------------+
                |   Socket API   |
                +-------+--------+
                        |
User space              |
@yagehu
yagehu / default.custom.yaml
Last active November 22, 2025 05:56
RIME fcitx 默认简体中文设置 (Config to make fcitx-rime default to simplified Chinese)
patch:
schema_list:
- schema: luna_pinyin_simp
- schema: luna_pinyin
- schema: luna_pinyin_fluency
- schema: bopomofo
- schema: bopomofo_tw
- schema: cangjie5
- schema: stroke
- schema: terra_pinyin
@chrisdone
chrisdone / gist:02e165a0004be33734ac2334f215380e
Last active June 29, 2026 20:50
Build and run minimal Linux / Busybox systems in Qemu

Common

export OPT=/opt
export BUILDS=/some/where/mini_linux
mkdir -p $BUILDS

Linux kernel

@aronskaya
aronskaya / TISInputSource+Extensions.swift
Created May 13, 2017 10:44
[TISInputSource+Extensions] #tags: inputSource
extension TISInputSource {
var id: String {
let unsafeID = TISGetInputSourceProperty(self, kTISPropertyInputSourceID).assumingMemoryBound(to: CFString.self)
let name = Unmanaged<CFString>.fromOpaque(unsafeID).takeUnretainedValue()
return name as String
}
var type: String {