Skip to content

Instantly share code, notes, and snippets.

View einari's full-sized avatar
😄
Coding

Einar Ingebrigtsen einari

😄
Coding
View GitHub Profile
@einari
einari / LetsEncryptCertbotTLS.sh
Created November 23, 2022 08:56
Script for creating a Lets Encrypt certificate using Certbot and then exporting to .pfx file
#!/bin/bash
sudo certbot \
certonly \
--server https://acme-v02.api.letsencrypt.org/directory \
--manual \
--agree-tos \
--preferred-challenges dns \
--register-unsafely-without-email \
-d *.domain. # Wildcard - could be regular and one can also specify multiple -d options to include in the certificate
@einari
einari / Catch.cs
Created September 5, 2021 05:55
BDD - Specifications in xUnit
/// <summary>
/// Represents a wrapper for working with exceptions.
/// </summary>
public static class Catch
{
/// <summary>
/// Catch any exception that occurs from the wrapped callback.
/// </summary>
/// <param name="callback">Callback to wrap.</param>
/// <returns>Exception that happened - if any. Null if not.</returns>
Repository # of packages Description
CLI 1 The Command Line Interface for everything Dolittle
VSCode 1 Our Visual Studio Code extension
Repository # of packages Description
Fundamentals 37 Fundamental reusable building blocks
Runtime 18 Our core microservice, CQRS, domain driven engine
C# SDK  19  The C# SDK for working with the Runtime
@einari
einari / README.md
Last active April 19, 2017 06:12
Ubuntu Student Machine

Username: student
Password: 1234Abcd!123

@einari
einari / validation_queries.md
Last active January 12, 2017 09:06
Validation Queries

An implementation of a validation query would need to implement a similar interface:

public interface IValidationQuery<oout TDelegate>
{
  T Query { get; }
}

Two projects: ValidationQueries.Contracts - which can be used by any projects - it has no dependencies to anything but potentially the Concepts project.

I mentioned at the end a program for software architecture:
https://leap.microsoft.no
Live Streaming - The Code Lab
http://thecodelab.tv/
Influence the content:
http://feathub.com/einari/TheCodeLab