查看 usb 设备 判断 ch341 驱动是否已经安装
windows 下 cpp 查看 #include <windows.h> #include <stdio.h> #include "WCHGetDrvInfo.H" #pragma comment(lib,"WCHGetDrvInfo") void main() { BOOL ret…
|
541
|
|
68 字
|
3 分钟
在 Hyper-V 中安装 Proxmox
安装 Proxmox 虚拟机 设置 虚拟机的嵌套虚拟化功能 Set-VMProcessor -ExposeVirtualizationExtensions $true -VMName proxmox-ve 设置虚拟机网卡的 mac 地址欺骗 虚拟机设置 | 网络适配器 | 高级功能 | MAC 地址 | 启用 MAC 地址欺骗 Get-VMNetw…
|
492
|
|
95 字
|
1 分钟内
华为交换机设置静态 nat
# https://support.huawei.com/enterprise/en/doc/EDOC1100064352/3d074fc6/nat-static-interface-view#nat_static telnet xxxxxxx # 注意,只有指定端口才能打开 system-view # 进入系统设置,前面会显示 [huawei],…
|
587
|
|
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…
|
488
|
|
33 字
|
2 分钟
systemd 一些命令
ln -s /home/frpc/frpc.service /etc/systemd/system/frpc.service # 将服务链接到 systemd 目录下, systemctl enable frpc 可能也会做这个动作,可以先试下 enable systemctl daemon-reload # 复制服务配置后,需要载入一下 syst…
|
719
|
|
72 字
|
3 分钟
windows 下 usb 设备转发工具
## 服务端工具 https://github.com/dorssel/usbipd-win ## GUI 工具 https://github.com/nickbeth/wsl-usb-manager ## 客户端工具 https://github.com/vadimgrn/usbip-win2 ## 1. 服务端 列出可用设备 usbipd li…
|
537
|
|
26 字
|
2 分钟
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…
|
929
|
|
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…
|
463
|
|
100 字
|
2 分钟
windows mklink
# 命令 MKLINK [[/D] | [/H] | [/J]] Link Target /D 创建目录符号链接。默认为文件 符号链接。 /H 创建硬链接而非符号链接。 /J 创建目录联接。 Link 指定新的符号链接名称。 Target 指定新链接引用的路径 (相对或绝对)。 /J 链接目录,/J 好像简单一些,我一般用它 /D 链接目录,一般来…
|
355
|
|
20 字
|
1 分钟