Skip to content

Instantly share code, notes, and snippets.

@writzx
writzx / timerService.ps1
Last active July 19, 2023 06:53
Modified ryzenAdj PS Script for applying config periodically without monitoring. No dependency on inpoutx64.dll (no problem with anticheats).
Param([Parameter(Mandatory=$false)][switch]$noGUI)
$Error.Clear()
################################################################################
#### Configuration Start
################################################################################
# WARNING: Use at your own risk!
$pathToRyzenAdjDlls = Split-Path -Parent $PSCommandPath
$monitorPowerSlider = $true
@writzx
writzx / account_switcher.ps1
Created March 29, 2021 00:42
Simple Account Switcher Script for Guild Wars 2: Powershell 5.1
Add-Type -AssemblyName System.Windows.Forms
function Join-Paths {
$path = $args[0]
$args[1..$args.Count] | % { $path = Join-Path $path $_ }
$path
}
function Get-Char {
"$($Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown').Character)".ToUpper()
}
@writzx
writzx / archive.sh
Created June 1, 2020 15:55
creates a zip for the node project properly
#!/bin/bash
DIRECTORY="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd ${DIRECTORY}
rm -f "./../${DIRECTORY##*/}.zip"
zip -r "./../${DIRECTORY##*/}.zip" . -x "./node_modules/*" "./*/node_modules/*" "./*/*/node_modules/*" "./.git/*" "./*/.git/*" "./*/*/.git/*" `basename "$0"`
open -R "./../${DIRECTORY##*/}.zip"