Skip to content

Instantly share code, notes, and snippets.

View Suchiman's full-sized avatar

Robin Sue Suchiman

  • Germany
  • 19:35 (UTC +02:00)
View GitHub Profile

Create Windows Terminal shortcut in Windows + X context menu

Windows Terminal shortcut in WinX context menu

In Windows PowerShell do the following:

$folderPath = "$ENV:LOCALAPPDATA\Microsoft\Windows\WinX\Group3"
$adminFilePath = Join-Path $folderPath "00 - Windows Terminal.lnk"
$normalFilePath = Join-Path $folderPath "00a - Windows Terminal.lnk"
@KirillOsenkov
KirillOsenkov / AddGeneratedFile.csproj
Last active March 22, 2026 19:36
Sample of generating a .cs file during build and adding it to the compilation
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net472</TargetFramework>
</PropertyGroup>
<PropertyGroup>
<GeneratedText><![CDATA[
using System%3B
@SteveSandersonMS
SteveSandersonMS / sequence-number.md
Last active February 19, 2026 01:05
Why sequence numbers should relate to code line numbers, not execution order

Why sequence numbers should relate to code line numbers, not execution order

Or in other words, why you should hard-code sequence numbers, and not generate them programmatically.

Unlike .jsx files, .razor/.cshtml files are always compiled. This is potentially a great advantage for .razor, because we can use the compile step to inject information that makes things better or faster at runtime.

A key example of this are sequence numbers. These indicate to the runtime which outputs came from which distinct and ordered lines of code. The runtime uses this information to generate efficient tree diffs in linear time, which is far faster than is normally possible for a general tree diff algorithm.

Example

@richlander
richlander / instructions.md
Last active March 24, 2024 14:54
Installing .NET Core 3.0 on Linux ARM64

Installing .NET Core on Linux ARM64

The following intructions can be used to install .NET Core on Linux ARM64.

Pro tip: Check out .NET Core Docker files to determine the exact instructions for installing .NET Core builds, for example .NET Core 3.1 ARM32 SDK Dockerfile.

Installing .NET Core Globally

The following instructions install the latest .NET Core globally. It isn't required to do that, but it provides the best experience.

@tebeco
tebeco / RawConversation_NoLayout.txt
Created August 17, 2017 09:39
David Fowler AuthN
jeffpapp [8:13 AM]
Yeah, I’d be interested in that. Just haven’t had to look at monitors in a year or so
damccull [8:13 AM]
Ah hah...I was using DefaultAuthenticationScheme when apparently I should be using DefaultScheme.
[8:14]
yep
@eyecatchup
eyecatchup / mr.robot_season-2_easter-egg-sites.md
Last active March 12, 2026 21:11
A collection of "Mr. Robot" Season 2 Easter Egg Sites. #mrrobot #hackingrobot #robotegg
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace NotifyImpl