Skip to content

Instantly share code, notes, and snippets.

@scammi
Last active March 2, 2022 21:16
Show Gist options
  • Save scammi/554040d5463a43939c724b019dbaf56a to your computer and use it in GitHub Desktop.
Save scammi/554040d5463a43939c724b019dbaf56a to your computer and use it in GitHub Desktop.
2FA_code_to_clipboard ~ amplyauth
//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