GitHub pull:

1
2
@echo off
git pull

GitHub push:

1
2
3
4
@echo off
git add .
git commit -m "update"
git push

Hexo Update:

1
hexo clean && hexo g -d

Enable DHCP:

1
2
3
4
REM 修改为支持中文字符的编码,否则运行为乱码
chcp 65001
netsh interface ipv4 set address name="以太网" source=dhcp
pause

Manual Set IP:

1
2
3
4
5
6
REM 修改为支持中文字符的编码,否则运行为乱码
chcp 65001
netsh interface ipv4 set address name="以太网" static 192.168.1.100 255.255.255.0 192.168.1.2
netsh interface ipv4 set dns name="以太网" static 192.168.1.1 primary
netsh interface ipv4 add dns name="以太网" 114.114.114.114 index=2
pause