This will be very anecdotal and specific to my setup, but here are some recent findings I had on my M2 Pro Mac Mini running MacOS Sonoma 14.1.2 and how long it takes to grab a screenshot with Python via various methods. Screenshot method Library Time taken in ms pyautogui.screenshot() pyautogui ~1300-1500 ImageGrab.grab() pillow ~1300-1500…
Category: Uncategorized
Getting IP address on very limited Docker containers
Often Docker containers will have an extremely bare-bones Linux environment. In these scenarios, the ip and ifconfig commands are often not available. However I’d still like to be able to check what the Docker container’s IP address got assigned as. What do? Well, one thing you can try is running hostname which should still be…