This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-MpPreference -ScanPurgeItemsAfterDelay 2 | |
# 其中的数字是在发现威胁后的多少天里清除 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proxies: | |
- name: v2ray | |
server: example.com | |
port: 443 | |
type: vmess | |
uuid: uuid | |
alterId: 100 | |
cipher: auto | |
tls: true | |
skip-cert-verify: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## blog:www.cnbuilder.cn | |
## create 2019-04-30 | |
version="5.2.1"; | |
appName=$2 | |
if [ -z $appName ];then | |
appName=`ls -t |grep .jar$ |head -n1` | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#hostip=$(cat /etc/resolv.conf | grep nameserver | awk '{ print $2 }') | |
hostip=$(ip route list default | awk '{print $3}') | |
wslip=$(hostname -I | awk '{print $1}') | |
port=<PORT> | |
PROXY_HTTP="http://${hostip}:${port}" | |
set_proxy(){ | |
export http_proxy="${PROXY_HTTP}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Remove-NetFirewallRule -DisplayName "WSL" | |
New-NetFirewallRule -DisplayName "WSL" -Direction Inbound -InterfaceAlias "vEthernet (WSL)" -Action Allow |