https://www.gravatar.com/avatar/ecd1e184bdf4016f24c818bde9e65b3d?s=240&d=mp
记录点滴、留住时光

win10指令备忘

打开win10的启动目录

1
shell:Common Startup

IE启动时最大化

1
iexplore.exe -k

chrome启动最大化

1
"C:\Program Files\Google\Chrome\Application\chrome.exe" -kiosk http://127.0.0.1:8080/index.html#/home

VMware自启动

1
"C:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe" start "D:\Virtual Machines\Ubuntu64\Ubuntu64.vmx" nogui

win10专业版没有自支登录选项

Control Userpasswords2命令进入配置界面 如图: https://note.youdao.com/yws/public/resource/40e7acccfd342428f39d3dc7cca9ce31/xmlnote/WEBRESOURCE09a9436d95a440489307c235c8ae6f63/141 需要修改注册表,将下的的内容保存到.reg文件后双击导入

linux网络调试常用指令

清空arp缓存

1
ip -s -s neigh flush all

SNAT

1
iptables -t nat -I POSTROUTING -s 192.168.23.232/32 -j SNAT --to 192.168.23.1

shell设置当前目录为环境变量

1
export PYTHONPATH=$(pwd)

iptables日志调试

1
iptables -t mangle -I PREROUTING -p udp --dport 5060 -j log