Skip to content

Instantly share code, notes, and snippets.

View PeterKneale's full-sized avatar

Peter Kneale PeterKneale

View GitHub Profile
@PeterKneale
PeterKneale / terms.md
Last active May 18, 2023 03:02
study - genetics

Courses

MITx

  • 7.00x Introduction to Biology - The Secret of Life
  • 7.03.1x Genetics: The Fundamentals
  • 7.03.2x Genetics: Analysis and Application
  • 7.05x Biochemistry: Biomolecules, Methods, and Mechanisms
  • 7.QBWx Quantitative Biology Workshop
  • 7.06.1x Cell Biology: Transport & Signaling, open for self-paced learning
@PeterKneale
PeterKneale / bus.cs
Created October 27, 2022 21:58
Minimal bus
using Amazon.SimpleNotificationService;
using Amazon.SQS;
using Amazon.SQS.Model;
using Newtonsoft.Json;
namespace BizCover.Web.SupportPortal.Infrastructure;
internal static class Extensions
{
public static void AddBus<THandler>(this IServiceCollection services) where THandler : class, IMessageHandler =>
@PeterKneale
PeterKneale / docker.sh
Last active August 11, 2019 21:49
Common dockerised infra
# Stop all containers:
docker kill $(docker ps -q)
# Remove all containers
docker rm $(docker ps -a -q)
# Postgres
docker run --rm -d --name postgres \
-p 5432:5432 \
-e "POSTGRES_USER=test" \
https://github.com/PeterKneale/Neptune/blob/master/docker/neptune/docker-compose.yaml
https://dotnet.microsoft.com/learn/web/microservices-architecture
https://docs.microsoft.com/en-au/dotnet/standard/microservices-architecture/
https://github.com/dotnet/dotnet-docker/tree/master/samples/dotnetapp
dockerised aws stacks for integration testing
https://github.com/localstack/localstack
https://github.com/spulec/moto/blob/master/Dockerfile

Create DNS

aws route53 create-hosted-zone --name cluster.example.org --caller-reference 98
  • Remember to setup the ns records in the parent domain (example.org)
    • cluster.example.org NS to NS1, NS2, NS3, NS4 etc
  • test DNS
    • dig NS cluster.example.org

Create Bucket