Skip to content

Instantly share code, notes, and snippets.

View BobcatProgrammer's full-sized avatar

Simon Trockel BobcatProgrammer

View GitHub Profile
@sm-Fifteen
sm-Fifteen / whats_a_yubikey.md
Last active May 7, 2024 22:40
"What the heck is a Yubikey and why did I buy one?": A user guide

"What the heck is a Yubikey and why did I buy one?": A user guide

(EDIT: Besides Reddit, I've also put this up on Github Gist)

So while looking for information on security keys before getting one myself, I got very confused reading about all the different modes and advertised features of Yubikeys and other similar dongles. The official documentation tends to be surprisingly convoluted at times, weirdly organized and oddly shy about a few of the limitations of these keys (which I'm making a point of putting front and center). Now that I have one, I decided to write down everything I figured out in order to help myself (and hopefully some other people reading this) make sense of all this.

Since I'm partly writing these notes for myself, there might be some back and forth between "exp

@0xKD
0xKD / pydantic_settings_gcs.py
Last active June 6, 2023 02:32
Pydantic - Google Cloud Secret
import logging
import os
from pathlib import Path
from typing import Any, Dict, Optional, Union, Mapping
from google.api_core.exceptions import GoogleAPIError
from google.auth.exceptions import GoogleAuthError
from google.cloud import secretmanager
from pydantic import BaseSettings, Field