replace (WeaponUpgrades.json ... etc)
("itemDataAsset":\s*"DA_ItemBase'/.*/Rare_Resources/.*'",\s*\n\s+"amount":\s*)\d+
to
$10
(its '$1'+'0')
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 IsVirtualTerminalProcessingEnabled { | |
| $MethodDefinitions = @' | |
| [DllImport("kernel32.dll", SetLastError = true)] | |
| public static extern IntPtr GetStdHandle(int nStdHandle); | |
| [DllImport("kernel32.dll", SetLastError = true)] | |
| public static extern bool GetConsoleMode(IntPtr hConsoleHandle, out uint lpMode); | |
| '@ | |
| $Kernel32 = Add-Type -MemberDefinition $MethodDefinitions -Name 'Kernel32' -Namespace 'Win32' -PassThru | |
| $hConsoleHandle = $Kernel32::GetStdHandle(-11) # STD_OUTPUT_HANDLE | |
| $mode = 0 |
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
| $l=(Get-ChildItem C:\Programs\Python39\Lib -Name) | |
| Get-ChildItem -Exclude .\site-packages\ | Where-Object {!($_.Name -in $l)} | Move-Item -Destination .\site-packages\ -Force |
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-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Program Files\PowerShell\7\pwsh.exe" -PropertyType String -Force |
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
| (saved_event_target={(?:.*\s){0,3})(id=549)((?:.*\s){0,3}}) | |
| replace to: | |
| $1id=469$3 | |
| # $1 id=469 $3 |
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
| { | |
| "version": "v3.0.0-alpha.11", | |
| "description": "A wrapper executable that can be used to host any executable as a Windows service", | |
| "homepage": "https://github.com/winsw/winsw", | |
| "license": "MIT", | |
| "architecture": { | |
| "64bit": { | |
| "url": "https://github.com/winsw/winsw/releases/download/v3.0.0-alpha.11/WinSW-x64.exe#/WinSW.exe", | |
| "hash": "a2daa6a33a9c2b791ae31d9092e7935c339d1e03e89bfb747618ce2f4e819e20" | |
| }, |
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
| 1 .. 10 | ForEach-Object { | |
| $n = "$(if ("$_".Length -eq 1) { "0$_" }else { "$_" })" + ".mp4" | |
| Write-Output $n | |
| ffmpeg -i $n -c copy $n.Replace(".mp4", "_.mp4") | |
| Move-Item $n _del | |
| } |
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
| "AppState" | |
| { | |
| "appid" "1245620" | |
| "name" "Eldenring" | |
| "installdir" "Eldenring" | |
| } |
NewerOlder