Skip to content

Instantly share code, notes, and snippets.

View Aaronontheweb's full-sized avatar
🚀
Shipping!

Aaron Stannard Aaronontheweb

🚀
Shipping!
View GitHub Profile
@Aaronontheweb
Aaronontheweb / readme.md
Last active December 9, 2024 15:38
Building Your First Whiskey Collection

Building Your First Whiskey Collection

I got really into Scotch when I turned 30 years old and took a father-son trip through England and Scotland. Since then it's been one of my favorite hobbies and I've built a great collection over the past few years that I enjoy sharing with my friends and family.

A lot of the people in my circle have expressed interest in learning whiskey and how to build their own collection - so I put this together as a short guide to help explain how to build a tasty, diverse, and affordable "Starter Whiskey Collection." Enjoy!

A Beginner's Palette

Tasting whiskey or any hard liquor can be a challenge at first, because the alcohol flavor overwhelms the sugars, esters, and other residues from the fermentation and aging process. We want to be able to taste the stuff in the latter category without being perturbed by the former.

This guide is designed to help steer readers towards whiskeys that are easy to drink: ones with a naturally sweet or slightly berry flavor. As you start

@Aaronontheweb
Aaronontheweb / loadtest.linq
Created November 21, 2024 02:19
LINQPad HTTP Load Testing
async Task Main()
{
// Configuration
const string url = "Your URL here"; // Replace with your URL
const int numberOfRequests = 2000; // Adjust the number of requests as needed
// Data storage
var tasks = new List<Task<RequestResult>>();
// HTTP Client setup
@Aaronontheweb
Aaronontheweb / MaterializedViewBenchmark.cs
Last active September 19, 2024 19:43
MaterializedViewState Serialization
// Note that you must explicitly enable compiler optimizations:
#LINQPad optimize+
void Main()
{
Util.AutoScrollResults = true;
BenchmarkRunner.Run<MaterializedViewStateBenchmarks>();
}
// You can define other methods, fields, classes and namespaces here
@Aaronontheweb
Aaronontheweb / dashboard.json
Created September 4, 2024 20:50
Phobos Experimental OTLP Dashboards (Prometheus Data Source, Grafana Dashboard)
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
@Aaronontheweb
Aaronontheweb / AspDotNetClusteredRouterIntegrationSpec.cs
Created August 29, 2024 15:04
Akka.NET Integration Testing with WebApplicationFactory
// -----------------------------------------------------------------------
// <copyright file="AspDotNetClusteredRouterIntegrationSpec.cs" company="Petabridge, LLC">
// Copyright (C) 2021 - 2021 Petabridge, LLC <https://petabridge.com>
// </copyright>
// -----------------------------------------------------------------------
using System.Threading.Tasks;
using Phobos.Actor.Cluster.Integration.Tests.Services;
using Xunit;
using Xunit.Abstractions;
@Aaronontheweb
Aaronontheweb / docker-compose.yml
Created August 7, 2024 01:56
Docker Registry Self-Host
services:
registry:
image: registry:2
restart: unless-stopped
ports:
- "5000:5000"
environment:
REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /data
volumes:
- reg-data:/data
@Aaronontheweb
Aaronontheweb / genericparent.cs
Last active July 5, 2024 18:32
GenericChildPerEntityParent Actor
// -----------------------------------------------------------------------
// <copyright file="GenericChildPerEntityParent.cs" company="Akka.NET Project">
// Copyright (C) 2015-2023 .NET Petabridge, LLC
// </copyright>
// -----------------------------------------------------------------------
using Akka.Actor;
using Akka.Cluster.Sharding;
namespace Sdkbin.NuGet.Actors.Utility;
@Aaronontheweb
Aaronontheweb / grafana-loadbalancer.yaml
Last active June 13, 2024 14:02
MicroK8s observability load balancers
apiVersion: v1
kind: Service
metadata:
name: grafana-loadbalancer
namespace: observability
spec:
type: LoadBalancer
selector:
app.kubernetes.io/name: grafana
ports:
@Aaronontheweb
Aaronontheweb / configure-docker-drives.sh
Last active June 12, 2024 16:23
Raspberry PI External SSD Scripts
#!/bin/bash
# create the docker data drive
mkdir /mnt/docker-base
# allow the root service account, which docker runs as, to own this directory and have write permissions
chown -R root:root /mnt/docker-base
chmod 701 /mnt/docker-base
# create a `daemon.json` file for the docker runtime
@Aaronontheweb
Aaronontheweb / spec.md
Last active June 10, 2024 19:09
Technical Spec Template

Engineering Spec

💡 Use this template to help structure new engineering projects into specifications. Make sure you attach this spec to the right project - if it’s not a flagship technology then it goes under "Other Projects"

Abstract

Problem statement - what is the nature of the issue we’re going to try to solve with this specification?