- Install
ykman
via homebrew on the Mac.
brew install ykman
- Create
bash
/zsh
function somewhere in your shell rc files
function otp() {
code=$(ykman oath accounts code -s)
YouTube link of the talk - https://www.youtube.com/watch?v=BSaAMQVq01E Robert C. Martin aka Uncle Bob
(Items contain direct links into the relevant section of the video.)
// | |
// For when those pesky sites decide that you shouldn't be allowed to paste into an input... | |
// | |
document.addEventListener('paste', (e) => { | |
e.stopImmediatePropagation(); | |
return true; | |
}, true); |