Skip to content

Instantly share code, notes, and snippets.

View doggy8088's full-sized avatar
🙂
Giving is a reward in itself

Will 保哥 doggy8088

🙂
Giving is a reward in itself
View GitHub Profile
@doggy8088
doggy8088 / README.md
Last active June 5, 2024 14:53 — forked from Trenly/README.md
Install Winget to the Windows Sandbox Base Image

This powershell script modifies the Base Image, or the Virtual Hard Disk, which the Windows Sandbox launches upon startup. It will copy the required files to the sandbox and add a registry key which will install them upon startup. By default the script will install the latest stable release of Winget. You can specify to use the latest pre-release with the -PreRelease switch.

When a new version of Winget is released, run this script again to update the installation in the sandbox to the latest version

@doggy8088
doggy8088 / ResponseBuffering.cs
Created January 22, 2019 15:33 — forked from Dkowald/ResponseBuffering.cs
ResponseBuffering for Asp.Net core
using System;
using System.IO;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
// ReSharper disable once CheckNamespace
namespace kwd.gist
{
/// <summary>
public enum Order
{
Ascending,
Descending
}