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 / helloworld-node.js
Created January 28, 2012 02:07
Node.JS: Hello World w/ IP Address
/* Basic HelloWorld Node.JS example */
var http = require('http');
//Node function called each time our event loop receives a new HTTP request
function onRequest(req, res){
res.writeHead(200, {'Content-Type':'text/plain'});
res.end('Hello ' + req.connection.remoteAddress + '!');
/* Write the IP addresses of our connecting client to console */
console.log('Incoming connection from ' + req.connection.remoteAddress);
@Aaronontheweb
Aaronontheweb / spec.md
Last active September 27, 2023 10:55
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?

@Aaronontheweb
Aaronontheweb / packAll.ps1
Created September 25, 2023 21:50
Pack all nuget packages in directory
# Get the current directory
$currentDirectory = Get-Location
# Define a common output directory for the packed projects
$outputDirectory = Join-Path -Path $currentDirectory -ChildPath 'packed'
# Create the output directory if it doesn't exist
if (-not (Test-Path $outputDirectory)) {
New-Item -Path $outputDirectory -ItemType Directory
}
@Aaronontheweb
Aaronontheweb / build.ps1
Last active August 15, 2023 18:05
Dacpac deploy script
# Define a parameter for the connection string
param (
[string]$ConnectionString = $null
)
# Step 1: Check if SqlPackage is installed, if not, install it
try {
SqlPackage
} catch {
Write-Host "SqlPackage is not installed, proceeding with the installation..."
@Aaronontheweb
Aaronontheweb / initialization.mermaid
Created April 12, 2023 20:00
reliable delivery sequences
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Aaronontheweb
Aaronontheweb / recovery.mermaid
Last active April 12, 2023 19:49
Akka.Persistence Recovery Mermaid Sequence Diagram
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Aaronontheweb
Aaronontheweb / readme.md
Last active April 11, 2023 03:54
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 / dotnet-monitor-grafana.json
Last active November 1, 2022 15:06
dotnet-monitor parameterized Prometheus dashboard for K8s
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
@Aaronontheweb
Aaronontheweb / lesson3-integration-with-actors.ipynb
Created August 26, 2021 21:56
Background code .NET interactive notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.