Skip to content

Instantly share code, notes, and snippets.

@mikeslattery
mikeslattery / .idea-lazy.vim
Last active April 22, 2025 00:34
LazyVim mappings for Jetbrains IDEs
" ~/.idea-lazy.vim
" LazyVim mappings for Jetbrains IDEs
" Required plugins. https://plugins.jetbrains.com/bundles/7-ideavim-bundle
" IDEAVim
" Which-Key
" IdeaVim-Sneak
" To install, add this to the top of your ~/.ideavimrc:
@x-yuri
x-yuri / Overview of Cloud SQL (PostgreSQL) authentication.md
Last active April 14, 2025 16:47
Overview of Cloud SQL (PostgreSQL) authentication

Overview of Cloud SQL (PostgreSQL) authentication

There are 2 ways to connect to a Cloud SQL database: directly, or via a connector. [2 types of connectors][n] are supported: standalone ([Cloud SQL Auth Proxy][b]), and in-process ([Cloud SQL Language Connector][a], available for [Java, Python, Go, and Node.js][c]).

There are also [2 ways to authenticate][d] to a database:

  • The PostgreSQL's built-in authentication (password).
  • IAM database authentication. In this case you need an IAM service account and a [matching PostgreSQL user][e].

But before you can do that, you need to give yourself access to the database ([authorize the connection][f]):

@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active April 24, 2025 05:26 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

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.