Skip to content

Instantly share code, notes, and snippets.

@mijdavis2
mijdavis2 / get_route53_record_set.sh
Created October 13, 2022 16:11
Get info on a route53 record set
aws route53 list-resource-record-sets --hosted-zone-id SOME_ZONE_ID --output json | jq '.ResourceRecordSets[] | select(.Name | startswith("some.example.com"))'
@mijdavis2
mijdavis2 / pyproject.toml
Created November 2, 2022 13:02
Poetry pre-commit poetry-lock triage poetry.toml
[tool.poetry]
name = "***"
version = "0.1.0"
description = ""
authors = ["mijdavis2 <***>"]
[tool.poetry.dependencies]
python = "3.8.10"
selenium = "3.141.0"
@mijdavis2
mijdavis2 / threadpoolexample.py
Created August 2, 2024 00:31
Python's new threadpool example
# Without threadpool
for repo in repos:
update_repo_data(repo)
# ----------------------------------------------------------------------------------- #
# With threadpool
with concurrent.futures.ThreadPoolExecutor(max_workers=MAX_EXECUTORS) as executor:
executor.map(update_repo_data, repos)