This is part of a blog post I wrote: https://debugging.works/blog/tpm-explained/
- I use it on Arch Linux (systemd 257.3-1)
- Install dependency:
yay tpm2-tools(5.7-1)
This is part of a blog post I wrote: https://debugging.works/blog/tpm-explained/
yay tpm2-tools (5.7-1)| #!/usr/bin/env bash | |
| set -euo pipefail | |
| function main() { | |
| # Check for argument | |
| if [ $# -ne 1 ] | |
| then | |
| echo "usage: $0 INFILE" | |
| exit 1 |
| /* bling.js */ | |
| window.$ = document.querySelector.bind(document); | |
| window.$$ = document.querySelectorAll.bind(document); | |
| Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
| NodeList.prototype.__proto__ = Array.prototype; | |
| NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |