Skip to content

Instantly share code, notes, and snippets.

@Peetz0r
Created July 31, 2016 17:31
Show Gist options
  • Save Peetz0r/2386c21899c83fa552478cafa577d3be to your computer and use it in GitHub Desktop.
Save Peetz0r/2386c21899c83fa552478cafa577d3be to your computer and use it in GitHub Desktop.
#!/bin/bash
SECRET='XXXXXXXXXXXXXXXX'
(
echo 100;
while true; do
echo -e '#Token: '$(oathtool --totp -b $SECRET)'\n'$(echo '3.3*('$(date +%s.%N)'%30)' | bc);
sleep .1;
done;
) | zenity --progress --auto-kill --title='Token' --no-cancel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment