oathtool -b --totp [token]
少し先まで出す(zshの場合)
MFA_DATA=$(oathtool -b -w 1 --totp [token]); MFA_NOW=$(echo $MFA_DATA | head -1); MFA_NEXT=$(echo $MFA_DATA | tail -1); echo $MFA_NOW and $MFA_NEXT after $((30 - $(date +%s) % 30)) seconds
Go to list of users who liked
More than 5 years have passed since last update.
oathtool -b --totp [token]
少し先まで出す(zshの場合)
MFA_DATA=$(oathtool -b -w 1 --totp [token]); MFA_NOW=$(echo $MFA_DATA | head -1); MFA_NEXT=$(echo $MFA_DATA | tail -1); echo $MFA_NOW and $MFA_NEXT after $((30 - $(date +%s) % 30)) seconds
Register as a new user and use Qiita more conveniently
Go to list of users who liked