Last active
December 14, 2018 06:35
-
-
Save davidlc9113/5d1f59dc09d87894d5e9ad74e3f2c4e7 to your computer and use it in GitHub Desktop.
Revisions
-
davidlc9113 revised this gist
Dec 14, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ #!/usr/bin/env python3 """ Install dependencies from https://gist.github.com/dlc9113/eb2b7410b105858bbbed8d80d9a5217d # Output the code $ googleauth your_secret_key -
davidlc9113 revised this gist
Dec 14, 2018 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,8 @@ #!/usr/bin/env python3 """ Install dependecies from https://gist.github.com/dlc9113/eb2b7410b105858bbbed8d80d9a5217d # Output the code $ googleauth your_secret_key -
davidlc9113 revised this gist
Dec 14, 2018 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,10 @@ #!/usr/bin/env python3 """ # Output the code $ googleauth your_secret_key # (Mac only) Copy the code $ googleauth your_secret_key | pbcopy """ -
davidlc9113 created this gist
Dec 14, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ #!/usr/bin/env python3 """ # Ouput and copy the code $ googleauth your_secret_key | pbcopy """ import pyotp, sys secret_code = sys.argv[-1] print(pyotp.TOTP(secret_code).now())