Skip to content

Instantly share code, notes, and snippets.

@tatumroaquin
tatumroaquin / usb-bootable.md
Last active February 28, 2024 13:02
bootable USB guide using command line

How to make a bootable USB

Requirements

  1. Any USB drive, preferably SanDisk (Cruzer Edge/Switch)
  2. Computer running Linux / Windows 10

Linux

  1. Insert the USB to your linux file system
  2. Execute umount /dev/sdX if it is auto-mounted.
  3. Use the dd utility to copy your image to the use device.
@nkhitrov
nkhitrov / logger.py
Last active March 18, 2025 12:43
Configure uvicorn logs with loguru for FastAPI
"""
WARNING: dont use loguru, use structlog
https://gist.github.com/nkhitrov/38adbb314f0d35371eba4ffb8f27078f
Configure handlers and formats for application loggers.
"""
import logging
import sys
from pprint import pformat