Skip to content

Instantly share code, notes, and snippets.

@wyhao31
wyhao31 / gist:75d05e0592b82d654bc10dd19fcb14f0
Created April 4, 2026 00:47 — forked from luzhixing12345/gist:4f4dea9caf47cbace802affe193e2d7e
捕获 gdb 和 gdbserver 的 tcp 通信报文
from scapy.all import TCP, IP, Raw, sniff
import threading
import os
import sys
import termios
import tty
seen = set()
@wyhao31
wyhao31 / gist:d011ef50e3ca65511b7f1f63e9df1188
Created April 4, 2026 00:46 — forked from luzhixing12345/gist:17ce8ebe8eda436c451bd9c1fa50b1b3
捕获 gdb/mi 和 vscode 的数据传递消息
import subprocess
import re
import os
import select
import sys
def get_gdb_pid():
gdb_proc = subprocess.Popen(
["pgrep", "-f", "gdb"],
stdout=subprocess.PIPE,
@wyhao31
wyhao31 / tmux.md
Created February 17, 2014 07:28 — forked from andreyvit/tmux.md

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a