Skip to content

Instantly share code, notes, and snippets.

View LyleScott's full-sized avatar

Lyle Scott III LyleScott

View GitHub Profile
@LyleScott
LyleScott / rotate_2d_point.py
Last active March 17, 2025 00:47
Rotate X,Y (2D) coordinates around a point or origin in Python
"""
Lyle Scott, III // [email protected]
Multiple ways to rotate a 2D point around the origin / a point.
Timer benchmark results @ https://gist.github.com/LyleScott/d17e9d314fbe6fc29767d8c5c029c362
"""
from __future__ import print_function
import math
@LyleScott
LyleScott / nuke_s3_bucket.py
Last active June 15, 2024 11:22
Python script to nuke a S3 Bucket - all files and object versions; supports regions and profiles
#!/usr/bin/env python3
"""
Lyle Scott, III // [email protected]
$ python nuke_s3_bucket.py --help
usage: nuke_s3_bucket.py [-h] [-p PROFILE] bucket_name
positional arguments:
bucket_name The bucket name to delete.