Libraries, scripts, and snippets for measuring power consumption on Linux systems