Skip to content

Instantly share code, notes, and snippets.

View moorer2k's full-sized avatar
🏠
Working from home

Moore moorer2k

🏠
Working from home
View GitHub Profile
@moorer2k
moorer2k / Set-XMRIG-Threads.ps1
Created May 28, 2021 03:06
Simple PowerShell script to change between your min / max threads to use for XMRIG on windows.
#Automatically switch between desired threads for XMRIG.
$path = 'C:\Users\Moore\Desktop\xmrig\config.json'
$minThreads = '15'
$maxThreads = '28'
if (Select-String -Path $path -Pattern "$minThreads," -SimpleMatch -Quiet)
{
(Get-Content $path) -replace "$minThreads,", "$maxThreads," | Out-File -encoding ASCII $path
}
@moorer2k
moorer2k / CustomRules.js
Last active December 10, 2024 19:51
Add custom ZSTD decompression to Fiddler Classic
public static RulesOption("Decode ZSTD")
BindPref("fiddlerscript.rules.DecodeZSTD")
var m_DecodeZSTD: boolean = false;
public static RulesOption("ZSTD Bin Path")
BindPref("fiddlerscript.rules.ZSTDBinPath")
var m_ZSTDBinPath = "D:\\Downloads\\zstd-v1.5.6-win64"; // Path to your zstd.exe bin
static function decodeZSTD(oSession: Session) {
var tempDir = System.IO.Path.GetTempPath();