Skip to content

Instantly share code, notes, and snippets.

@davidfowl
davidfowl / TimeHttpEvents.cs
Last active August 7, 2024 01:57
Using Yarp.Telemetry.Consumption to track outbound network events (this package isn't tied to YARP)
using System.Diagnostics;
using System.Net.Sockets;
using System.Security.Authentication;
using Yarp.Telemetry.Consumption;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddTelemetryConsumer<TelemetryConsumer>();
var app = builder.Build();
@tobiaslidstrom
tobiaslidstrom / calibre.md
Last active May 15, 2026 09:49
Tag based folder structure template for Calibre

Calibre Template

Generates the tag based folder structure

Tag/Author/Series (3) - Title/Author - Title.epub

Template Syntax

{:'sublist(raw_list('tags', ','), 0, 1, ',')'}/{:'re(sublist(field('authors'), 0, 2, ','), ',', ' &')'}/{series}{series_index:| (|) - }{title:re(:, -)}/{:'re(sublist(field('authors'), 0, 2, ','), ',', ' &')'} - {title:re(:, -)}
@AdamNaj
AdamNaj / about.md
Last active March 12, 2025 21:47
Z Wave Graph for Home Assistant