Skip to content

Instantly share code, notes, and snippets.

@bentman
bentman / Add-DevToMyWinServer.ps1
Last active January 14, 2026 14:03
Install Dev Tools on Win Server 2022+
<#
.SYNOPSIS
Script to install Dev Tools on Windows Server (tested on 2022)
.DESCRIPTION
Reference script (gist) for manual execution on Windows Server 2022+.
Requires user interaction for installations. Installs dev tools in order:
1. Microsoft.VCLibs (latest via GitHub winget-cli deps)
2. Microsoft.UI.Xaml (latest via GitHub API)
3. winget-cli (latest via GitHub API)
4. Microsoft.WindowsTerminal (latest via GitHub API)
@NickPolyder
NickPolyder / git-config
Last active November 19, 2025 13:40
Git aliases for streamlined operations (insert on .gitconfig)
[diff]
tool = meld
guitool = meld
[difftool]
prompt = true
[merge]
tool = meld
guitool = meld
[mergetool]
prompt = true
@zaus
zaus / DelayedRenderExtensions.cs
Created September 27, 2013 18:06
RenderSections in PartialViews -- delayed rendering of any HTML content. See SO answer: http://stackoverflow.com/a/18790222/1037948
public static class HtmlRenderExtensions {
/// <summary>
/// Delegate script/resource/etc injection until the end of the page
/// <para>@via http://stackoverflow.com/a/14127332/1037948 and http://jadnb.wordpress.com/2011/02/16/rendering-scripts-from-partial-views-at-the-end-in-mvc/ </para>
/// </summary>
private class DelayedInjectionBlock : IDisposable {
/// <summary>
/// Unique internal storage key
/// </summary>