Skip to content

Instantly share code, notes, and snippets.

# NotebookLM 音频/视频概览生成规范(去套话与高密度版)
## 目标
进行费曼式讲解。让一位或两位主持人在视频/音频的独白/对谈中,把源文件里的事实、机制、条件和判断说准、说清、说自然。对话应像务实的专业人士在核对材料与交换实质判断,拒绝虚假的播客亢奋、互相吹捧与AI腔调。
---
## 一、 硬性词汇禁令(最高优先级)
@MaskRay
MaskRay / alan-modra.txt
Last active February 8, 2026 02:45
Silly questions "What's the code review style of XXX?" and Claude Code's answers
Alan Modra - Code Review Style
===============================
Role: Long-time GNU binutils maintainer, GNU ld (BFD linker), PowerPC backend
Deep institutional knowledge
- Decades of binutils/ld experience
- Knows the history behind obscure design decisions
- Understands BFD internals better than anyone
[
{
"bindings": {
// Built-in
"ctrl-g": "menu::Cancel",
"ctrl-x 5 2": "workspace::NewWindow",
"ctrl-x ctrl-c": "zed::Quit",
"ctrl-x ctrl-f": "workspace::Open",
"ctrl-x k": "pane::CloseActiveItem",
"ctrl-x o": "workspace::ActivateNextPane",
@lexrus
lexrus / ss_startup.sh
Last active September 18, 2025 02:51
ss_startup.sh
#!/bin/sh
#
# This startup script initializes a Shadowsocks server in Debian 11.
# It's compatible with DigitalOcean, Linode and Vultr.
#
# Author: @lexrus https://github.com/lexrus
#
# Get $100 free credit for VPS with my referral links:
# DigitalOcean: https://m.do.co/c/3eb5cf371fc9
# Linode: https://www.linode.com/lp/refer/?r=9f144941e797d495a10c2841c3137ce1acde5f15
@abn
abn / nm-create-resolved-custom-port-dns-dispatcher.sh
Last active September 2, 2025 06:04
NetworkManager Dispatcher: Configure systemd-resolved DNS server with custom port on connection up event
# NetworkManager connection config does not like custom ports for DNS servers
# we work around this by using a dispatcher to configure this on up events
# change these to your desired configs
CONNECTION_ID=wg0
DNS_TARGET=10.10.0.1:5300
DNS_SEARCH_DOMAIN=~testing
cat > /etc/NetworkManager/dispatcher.d/99-${CONNECTION_ID}.sh <<EOF
#!/usr/bin/env bash
@koush
koush / .bash_profile
Last active February 23, 2022 23:54
Put this in your .bash_profile(s) to open VS Code on your local machine while SSH'd into a remote machine.
# this needs to be on the *remote* machine.
if [ ! -z "$SSH_CLIENT" ]
then
function code() {
local ssh_client_host=$(echo $SSH_CLIENT | cut -d ' ' -f1)
if [ -z "$1" ]
then
local argpath="."
@chenhengqi
chenhengqi / kprobe-event-trace.md
Last active June 30, 2024 23:27
Kprobe-based Event Tracing

Scripts

$ echo global > /sys/kernel/debug/tracing/trace_clock
$ echo 'p:kprobes/tcp_reset tcp_reset port=+12(%di):u16 dst=+0(%di):u32 state=+18(%di):u8' >> /sys/kernel/debug/tracing/kprobe_events
$ echo 1 > /sys/kernel/debug/tracing/events/kprobes/tcp_reset/enable
$ echo 'p:kprobes/tcp_retransmit tcp_retransmit_skb port=+12(%di):u16 dst=+0(%di):u32 state=+18(%di):u8' >> /sys/kernel/debug/tracing/kprobe_events
$ echo 1 > /sys/kernel/debug/tracing/events/kprobes/tcp_retransmit/enable
@muff-in
muff-in / resources.md
Last active November 4, 2026 06:14
A curated list of Assembly Language / Reversing / Malware Analysis / Game Hacking-resources
@adwait1-g
adwait1-g / running_the_kernel.md
Last active December 10, 2024 12:35
This gist tells you how to build the kernel and run it on qemu. This is also a way to get started with kernel's internals.

1. Downloading and building the Linux kernel

  1. Clone the github repository onto your local machine.
$ git clone https://github.com/torvalds/linux.git
$ cd linux
  1. Configure the build
@davidwu111
davidwu111 / docker_openwrt_config.md
Last active March 7, 2025 07:21
Clash Docker & Openwrt 配置与踩坑记录

Clash Docker & Openwrt 配置与踩坑记录


使用Openwrt作为主路由,另一台Ubuntu 18.04主机上使用Docker运行Clash来作为网关进行转发,以达到按规则智能翻墙的目的。也是很多人提到的“旁路由”方法。

注:Openwrt可以直接编译OpenClash,我这次只是纯粹为了折腾而折腾。