Skip to content

Instantly share code, notes, and snippets.

{
# https://caddyserver.com/docs/caddyfile/options#email
email myemail@domain.com
}
(tls_config) {
tls {
dns digitalocean {env.DIGITAL_OCEAN_DNS_API_TOKEN}
# If you are running a DNS server on your network, controlling this domain, Caddy will resolve your DNS server to that internal server, and place the TXT entry there.
@jamesrr39
jamesrr39 / wait-until-done.py
Created August 16, 2025 21:55
wait-until-done
#!python3
import os
import argparse
import time
parser = argparse.ArgumentParser(
prog='wait-until-done',
description='Waits until a process has completed. Usage like "python3 wait-until-done 1234 && do-next-command". Use "ps aux" to get the Process ID you are looking for.')
parser.add_argument('pid')