Skip to content

Instantly share code, notes, and snippets.

@sm-Fifteen
sm-Fifteen / whats_a_yubikey.md
Last active April 16, 2024 21:31
"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

@mawillcockson
mawillcockson / install-virt-bootstrap.sh
Last active April 13, 2021 22:12
Install virt-bootstrap on debian
#!/bin/sh
# This is a very dumb script: run it more than once, and it will mess things up.
#
# This is meant to be run from as a regular user.
#
# At the end, when the command virt-manager is run from bash, virt-manager will
# be launched with access to virt-bootstrap.
#
# To uninstall, remove the following directories and files:
# ~/.local/lib/virt-bootstrap
@0atman
0atman / lit.md
Last active September 4, 2021 19:35
Native literate programming in python through doctests. This is either the best or the worst thing I have ever written.

Imports

First the imports, this demo requires the flask_restful package. Then we set up the Flask wsgi application object, app and the api wrapper, api.

>>> from flask import Flask
>>> from flask_restful import Resource, Api

>>> app = Flask(__name__)
>>> api = Api(app)