Skip to content

Instantly share code, notes, and snippets.

View jodavaho's full-sized avatar

Josh Vander Hook jodavaho

View GitHub Profile
#ifndef MODULES_H
#define MODULES_H
struct module{
std::string name;
double w;
double h;
double sq;
double weight;
@jodavaho
jodavaho / get_2fa.sh
Created January 23, 2021 18:13
How to easily manage an encrypted 2FA code list using GPG and OATHTOOL
#!/bin/bash
# After breaking my phone one too many times, I decided to have a backup 2FA option.
# Every 2fa app uses a QR code to add the secret key, and
# you can always choose to get a text version of that secret key
# See: for an example
# I choose to save that text code AS WELL as add it to my phone, so that I can
# get codes from my laptop, and back up those codes somewhere safe for easy migration
# between, or synchronization between all my devices.
# This GIST will get codes from the command line.

Keybase proof

I hereby claim:

  • I am jodavaho on github.
  • I am jodavaho (https://keybase.io/jodavaho) on keybase.
  • I have a public key ASCO59gzENACAwZ2zkIUfMqPc2tl4ZnGYpdlyahw2lsw8wo

To claim this, I am signing this object: