Posts
-
Big Uploads and Checksum Validation
Read article →Ever wanted to upload big files without storing them in memory as they are being written with FastAPI?
-
Mocking the Post Method on an Async HTTPX Post Request
Read article →A quick snippet for mocking HTTP requests with an the async httpx context manager.
async with httpx.AsyncClient() as client: signup_response = await client.post( f"https://{AUTH0_DOMAIN}/api/v2/users", data=signup_request_body, headers=signup_request_headers, timeout=30, ) -
Tmux in Linux and Mac With Wezterm
Read article →After struggling to get
tmuxto run seamlessly between Mac (on ARM i.e. M1/M2) and linux due to the fact thatbrewinstalls packages to/opt/homebrew/bin/and it isn't on the path before the shell loads, I have finally worked out how to get tmux to launch/attach to existing sessions when launching a new terminal both in linux and on MacOS. -
Testing in the Terminal
Read article →Find yourself running a
pytestcommand repeatedly trying to work out what a problem is and getting sick of clicking back on the terminal window where the output is and pressing arrow up to re-run the test? Or even running tests in an IDE and sick of re-running the test time after time with your mouse? -
Gaming on Xbox with OpenWRT
Read article →If you are like me and decided to switch their router firmware to the much praised OpenWRT you may - like me - found the lag in FPS games pretty unbreable after switching the firmware.