Skip to content

Instantly share code, notes, and snippets.

View DavidDeSloovere's full-sized avatar

David De Sloovere DavidDeSloovere

View GitHub Profile
@DavidDeSloovere
DavidDeSloovere / Startup.cs
Created May 12, 2022 14:23
ASP.NET Core - Only use compression for some endpoints
app.UseWhen(
context => context.Request.Path.StartsWithSegments("/api"),
builder => builder.UseResponseCompression());
@DavidDeSloovere
DavidDeSloovere / Microsoft.PowerShell_profile.ps1
Last active June 14, 2022 02:42
My PowerShell profile (code $PROFILE)
#oh-my-posh --init --shell pwsh --config ~/jandedobbeleer.omp.json | Invoke-Expression
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\jandedobbeleer.omp.json" | Invoke-Expression
# needs Install-Module -Name Terminal-Icons -Repository PSGallery
Import-Module -Name Terminal-Icons
# https://devblogs.microsoft.com/powershell/announcing-psreadline-2-1-with-predictive-intellisense
Set-PSReadLineOption -PredictionSource History
Set-PSReadLineOption -PredictionViewStyle ListView