Skip to content

Instantly share code, notes, and snippets.

View MeikelLP's full-sized avatar
🎮
Mod it till it breaks

Meikel Philipp MeikelLP

🎮
Mod it till it breaks
  • Konzept & Marketing GmbH
  • Germany
  • 09:25 (UTC +02:00)
View GitHub Profile
@MeikelLP
MeikelLP / MinimalSyncExample.csproj
Last active August 24, 2021 20:21
How to send message sync in MassTransit?
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MassTransit.Extensions.DependencyInjection" Version="7.1.8" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.1" />
@MeikelLP
MeikelLP / unity-null.md
Last active August 8, 2019 12:11
Unity null & is null & == true

The .? operator ignores the overridden == operator of UnityEngine.Object. It is basically a x is null check under the hood.

assuming obj is a UnityEngine.Object

UnityEngine obj;

// declare and set null
obj = null;
@MeikelLP
MeikelLP / git-no-assume-unchanged.ps1
Created June 5, 2019 14:01
When Git does not want to track your files
git ls-files -v | Where-Object { $_ -cmatch '^h' } | ForEach-Object { git update-index --no-assume-unchanged "$($_.replace('h ', ''))" }