Skip to content

Instantly share code, notes, and snippets.

View whummer's full-sized avatar
🏋️
LocalStack is hiring! Join us to build the world-leading cloud dev platform!

Waldemar Hummer whummer

🏋️
LocalStack is hiring! Join us to build the world-leading cloud dev platform!
  • LocalStack
  • Zurich
View GitHub Profile
@samuelcolvin
samuelcolvin / dns_server.py
Last active November 4, 2024 02:17
requires python 3.5+ and dnslib, see https://github.com/samuelcolvin/dnserver for full/better implementation
from datetime import datetime
from time import sleep
from dnslib import DNSLabel, QTYPE, RD, RR
from dnslib import A, AAAA, CNAME, MX, NS, SOA, TXT
from dnslib.server import DNSServer
EPOCH = datetime(1970, 1, 1)
SERIAL = int((datetime.utcnow() - EPOCH).total_seconds())
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active November 16, 2024 22:55
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@robfe
robfe / about.md
Last active December 20, 2022 21:56
Running localstack in docker for windows with persistence enabled

Running localstack in docker for windows with persistence enabled

Running on Docker for Windows

Localstack comes with a docker-compose file that won't quite work when you're running the (linux) container in docker for Windows.

Two changes need to be made:

The docker.sock volume won't work on windows

We can just comment that line out:

#########
# Setup #
#########
# https://github.com/localstack/localstack/blob/master/doc/feature_coverage.md
git clone https://github.com/vfarcic/localstack-demo
cd localstack-demo
@thrau
thrau / convert_assert.py
Last active June 14, 2022 04:02
script to covert unittest asserts to plain asserts
"""
Script to convert unittest asserts into plain asserts.
Either reads the file from the path passed as first parameter, or reads from stdin if no parameter is given.
"""
import functools
import sys
import libcst as cst
@alexrashed
alexrashed / await.sh
Last active February 20, 2023 08:24
await circle ci workflow to finish
#!/bin/bash
# Simple bash script to wait for a worfklwo to finish (f.e. to trigger a notification)
# Based on https://github.com/rockymadden/circleci-cli
token=$CIRCLECI_TOKEN
resolution=15
workflow=$1
function await() {
function go() {