Fix for running scripts (ex. PostUp, PostDown) in WireGuard Client for Windows OS 10 and above.
reg add HKLM\Software\WireGuard /v DangerousScriptExecution /t REG_DWORD /d 1 /fFix for running scripts (ex. PostUp, PostDown) in WireGuard Client for Windows OS 10 and above.
reg add HKLM\Software\WireGuard /v DangerousScriptExecution /t REG_DWORD /d 1 /f| [Interface] | |
| PrivateKey = ... | |
| Address = 10.8.1.3/32 | |
| DNS = 1.1.1.1 | |
| PostUp = powershell -command 'New-NetRoute -DestinationPrefix "<excluded ip>/32" -NextHop "192.168.0.1"' | |
| PostDown = powershell -command 'Remove-NetRoute -DestinationPrefix "<excluded ip>/32"' | |
| [Peer] | |
| PublicKey = ... | |
| PresharedKey = ... |
Author: @wushangwei
Source:
microsoft/WSL#5784 (comment)
I once had the opposite problem: WSL2 lost internet connection when connected to WIreGuard VPN.
I solved the problem by editing the "AllowedIPs“ field of WireGuard conf:
[Interface]
PrivateKey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxYeah and without reinstall.
ChromeSetup.exe --force-fre-default-browser-step --make-chrome-default --make-default-browserCounting score of the latest -N reviews on OZON.ru
// upd 26/10/2024
let userScores = Array.from(document.querySelectorAll('div[data-widget="webListReviews"] div'))
.map(div => Array.from(div.children).filter(child => child.tagName === 'svg' && child.style.color === 'rgb(255, 168, 0)').length)
.filter(score => score > 0)
.slice(0, 10); // Get the first 10 scores
const totalScore = Math.max(1, Math.min(userScores.reduce((acc, score) => acc + score, 0) / userScores.length, 5));| @echo off | |
| net session >nul 2>&1 | |
| if %errorlevel% neq 0 ( | |
| echo Requesting administrative privileges... | |
| powershell -Command "Start-Process '%~f0' -Verb RunAs" | |
| exit /b | |
| ) | |
| wsl sudo fstrim --all; echo "Exit status: $?"; |
I ran the application (Intellij IDEA in my case) like this (without VcXsrv) in WSL2.
export LIBGL_ALWAYS_SOFTWARE=1 && export DISPLAY=:0 && nohup idea.sh &But after some time I observed 1-5-10 second freezes in the GUI interface.
| javascript:location.href="https://www.kinopoisk.ru/index.php?kp_query="+document.title.split("(")[0] |