Skip to content

Instantly share code, notes, and snippets.

View Journalist-HK's full-sized avatar
🆙
Coding

Journalist-HK

🆙
Coding
View GitHub Profile
@Journalist-HK
Journalist-HK / Forza_Motorsport_change_refresh_rate.ps1
Last active February 15, 2025 12:03
Change screen resfresh rate for Forza Motorsport
# 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
#!/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'
@Journalist-HK
Journalist-HK / proxy.sh
Created April 28, 2024 19:39
Proxy script for WSL
#!/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}"