Skip to content

Instantly share code, notes, and snippets.

View yimingliu's full-sized avatar

yimingliu

View GitHub Profile
@jakariyaa
jakariyaa / OktaVerify_TOTP_Key_Exteaction.md
Last active November 10, 2025 16:27
Okta Verify TOTP secret key can be extracted easily using curl and the code below.
  1. Get the content of the QR for Okta Verify app setup. It looks like this: oktaverify://[email protected]/?t=XXXXX&f=YYYYY&s=https://DOMAIN.okta.com&issuer=DOMAIN.okta.com&isIdxEnabled=true
  2. Replace XXXXX, YYYYY and DOMAIN to your values in curl below:
curl --request POST \
  --url https://DOMAIN.okta.com/idp/authenticators \
  --header 'Accept: application/json; charset=UTF-8' \
  --header 'Accept-Encoding: gzip, deflate' \
  --header 'Authorization: OTDT XXXXX' \
  --header 'Content-Type: application/json; charset=UTF-8' \
@zgracem
zgracem / fix-skyrim-missing-sounds.md
Created March 7, 2021 17:43
Fixing missing sounds in Skyrim SE (Windows 10 + Boot Camp)

Problem: Skyrim Special Edition + Windows 10 + Boot Camp works normally, but many sounds (music, player voice/dragon shouts, weapon drawing/attacking, etc.) are missing. Any sounds added by third-party mods are similarly silent.

Cause: An obscure bug in Skyrim SE that expects the game data (including sound) to be stored on a volume with a Master Boot Record (MBR). Boot Camp drives, however, must be GUID-formatted.

Solution: Create a virtual MBR volume and run the game from there.

cd /Library/Preferences
sudo rm com.sophos.sav.plist

cd /Library/Application\ Support/Sophos/cloud/Installer.app/Contents/MacOS/tools/
sudo ./InstallationDeployer —force_remove