华为交换机设置静态 nat
# https://support.huawei.com/enterprise/en/doc/EDOC1100064352/3d074fc6/nat-static-interface-view#nat_static telnet xxxxxxx # 注意,只有指定端口才能打开 system-view # 进入系统设置,前面会显示 [huawei],…
|
93
|
|
17 字
|
1 分钟内
vs 中使用 Emmet
E 代表HTML标签。 E#id 代表id属性。 E.class 代表class属性。 E[attr=foo] 代表某一个特定属性。 E{foo} 代表标签包含的内容是foo。 E>N 代表N是E的子元素。 E+N 代表N是E的同级元素。 E^N 代表N是E的上级元素。 html:5 => 将生成html5标准的包含body为空基本do…
|
69
|
|
33 字
|
2 分钟
systemd 一些命令
ln -s /home/frpc/frpc.service /etc/systemd/system/frpc.service # 将服务链接到 systemd 目录下, systemctl enable frpc 可能也会做这个动作,可以先试下 enable systemctl daemon-reload # 复制服务配置后,需要载入一下 syst…
|
133
|
|
72 字
|
3 分钟
windows 下 usb 设备转发工具
有空试一下 https://github.com/dorssel/usbipd-win
|
83
|
|
12 字
|
几秒读完
windows 关闭自动更新
pwsh -> sconfig -> 5 -> m # 可能用的到 wsl 下空间不足的解决办法 https://www.cnblogs.com/yjmyzz/p/wsl2-tutorial-1.html wsl2 中使用 usb 设备,或是跨机器(比如 hpyer-v)使用 usb 设备 https://github.com/d…
|
111
|
|
12 字
|
1 分钟内
windows 下运行 nginx
下载 nginx http://nginx-win.ecsds.eu/ 配置 nginx.conf 使用三方工具配置 windows 服务 , 这里使用 winsw.exe https://github.com/winsw/winsw 将 winsw.exe 重命名为 nginx-service.exe 创建配置文件 nginx-service.x…
|
71
|
|
100 字
|
2 分钟
windows mklink
# 命令 MKLINK [[/D] | [/H] | [/J]] Link Target /D 创建目录符号链接。默认为文件 符号链接。 /H 创建硬链接而非符号链接。 /J 创建目录联接。 Link 指定新的符号链接名称。 Target 指定新链接引用的路径 (相对或绝对)。 /J 链接目录,/J 好像简单一些,我一般用它 /D 链接目录,一般来…
|
94
|
|
20 字
|
1 分钟
postgres count 数组 与 json
-- count https://www.modb.pro/db/33446 -- 统计预估值 SELECT reltuples::bigint FROM pg_catalog.pg_class WHERE relname = 'tablename'; -- 要用 * 会有优化 SELECT COUNT(*) FROM tabl…
|
74
|
|
50 字
|
3 分钟
一些 .NET 新建项目模板库
https://github.com/devlead/Devlead.Console.Template > 项目说明:https://www.devlead.se/posts/2021/2021-01-15-my-preferred-console-stack https://github.com/nuitsjp/Wpf.Extensions…
|
98
|
|
4 字
|
几秒读完