These modules are meant to be used with my dotfiles.
They live in $Profile\profile.d
or ~/.config/zsh/.zshrc.d
of their respective shell.
Last active
June 22, 2025 01:17
-
-
Save hoang-himself/185642cedf1103c65e0e7c662fba3112 to your computer and use it in GitHub Desktop.
Local runcoms
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
{ | |
"inbounds": [ | |
{ | |
"tag": "outlook-ws", | |
"port": 80, | |
"protocol": "vmess", | |
"settings": { | |
"clients": [ | |
{ | |
"id": "5b5b3c61-dfba-5cc2-b2c2-f02a199ae2be" | |
} | |
] | |
}, | |
"streamSettings": { | |
"network": "ws", | |
"wsSettings": { | |
"path": "/host/5b5b3c61-dfba-5cc2-b2c2-f02a199ae2be/ws" | |
} | |
}, | |
"sniffing": { | |
"enabled": true, | |
"destOverride": [ | |
"http", | |
"tls", | |
"quic" | |
] | |
} | |
}, | |
{ | |
"tag": "outlook-xhttp", | |
"port": 9090, | |
"protocol": "vmess", | |
"settings": { | |
"clients": [ | |
{ | |
"id": "5b5b3c61-dfba-5cc2-b2c2-f02a199ae2be" | |
} | |
] | |
}, | |
"streamSettings": { | |
"network": "xhttp", | |
"xhttpSettings": { | |
"path": "/host/5b5b3c61-dfba-5cc2-b2c2-f02a199ae2be/xhttp" | |
} | |
}, | |
"sniffing": { | |
"enabled": true, | |
"destOverride": [ | |
"http", | |
"tls", | |
"quic" | |
] | |
} | |
} | |
] | |
} |
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
[Setup] | |
Lang=en | |
Dir=D:\Games\World_of_Tanks_ASIA | |
Group=(Default) | |
NoIcons=0 | |
SetupType=custom | |
Components=modpack,modpack\camera,modpack\camera\zoomin,modpack\camera\zoomin\2_4_6_8_10_12_20_28_34_40_50_60,modpack\camera\handbrakeoff,modpack\camera\horizontalstabilization,modpack\camera\penetrationindicator,modpack\camera\penetrationindicator\reducedarmor,modpack\camera\penetrationindicator\reducedarmor\default,modpack\camera\sight,modpack\camera\sight\pmod,modpack\camera\sight\pmod\fancy,modpack\crosshairs,modpack\crosshairs\battleassistant,modpack\dmgindicator,modpack\dmgindicator\meltys,modpack\aimhelpingmods,modpack\aimhelpingmods\autoaim_indicator,modpack\aimhelpingmods\autoaim_indicator\timesnapping,modpack\aimhelpingmods\autoaim_indicator\timesnapping\1,modpack\aimhelpingmods\balcalcmod,modpack\aimhelpingmods\balcalcmod\q,modpack\shell_info,modpack\garagemods,modpack\garagemods\unanonymizer_on_battle_results_rajcel,modpack\various,modpack\various\discord_rich_presence,modpack\various\fast_reconnect | |
Tasks=install_clean,deletepython,wot_cache |
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
location ^~ /host/5b5b3c61-dfba-5cc2-b2c2-f02a199ae2be/ws { | |
include /config/nginx/proxy.conf; | |
include /config/nginx/resolver.conf; | |
set $upstream_app 10.88.13.80; | |
set $upstream_port 80; | |
set $upstream_proto http; | |
proxy_pass $upstream_proto://$upstream_app:$upstream_port; | |
} | |
location ^~ /host/5b5b3c61-dfba-5cc2-b2c2-f02a199ae2be/xhttp { | |
include /config/nginx/proxy.conf; | |
include /config/nginx/resolver.conf; | |
client_max_body_size 0; | |
client_body_timeout 5m; | |
grpc_read_timeout 315; | |
grpc_send_timeout 5m; | |
grpc_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
set $upstream_app 10.88.13.80; | |
set $upstream_port 9090; | |
set $upstream_proto grpc; | |
grpc_pass $upstream_proto://$upstream_app:$upstream_port; | |
} |
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
function Update-WoTAslain { | |
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSReviewUnusedParameter', '')] | |
[CmdletBinding(SupportsShouldProcess)] | |
param( | |
[string]$Path = 'D:\Games\World_of_Tanks_ASIA', | |
[string]$Version = (Select-Xml -Path "$Path\version.xml" -XPath '/version.xml/version' ` | |
| ForEach-Object { $_.Node }).InnerXml.Split(' ')[1].Substring(2) | |
) | |
$ErrorActionPreference = 'Stop' | |
$scriptBlockList = @() | |
if ($PSCmdlet.ShouldProcess('Generate jobs to download mods')) { | |
$scriptBlockList += { | |
Start-Process -FilePath 'https://wotinspector.com/baactivate' | |
Start-Process -FilePath 'https://wgmods.net/46/' | |
} | |
} | |
if ($PSCmdlet.ShouldProcess('Execute jobs to download mods')) { | |
$scriptBlockList | ForEach-Object { Start-Job -ScriptBlock $_ } | |
Get-Job | Wait-Job; | |
} | |
} | |
function Update-WoTSpeak { | |
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSReviewUnusedParameter', '')] | |
[CmdletBinding(SupportsShouldProcess)] | |
param( | |
[string]$Path = 'D:\Games\World_of_Tanks_ASIA', | |
[string]$Version = (Select-Xml -Path "$Path\version.xml" -XPath '/version.xml/version' ` | |
| ForEach-Object { $_.Node }).InnerXml.Split(' ')[1].Substring(2) | |
) | |
$ErrorActionPreference = 'Stop' | |
$scriptBlockList = @() | |
if ($PSCmdlet.ShouldProcess('Create temporary directory')) { | |
mktmp | |
} | |
if ($PSCmdlet.ShouldProcess('Generate jobs to download mods')) { | |
$scriptBlockList += { | |
Invoke-WebRequest -Uri 'https://down.wotspeak.org/zj_mod/TargetDirection.rar' ` | |
-OutFile 'TargetDirection.rar' | |
&"$env:ProgramFiles\7-zip\7z.exe" x '-oTargetDirection' 'TargetDirection.rar' | |
Copy-Item -Path 'TargetDirection' -Exclude @('*.url', '*.txt') ` | |
-Destination "_WoT\res_mods\$using:Version" -Recurse -Force | |
} | |
$scriptBlockList += { | |
Invoke-WebRequest -Uri 'https://down.wotspeak.org/mods_no_work/525-mod_atac.zip' ` | |
-OutFile 'ATAC.zip' | |
Expand-Archive -Path 'ATAC.zip' | |
$variant = Get-ChildItem -Path 'ATAC' | Select-String -Pattern '150' | |
Copy-Item -Path "$variant\*" -Exclude @('*.url', '*.txt') ` | |
-Destination "_WoT\res_mods\$using:Version" -Recurse -Force | |
} | |
$scriptBlockList += { | |
Invoke-WebRequest -Uri 'https://down.wotspeak.org/armor/wg/mod_MGM.zip' ` | |
-OutFile 'MinimapGunMarkers.zip' | |
Expand-Archive -Path 'MinimapGunMarkers.zip' | |
Copy-Item -Path 'MinimapGunMarkers\mods' -Exclude @('*.url', '*.txt') ` | |
-Destination '_WoT' -Recurse -Force | |
} | |
# 'lesta' for RU, 'wg' for others | |
@( | |
'WotspeakDestructionsBeholder', | |
'WotspeakRedBall' | |
) | ForEach-Object { | |
$scriptBlockList += [scriptblock]::Create(@" | |
Invoke-WebRequest -Uri "https://down.wotspeak.org/wotspeakmods/wg/$_.zip" `` | |
-OutFile "$_.zip" | |
Expand-Archive -Path "$_.zip" | |
Copy-Item -Path "$_\mods" -Exclude @('*.url', '*.txt') `` | |
-Destination '_WoT' -Recurse -Force | |
"@) | |
} | |
} | |
if ($PSCmdlet.ShouldProcess('Execute jobs to download mods')) { | |
$scriptBlockList | ForEach-Object { Start-Job -ScriptBlock $_ } | |
Get-Job | Wait-Job; | |
} | |
if ($PSCmdlet.ShouldProcess("Copy mods from temporary directory to $Path")) { | |
Copy-Item -Path '_WoT\*' -Destination "$Path" -Recurse -Force | |
} | |
if ($PSCmdlet.ShouldProcess('Remove temporary directory')) { | |
rmtmp | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment