Skip to content

Instantly share code, notes, and snippets.

@stogoh
stogoh / DownloadEndpoint.cs
Created January 3, 2024 17:31
ASP.NET Core In Memory File Download
internal static class DownloadEndpoint
{
public static void MapDownloadEndpoints(this IEndpointRouteBuilder builder)
{
builder
.MapGet("/api/download/{containerId}", DownloadContainer);
}
private static async Task DownloadContainer(
HttpContext context,
@stogoh
stogoh / 01-windows-setup
Last active November 29, 2022 19:13
Boxstarter Windows Setup
# Remove 3D Viewer
Write-Output "Removing 3D Viewer..."
Get-AppxPackage "*3DViewer*" | Remove-AppxPackage
# Camera
Write-Output "Removing Camera..."
Get-AppxPackage "Microsoft.WindowsCamera" | Remove-AppxPackage
# Feedback Hub
Write-Output "Removing Feedback Hub..."