sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Download zsh-autosuggestions by
# Usage: | |
# iex ((new-object net.webclient).DownloadString('https://gist.githubusercontent.com/aliostad/a20f0c8d6a439dcff34e63e4a6559008/raw/0e445d869eb47e525512053638489920547a7d75/azure-vm-bootstrapper.ps1')) | |
# Bootstraps the Azure VM by modyifying settings and installing below: | |
# 1. Turn off annoying Intrenet Explorer enhanced security | |
# 2. Install chocolatey | |
# 3. Install PerfView | |
# 4. Install DebugView | |
# 5. Install SuperBenchmarker | |
# 6. Install notepad++ | |
# 7. Install windbg |
swagger: '2.0' | |
info: | |
title: Siren API | |
description: Template for a Siren API | |
version: '0.1.0' | |
schemes: | |
- http | |
- https | |
basePath: / | |
produces: |
Follow these steps to remove all archives from an AWS vault. After this is finished, you will be able to delete the vault itself through the browser console.
This will create a job that collects required information about the vault.
$ aws glacier initiate-job --job-parameters '{"Type": "inventory-retrieval"}' --account-id YOUR_ACCOUNT_ID --region YOUR_REGION --vault-name YOUR_VAULT_NAME
Scenario: different business teams building parts of a product, splitted by business domains. We are anly communicate via domain events published to a message bus and sometimes via published links. | |
As the domain events are the "contracts" between the business domains we want to declare and enforce the schemas of the events. | |
Our solution is built in node but the concept could work in any stack. |
import groovy.json.JsonSlurper | |
import groovy.json.JsonOutput | |
def jsonSlurper = new JsonSlurper() | |
def secrets = jsonSlurper.parse(new File(args[1] ?: "secrets.json")).clients.inject([:]) { map, c -> map[c.client] = c.secret; map } | |
def realm = jsonSlurper.parse(new File(args[0])) | |
for(client in realm.clients) { | |
if(secrets[client.clientId]) { |
module App | |
open Elmish | |
type State = | |
{ CurrentUser: string option } | |
type Msg = | |
| SignIn of string | |
| SignOut |
// ========= Event Sourcing in a nutshell | |
(* | |
FriendlyName: string | |
Aggregate friendly name. | |
Initial: 'State | |
Initial (empty) state we will start with. | |
Decide: 'Command -> 'State -> 'Event list |
namespace HttpClient.FSharp | |
open System | |
open System.Net.Http | |
type HttpMethod = | |
| Post | |
| Put | |
| Delete | |
| Get |