Skip to content

Instantly share code, notes, and snippets.

@evilmtv
evilmtv / power.md
Last active June 8, 2022 04:34
On power...

Research

https://batteryuniversity.com/article/bu-808-how-to-prolong-lithium-based-batteries
Note: Require more sources/research on this

Reducing power consumption

Disabling CPU Turbo Boost

It is a fact that performance per watt significantly decreases past the stock clocks (diminishing rewards), you can easily verify this with a CPU benchmark and HWiNFO.
However its up to you to decide what you prefer, faster applications at the expense of higher heat and power consumption.
My suggestion is to disable it and have a feel for yourself how much it impacts you based on your usage.

@evilmtv
evilmtv / gist:9dc8fd2e1e5c47230c69ecef6ec50ecb
Last active April 21, 2019 17:32
Setting up OBS Studio for streaming and gaming on the same PC
@evilmtv
evilmtv / center_cv2_text.py
Last active December 27, 2021 11:51 — forked from xcsrz/center_text_on_image.py
Center text on an image with Python and OpenCV.
# setup text
font = cv2.FONT_HERSHEY_SIMPLEX
text = "Female"
# get boundary of this text
textsize = cv2.getTextSize(text, font, 1, 2)[0]
# get coords based on boundary
textX = int(boundingboxcenter[0] - (textsize[0] / 2))
textY = int(boundingboxcenter[1] + (textsize[1] / 2))