Skip to content

Instantly share code, notes, and snippets.

@oldsj
oldsj / gradingEnv.js
Last active January 25, 2021 19:01
Grading Environment Bookmarklet
//bookmarklet-title:OpenGradingEnvironment
javascript:(function(){var homeworkURL = document.querySelector("body > div > main > div:nth-child(2) > div > div.ui.stackable.divided.two.column.grid > div > a").href;window.open("https://grading-environment.adhoc.pizza/new?homeworkURL="+encodeURIComponent(homeworkURL),'_blank')})();
@oldsj
oldsj / yubi.md
Created January 4, 2023 16:11
YubiKey SSH + Git Signing

SSH

  1. Download YubiKey Manager
  2. Set a FIDO2 PIN under Applications -> FIDO2
  3. Install the latest openssh brew install openssh
  4. Make sure your shell is using the latest openssh from brew: which ssh-keygen
  5. Generate a key: ssh-keygen -t ed25519-sk -O resident -O application=ssh:YourKeyName
  6. Make sure to repeat the process on at least 1 other YubiKey
  7. Copy both public keys to each server you want to login to

Signing git commits