Skip to content

Instantly share code, notes, and snippets.

View iyre's full-sized avatar

Miles Miller iyre

View GitHub Profile
@iyre
iyre / screen_hz.ahk
Created December 22, 2023 00:48
AutoHotkey script to change the refresh rate of your primary display
#Requires AutoHotkey v2.0
#SingleInstance
A_IconTip := "Change screen refresh rate"
; Based on an AHK v1 script from this Reddit post
; https://www.reddit.com/r/AutoHotkey/comments/qeqhfs/switch_refresh_rate_using_hotkeys/
; Hotkey modifier symbols: #=Win, !=Alt, ^=Ctrl, +=Shift
; Find and set max supported refresh rate for primary monitor
@iyre
iyre / Export-IconImageManifest.ps1
Created January 25, 2025 07:28
Export an HTML manifest of icons contained in a DLL
# based on https://renenyffenegger.ch/notes/Windows/PowerShell/examples/WinAPI/ExtractIconEx
function Export-IconImageManifest {
param (
[String]$DllPath = "$env:SYSTEMROOT\System32\imageres.dll"
)
if (! (test-path $dllPath)) {
write-output "$dllPath is not a file"
return
}