Skip to content

Instantly share code, notes, and snippets.

@rickbrew
rickbrew / CDynamicCcw.cs
Last active December 5, 2021 00:11
COM Callable Wrapper example using dynamically aggregated wrappers
#nullable enable
using PaintDotNet.ComponentModel;
using PaintDotNet.Runtime;
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace PaintDotNet.Interop;
@dahlsailrunner
dahlsailrunner / Local-Kubernetes.md
Last active August 13, 2024 10:48
Helpful tips and snippets for Kubernetes within Docker Desktop

Using the K8s Dashboard Locally

Actual repo is here: https://github.com/kubernetes/dashboard

1. Install the Dashboard

kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.4.0/aio/deploy/recommended.yaml

2. Create a Sample User Account that can Access the Dashboard via Token

kubectl apply -f https://gist.githubusercontent.com/dahlsailrunner/bbd453f3bb6259b66c08a70d0908283f/raw/5727723217e2df4b65d8933adf04d009cfb0fe3f/local-dashboard-account.yml
@dahlsailrunner
dahlsailrunner / SSL-nginx-Docker.md
Last active October 2, 2025 18:24
SSL with Docker images using nginx as reverse proxy

Docker with SSL and an nginx reverse proxy

Running your ASP.NET Core (or other) application in Docker using SSL should not be an overwhelming task. These steps should do the trick.

Run the following steps from a Linux terminal (I used WSL or WSL2 on Windows from the Windows Terminal).

1. Create a conf file with information about the cert you'll be creating

It should look something like the content below; call it my-site.conf or something like that.

@craigtp
craigtp / AdvancedDistributedSystemDesignCourseNotes.md
Created May 1, 2020 19:38
Notes on Udi Dahan's Advanced Distributed System Design Course

Advanced Distributed System Design Course - Udi Dahan

Notes by Craig Phillips

Fallacies of Distributed Computing

  • There are 11 fallacies of Distributed Computing:
    1. The network is reliable
    2. Latency isn’t a problem
    3. Bandwidth isn’t a problem
    4. The network is secure
  1. The topology won’t change
@AndreyAkinshin
AndreyAkinshin / DEV Labs 2015 - Учимся замерять время правильно.md
Last active June 28, 2022 19:09
DEV Labs 2015 - Учимся замерять время правильно

Введение

  • Главный вопрос: что и зачем вы измеряете?
  • Используйте библиотеки для бенчмаркинга: JMH, BenchmarkDotNet

Как правильно запускать бенчмарк

  • Release build
  • Без дебаггера
  • Выключите другие приложения