Skip to content

Instantly share code, notes, and snippets.

View simonziegler's full-sized avatar

Simon Ziegler simonziegler

View GitHub Profile
@simonziegler
simonziegler / ISpeechRecognizerService.cs
Created February 2, 2023 08:50
ASP.NET Speech Recognition Service
using Microsoft.CognitiveServices.Speech;
namespace UtilityNamespace;
/// <summary>
/// A service interface to recognize speech. Intended to be used as a transient service.
/// </summary>
public interface ISpeechRecognizerService
{
@simonziegler
simonziegler / startup-failure.log
Created April 6, 2022 12:13
Postcodes io db startup failure log
/home/LogFiles/__lastCheckTime.txt (https://dioptra-postcodes-io-02.scm.azurewebsites.net/api/vfs/LogFiles/__lastCheckTime.txt)04/06/2022 11:57:33
/home/LogFiles/kudu/trace/10c22d4b3155-3e3bc23f-6f66-425f-9786-8ad7cdca0757.txt (https://dioptra-postcodes-io-02.scm.azurewebsites.net/api/vfs/LogFiles/kudu/trace/10c22d4b3155-3e3bc23f-6f66-425f-9786-8ad7cdca0757.txt)
2022-04-05T13:35:54 Startup Request, url: /api/logs/docker, method: GET, type: request, pid: 67,1,6, ScmType: None
/home/LogFiles/kudu/trace/23731dfe0e93-ba0e0d46-90f3-4850-baf3-22bf65da01b7.txt (https://dioptra-postcodes-io-02.scm.azurewebsites.net/api/vfs/LogFiles/kudu/trace/23731dfe0e93-ba0e0d46-90f3-4850-baf3-22bf65da01b7.txt)
2022-04-05T14:07:53 Startup Request, url: /api/logs/docker, method: GET, type: request, pid: 128,1,10, ScmType: None
/home/LogFiles/kudu/trace/42a19cee4626-98756cba-cf04-47af-9089-fed2ded29bd7.txt (https://dioptra-postcodes-io-02.scm.azurewebsites.net/api/vfs/LogFiles/kudu/trace/42a19cee4626-98756cba-cf04-47af-9089-fed
@inherits TestComponentBase
<SnapshotTest Setup="Setup">
<TestInput>
<MBCheckbox Label="Hello" />
</TestInput>
<ExpectedOutput>
<div class="mdc-form-field">
<div class="mdc-touch-target-wrapper">
@simonziegler
simonziegler / ChildComponent.razor
Last active June 18, 2021 06:27
CascadingValue is hopefully not null
@if (stuff)
{
<div>Stuff</div>
}
else
{
<div>More Stuff</div>
}
@code
@simonziegler
simonziegler / gist:9ebbaab936cac2d51df5eba6667b4ae1
Created February 26, 2021 08:35
B2C Errors immediately after logging in. Page refresh on the app gets B2C data correctly
08:32:01.832 [INF] Request finished HTTP/2 GET https://localhost:5001/ - - - 302 0 - 3291.1209ms
08:32:06.522 [INF] Request starting HTTP/2 POST https://localhost:5001/signin-oidc application/x-www-form-urlencoded 1531
08:32:06.657 [INF] (False) MSAL 4.26.0.0 MSAL.NetCore Microsoft Windows 10.0.19042 [02/26/2021 08:32:06 - ] MSAL MSAL.NetCore with assembly version '4.26.0.0'. CorrelationId(3b044617-9925-4cb0-b290-feb5012d63d3)
08:32:06.681 [INF] (False) MSAL 4.26.0.0 MSAL.NetCore Microsoft Windows 10.0.19042 [02/26/2021 08:32:06 - ]
=== Request Data ===
Authority Provided? - True
Scopes - https://dioptraCY271GY0CF26DMG9.onmicrosoft.com/a58dadee-29fb-4cb8-9998-29be27b78e24/API.Access
Extra Query Params Keys (space separated) -
ApiId - AcquireTokenByAuthorizationCode
IsConfidentialClient - True