This file contains hidden or 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
# New fresh rate for the game | |
$NewRate = 100 | |
# Change this if you have multiple monitors | |
$DID = 1 | |
# DELETE BELOW IF YOU HAVE ALREADY INSTALLED THE MODULE | |
# Check if PSGallery is trusted | |
$PSG = Get-PSRepository -Name PSGallery | |
if ($PSG.InstallationPolicy -ne "Trusted") { | |
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted |
This file contains hidden or 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 | |
FILE="config.yaml" | |
CONFIG_DIR=/home/pi/.config/mihomo | |
TEMP_DIR=/tmp/mihomo_config | |
CONFIG_FILE="${CONFIG_DIR}/${FILE}" | |
TEMP_FILE="${TEMP_DIR}/${FILE}" | |
DEFAULT_SECRET='_secret_' | |
MIHOMO_SECRET='123456' |
This file contains hidden or 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="7890" | |
PROXY_HTTP="http://${hostip}:${port}" | |
set_proxy(){ | |
export http_proxy="${PROXY_HTTP}" | |
export HTTP_PROXY="${PROXY_HTTP}" |