Skip to content

Instantly share code, notes, and snippets.

View imzhongqi's full-sized avatar
🏠
Working from home

Skywalker imzhongqi

🏠
Working from home
View GitHub Profile
import typing as t
import pathlib
class Dictionary(dict):
def __init__(self, value: t.Dict[str, t.Any]) -> None:
for k, v in value.items():
if isinstance(v, dict):
v = Dictionary(v)
@imzhongqi
imzhongqi / 2020-09-29.md
Last active September 29, 2020 08:42
[tcpdump 速查表] #笔记

tcpdump - dump traffic on a network

tcpdump 就是一个抓包工具,支持针对网络层、协议、主机、网络、或端口进行过滤, 并且提供了 andornot 等逻辑语句进行筛选过滤。

1. 不指定任何参数

监听第一块网卡上经过的数据包。如果机器上不只一块网卡就需要指定网卡了。

tcpdump 
@imzhongqi
imzhongqi / setting.json
Last active June 4, 2020 07:50
windows terminal setting.json
// This file was initially generated by Windows Terminal 1.0.1401.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
// You can add more global application settings here.
@imzhongqi
imzhongqi / cloudSettings
Last active March 16, 2021 08:16
vscode setting
{"lastUpload":"2021-03-16T08:16:13.990Z","extensionVersion":"v3.4.3"}