This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()) |
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:
We can just comment that line out:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######### | |
# Setup # | |
######### | |
# https://github.com/localstack/localstack/blob/master/doc/feature_coverage.md | |
git clone https://github.com/vfarcic/localstack-demo | |
cd localstack-demo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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() { |