Skip to content

Instantly share code, notes, and snippets.

# Azure
Definitions:
- IaaS: A provider lets you host virtual machines, Docker instances or Kubernetes clusters and manages the that for you
- PaaS: A provider hosts a specific server technology for you and also manages the updates for that techology (eg. Amazon S3)
- SaaS: A provider hosts an application for you and also manages application updates
I prefer PaaS whenever possible because it reduces the complexity on my side and when the service doesn't work, their support
will know about the technology in question rather than just about the underlying infrastructure.
@jtheisen
jtheisen / create-database.sql
Last active October 7, 2022 08:29
Create Sql Server database with sensible collation
create database [name] collate Latin1_General_100_CI_AS_SC_UTF8
create database [name] collate Latin1_General_100_BIN2_UTF8
@jtheisen
jtheisen / .block
Created December 5, 2019 11:56 — forked from pbeshai/.block
Animate 100,000 points with regl - III
license: mit
height: 720
border: no
var rows = String.Join("", Enumerable.Range(1, 100).Select(i => $"<tr><td>row #{i}</td></tr>").ToArray());
var html = $@"
<div>
<table>
<thead>
<tr>
<td>header</td>
</tr>
</thead>
@jtheisen
jtheisen / Property.cs
Created January 25, 2019 09:56
Properties Utility
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
namespace Properties.Internals
{
public class PropertyPairHelper<T, S>
{
@jtheisen
jtheisen / Oauth.cs
Created June 18, 2018 11:25 — forked from DeskSupport/Oauth.cs
csharp Oauth and API Example
// TwitPic/OAuth.cs
//
// Code to do OAuth stuff, in support of a cropper plugin that sends
// a screen snap to TwitPic.com.
//
// There's one main class: OAuth.Manager. It handles interaction with the OAuth-
// enabled service, for requesting temporary tokens (aka request tokens), as well
// as access tokens. It also provides a convenient way to construct an oauth
// Authorization header for use in any Http transaction.
//
@jtheisen
jtheisen / UDPer.cs
Created June 3, 2018 08:36 — forked from zmilojko/UDPer.cs
C# sends and receives UDP broadcasts
using System;
using System.Net.Sockets;
using System.Net;
using System.Text;
using System.Threading;
namespace UDPer
{
class UDPer
{
Get-ChildItem -Recurse -Include bin,obj |? { $_.FullName -inotmatch 'node_modules' } | foreach { Remove-Item -Recurse $_ }
using System;
using System.ComponentModel;
namespace AssemblyToProcess
{
#region The interfaces we need to define our implementations with.
// See sample below for an explanation of the type parameters.
public interface IPropertyImplementation<ValueInterface, ContainerInterface, Value, Container, MixIn>
@jtheisen
jtheisen / clean.ps1
Created May 1, 2017 21:26
Remove Dropbox collision files
dir -Recurse | where { $_ -match "In Konflikt stehende Kopie" } | foreach { rm -Force $_.FullName }