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
# CentOS-Base.repo | |
# | |
# The mirror system uses the connecting IP address of the client and the | |
# update status of each mirror to pick mirrors that are updated to and | |
# geographically close to the client. You should use this for CentOS updates | |
# unless you are manually picking other mirrors. | |
# | |
# If the mirrorlist= does not work for you, as a fall back you can try the | |
# remarked out baseurl= line instead. | |
# |
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 |
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 }') | |
wslip=$(hostname -I | awk '{print $1}') | |
port=<PORT> | |
PROXY_HTTP="http://${hostip}:${port}" | |
set_proxy(){ | |
export http_proxy="${PROXY_HTTP}" | |
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
#!/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
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
Set-MpPreference -ScanPurgeItemsAfterDelay 2 | |
# 其中的数字是在发现威胁后的多少天里清除 |