Skip to content

Instantly share code, notes, and snippets.

View joelverhagen's full-sized avatar

Joel Verhagen joelverhagen

View GitHub Profile
using System.Globalization;
using System.Net.Http.Headers;
using System.Text;
using System.Text.Json;
using System.Text.Json.Serialization;
using CsvHelper;
using CsvHelper.Configuration;
using CsvHelper.Configuration.Attributes;
using CsvHelper.TypeConversion;
@joelverhagen
joelverhagen / chart.png
Last active March 12, 2021 19:59
orleans runs
chart.png
Id Version
2.0.0-alpha1 2.0.0-alpha1
AbstractUltraGrid 1.0.0
AbstractUltraGrid 1.0.1
Acheve.AspNet.TestHost.Security 1.0.0-rc1-final
Acr.BarCodes.TEMP 3.2.0
Adform.Advertising.SDK 2.0.1
Adform.Advertising.SDK 2.0.2
Adform.Advertising.SDK 2.0.2.1
Adform.Advertising.SDK 2.0.3
@joelverhagen
joelverhagen / AuthHelper.cs
Created February 27, 2021 01:16
Manual validate AAD OAuth 2.0 JWT in Azure Functions
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using System.Security.Claims;
using Microsoft.IdentityModel.Protocols.OpenIdConnect;
using Microsoft.IdentityModel.Protocols;
using Microsoft.IdentityModel.Tokens;
using System.IdentityModel.Tokens.Jwt;
using System.Linq;
using System.Collections.Concurrent;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Table;
namespace EntityLimits
{
class Program
{
@joelverhagen
joelverhagen / Output.txt
Created January 10, 2021 07:06
Entity limits
Size: 1048488 (1048576 - 1048488 = 88)... success!
Size: 1048489 (1048576 - 1048489 = 87)... Bad Request
public class AsyncDisposableTest : IAsyncDisposable, IDisposable
{
private readonly ILogger<AsyncDisposableTest> _logger;
public AsyncDisposableTest(ILogger<AsyncDisposableTest> logger)
{
_logger = logger;
_logger.LogWarning("CREATED");
}
@joelverhagen
joelverhagen / Program.cs
Last active September 8, 2020 21:22
Get supported frameworks of a package
using NuGet.Client;
using NuGet.ContentModel;
using NuGet.Frameworks;
using NuGet.Packaging;
using NuGet.Packaging.Core;
using NuGet.RuntimeModel;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
@joelverhagen
joelverhagen / main.py
Created May 17, 2020 22:47
Convert NuGet restore logs to XES (process mining) format
import os
import collections
import urllib
from pm4py.objects.log.log import EventLog, Trace, Event
from pm4py.objects.log.exporter.xes import exporter as xes_exporter
solutionNameToSourcesToEventLog = {}
for (dirPath, dirNames, fileNames) in os.walk(r"logs"):
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.