Skip to content

Instantly share code, notes, and snippets.

View DanielMPries's full-sized avatar

Dan Pries DanielMPries

  • Buffalo, NY
View GitHub Profile
@DanielMPries
DanielMPries / .bash_aliases
Created December 26, 2019 16:06
Allows for dotnet_update_packages command
function read_solution() {
echo "Parsing solution $1"
while IFS='' read -r line || [[ -n "$line" ]]; do
if [[ $line =~ \"([^\"]*.csproj)\" ]]; then
project="${BASH_REMATCH[1]}"
read_project "$(echo "$project"|tr '\\' '/')"
fi
done < "$1"
@DanielMPries
DanielMPries / Program.cs
Last active February 1, 2023 17:09
Open Telemetry OLTP Collector
global using FastEndpoints;
using System.Reflection;
using FastEndpoints.Swagger;
using FluentMigrator.Runner;
using OpenTelemetry.Instrumentation.AspNetCore;
using Microsoft.Extensions.Caching.Distributed;
using Microsoft.Extensions.Caching.StackExchangeRedis;
using QuickI18N.API.Caching;
@DanielMPries
DanielMPries / is-json-schema.validator.ts
Last active December 21, 2024 02:42
NestJs JSON schema validator
import Ajv from 'ajv/dist/2020';
import {
ValidationArguments,
ValidatorConstraint,
ValidatorConstraintInterface,
ValidatorOptions,
registerDecorator,
} from 'class-validator';