Skip to content

Instantly share code, notes, and snippets.

@davidfowl
davidfowl / MinimalAPIs.md
Last active March 16, 2025 16:47
Minimal APIs at a glance
@frankhu-2021
frankhu-2021 / PrettifyJSON
Last active February 14, 2025 18:58
PrettyPrint JSON with .NET using Newtonsoft.Json
using Newtonsoft.Json;
public static string JsonPrettify(string json)
{
using (var stringReader = new StringReader(json))
using (var stringWriter = new StringWriter())
{
var jsonReader = new JsonTextReader(stringReader);
var jsonWriter = new JsonTextWriter(stringWriter) { Formatting = Formatting.Indented };
jsonWriter.WriteToken(jsonReader);
@issuran
issuran / Using kdiff3
Created July 12, 2018 13:34
Changing mergetool tool to use kdiff3 on Mac
The list of supported tools
$ git mergetool --tool-help
Setting kdiff3 as mergetool tool
$ git config --global merge.tool kdiff3
In case you want to config diff.tool
$ git config --global diff.tool kdiff3
If kdiff3 is not in your PATH environment also do
@smoll
smoll / USING-DIFFMERGE.md
Last active March 28, 2025 01:01
Using DiffMerge as your git mergetool (for Mac OS X / macOS)