Skip to content

Instantly share code, notes, and snippets.


Alexander Zeitler AlexZeitler

View GitHub Profile
AlexZeitler / .editorconfig
Last active Feb 20, 2021
TypeScript + Node + VS Code Project settings
View .editorconfig
root = false
indent_style = space
indent_size = 2
indent_style = space
indent_size = 2
AlexZeitler / main.yml
Created Jan 10, 2021
.NET Core GitHub Action Template
View main.yml
name: .NET Core Build with Tests
branches: [ main ]
branches: [ main ]
AlexZeitler /
Created Jan 4, 2021 — forked from skorfmann/
Stub Lambda Functions in your CDK Stack

Stubbing Lambda Functions in your CDK Stack

Given you have a stack with one or more Lambda functions (e.g. as part of a Step Functions state machine), it can be pretty useful to stub long running parts with a known response.

This makes use of cdk Aspects, which allows modifying all or a filtered subsset of resources for a given scope (Stack, Construct).

In addition this leverages raw overrides to remove the original code of the Lambda function.

Please note, that the stub has to be in Python or NodeJS, since inlining code is only supported by those runtimes.

AlexZeitler / event-sourced-user.fsx
Created Dec 29, 2020 — forked from akhansari/event-sourced-user.fsx
F# : Event Sourcing in a nutshell
View event-sourced-user.fsx
// ========= Event Sourcing in a nutshell
FriendlyName: string
Aggregate friendly name.
Initial: 'State
Initial (empty) state we will start with.
Decide: 'Command -> 'State -> 'Event list
View check if required tool can be executed
function check_required_software() {
! [ -x "$(command -v curl)" ] && ERROR="$ERROR- curl\n"
! [ -x "$(command -v jq)" ] && ERROR="$ERROR- jq\n"
if [ -n "$ERROR" ]; then
echo "Some software is missing to run this script."
echo "Please make sure that you've installed:"
echo $ERROR >&2
View PropertyExpression.ts
type Person = {
firstName: string
lastName: string
middleName?: string
const hasValue = (value: Record<string, any>, property: any): boolean =>
type ValueOf<T> = T[keyof T]
AlexZeitler / App.fs
Created Jun 12, 2020 — forked from aspnetde/App.fs
Feliz – MVU with React Function Components
View App.fs
module App
open Elmish
type State =
{ CurrentUser: string option }
type Msg =
| SignIn of string
| SignOut
View Oh my zsh with autosuggestions &

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by

Keybase proof

I hereby claim:

  • I am alexzeitler on github.
  • I am alexzeitler ( on keybase.
  • I have a public key ASB0qww7uSPAMkQCwMlF3wDCa-RQCliGbSSl4H7W1nx9yAo

To claim this, I am signing this object:

AlexZeitler / siren_api.yml
Created Sep 20, 2019 — forked from kevinswiber/siren_api.yml
Siren definitions for Open API Specification
View siren_api.yml
swagger: '2.0'
title: Siren API
description: Template for a Siren API
version: '0.1.0'
- http
- https
basePath: /