Skip to content

Instantly share code, notes, and snippets.

View xdhmoore's full-sized avatar

Daniel Moore xdhmoore

View GitHub Profile
@mklement0
mklement0 / PSReadLineMetaInfoKeyHandler.ps1
Last active April 26, 2021 13:11
PowerShell sample code that demonstrates a PSReadLine key handler that display meta-information about the command being typed in real time.
<#
License: MIT
Author: Michael Klement <mklement0@gmail.com>
See https://stackoverflow.com/a/67266971/45375 for more information.
#>
# The printable characters to respond to.
@mklement0
mklement0 / Invoke-WithEncoding.ps1
Last active September 7, 2023 18:59
PowerShell function for invoking native (external) programs with a specified character encoding
<#
Prerequisites: PowerShell v3+
License: MIT
Author: Michael Klement <mklement0@gmail.com>
DOWNLOAD and DEFINITION OF THE FUNCTION:
irm https://gist.github.com/mklement0/ef57aea441ea8bd43387a7d7edfc6c19/raw/Invoke-WithEncoding.ps1 | iex
@triangular-sneaky
triangular-sneaky / AdvancedWindowSnap.ahk
Last active August 16, 2020 21:36 — forked from AWMooreCO/AdvancedWindowSnap.ahk
Advanced Window Snap is a script for AutoHotKey that expands upon Windows built-in window-snapping hotkeys.
/**
* Advanced Window Snap
* Snaps the Active Window to one of nine different window positions.
*
* @author Andrew Moore <andrew+github@awmoore.com>
* @version 1.0
*/
/**
* SnapActiveWindow resizes and moves (snaps) the active window to a given position.