Skip to content

Instantly share code, notes, and snippets.

View junaid-ali's full-sized avatar
🎯
Focusing

Junaid Ali junaid-ali

🎯
Focusing
  • Pakistan
View GitHub Profile
@vjt
vjt / 2fa
Last active May 12, 2023 11:28
2FA from the mac command line using oathtool-toolkit without much fuss
#!/bin/bash
# -*- 2fa Command Line -*-
#
# Uses oath-toolkit http://nongnu.org/oath-toolkit/
# to generate 2FA OTPs and copies them in the Mac's
# clipboard using pbcopy(1). For other UNIX systems
# you can just strip the pbcopy at the bottom.
#
# In the dir below you should put TOTP token seeds,

Moved

Now located at https://github.com/JeffPaine/beautiful_idiomatic_python.

Why it was moved

Github gists don't support Pull Requests or any notifications, which made it impossible for me to maintain this (surprisingly popular) gist with fixes, respond to comments and so on. In the interest of maintaining the quality of this resource for others, I've moved it to a proper repo. Cheers!