Skip to content

Instantly share code, notes, and snippets.

View bryaneaton's full-sized avatar
🏖️
Tis the season

Bryan Eaton bryaneaton

🏖️
Tis the season
  • Maryville, TN
View GitHub Profile
@sempervent
sempervent / build.sh
Last active December 21, 2021 22:19
Docker build script
#!/usr/bin/env bash
# ex: set fdm=marker
# usage {{{1
#/ Usage:
#/ ./build.sh -r "REGISTRY/NAME" [OPTIONS]
#/
#/ -c|--context)
#/ the context in which to do the `docker build`
#/
#/ -r|--registry)
@bryaneaton
bryaneaton / logz.py
Created July 22, 2021 13:27
Useful logging class for python!
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# standard python imports
import logging
from rich.logging import RichHandler
from rich.traceback import install
import os
install()
@bryaneaton
bryaneaton / asyncio.py
Created November 3, 2023 18:36
Asyncio and Click
import asyncio
# Async operation definition remains the same
async def async_operation():
print("Starting async operation")
await asyncio.sleep(1)
print("Async operation completed")