Skip to content

Instantly share code, notes, and snippets.

View nicholashead's full-sized avatar

Nicholas Head nicholashead

View GitHub Profile
@NickCraver
NickCraver / VPN-DNS-Test.ps1
Created April 27, 2017 12:19
Windows 10 VPN/DNS problem repro
# Must be run as admin for registry changes
# This illustrates the problem with the Stack Exchange VPN, results locally:
# Total time for default behavior (seconds): 12.0566448
# Total time with registry tweaks (seconds): 1.0808937
# Broken/Slow (default Windows 10 behavior)
Set-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient" -Name DisableSmartNameResolution -Value 0 -Type DWord
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters" -Name DisableParallelAandAAAA -Value 0 -Type DWord
ipconfig /flushdns | Out-null
Write-Host "Total time for default behavior (seconds): " -NoNewLine

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.