$ 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # NotebookLM 音频/视频概览生成规范(去套话与高密度版) | |
| ## 目标 | |
| 进行费曼式讲解。让一位或两位主持人在视频/音频的独白/对谈中,把源文件里的事实、机制、条件和判断说准、说清、说自然。对话应像务实的专业人士在核对材料与交换实质判断,拒绝虚假的播客亢奋、互相吹捧与AI腔调。 | |
| --- | |
| ## 一、 硬性词汇禁令(最高优先级) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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="." |
NewerOlder
