Skip to content

Instantly share code, notes, and snippets.

View aldrichtr's full-sized avatar

Tim Aldrich aldrichtr

View GitHub Profile
@CaptainVincent
CaptainVincent / README.md
Last active February 20, 2025 00:23
Improve your vscode quickinput-widget

Customize your quickinput-widget

This is a small tool designed to emulate the Sublime style Command Palette as follows.

Screenshot

It requires the use of a specific extension to load the js file from this gist.

I'm using the APC extension, and the usage is as follows.

@AdamDempsey
AdamDempsey / gist:fc2f6daf7d93c549c9527702088013d8
Created February 4, 2022 11:44
Windows Server 2019 - Latest Build Numbers
$request = Invoke-WebRequest "https://support.microsoft.com/en-gb/help/4464619" –UseBasicParsing
If ($request.StatusCode -eq 200) {
$Matches = [regex]::Matches($request.Content, 'href="([a-z0-9-\/]*)">([a-zA-Z]*) ([0-9]{1,2}), ([0-9]{4}).*?(KB[0-9]*) \(OS Build 17763.([0-9]*)\)(?: ([a-zA-Z-]*)<\/a>)?')
if ($Matches.Count -gt 0) {
$LatestServer2019Raw = [PSCustomObject]@{
'OS build' = $Matches[0].Groups[6].Value
'Date' = "$($Matches[0].Groups[3].Value) $($Matches[0].Groups[2].Value) $($Matches[0].Groups[4].Value)"
'URL' = "https://support.microsoft.com$($Matches[0].Groups[1].Value)"
'KB' = $Matches[0].Groups[5].Value
'Info' = $Matches[0].Groups[7].Value
@codebykyle
codebykyle / connect.ps1
Last active March 20, 2025 00:57
Windows Terminal Split Pane Powershell Script - v2
using namespace System.Collections.Generic
# Encapsulate an arbitrary command
class PaneCommand {
[string]$Command
PaneCommand() {
$this.Command = "";
}
@Jaykul
Jaykul / About.md
Last active March 27, 2022 00:40
Indent and Outdent hotkeys for PSReadline

Here's a couple of key handlers to add indenting and outdenting with Alt [ and ] for PSReadLine.

@br3ndonland
br3ndonland / github-actions-notes.md
Last active February 12, 2025 05:53
Getting the Gist of GitHub Actions