Skip to content

Instantly share code, notes, and snippets.

@segfo
Created November 1, 2023 14:18
Show Gist options
  • Save segfo/ad9ef1d0c5e23d68c26f6866a9b8f8a1 to your computer and use it in GitHub Desktop.
Save segfo/ad9ef1d0c5e23d68c26f6866a9b8f8a1 to your computer and use it in GitHub Desktop.
one liner.txt
$otp = "cargo run --";iex $otp" --no-tui -g"|findstr /r /c:"/[0-9]"| %{$_ -replace ".*/","" }|%{for ($i=0;$i -le $_;$i++){ iex $otp" --no-tui -g -n $i" |findstr "otpauth"| %{qrcode -s -d $_};.\qrcode.svg}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment