Last active
March 2, 2022 21:16
-
-
Save scammi/554040d5463a43939c724b019dbaf56a to your computer and use it in GitHub Desktop.
2FA_code_to_clipboard ~ amplyauth
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Dependencies | |
sudo apt-get install oathtool xclip | |
//Command | |
oathtool --totp --base32 TOKEN | xclip -selection clipboard | |
//Fish alias | |
alias amplyauth = "oathtool --totp --base32 TOKEN | xclip -selection clipboard" | |
//Bash script | |
#!/bin/bash | |
TOKEN=LTKB4N4Z3GCC6YR5 | |
oathtool --totp --base32 TOKEN | xclip -selection clipboard | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment