Skip to content

Instantly share code, notes, and snippets.

View CerebralDatabank's full-sized avatar
💭
"Authors MUST NOT implement bugs." — RFC 9225 § 4.1

Gopal Othayoth CerebralDatabank

💭
"Authors MUST NOT implement bugs." — RFC 9225 § 4.1
View GitHub Profile
@kkiris
kkiris / ^unlocking-prefs.md
Last active April 7, 2026 14:31
Unlocking preferences in Firefox forks

It is possible to unlock about:config preferences in Firefox forks. This is done at the installation level, so it is not customizable per-profile. I will be using Zen Browser as my example here, but this works in other Firefox forks as well.

First, navigate to your installation directory (e.g., C:\Program Files\Zen Browser). In this directory, create a text file and give it the .cfg extension. In this example, I've named mine zen.cfg. Type // on thee first line, then for each pref to unlock, add a line with "unlockPref("example.prefname");", replacing example.prefname with the name of the preference you'd like to unlock. If you'd like to set a default value for that preference, you may do so by adding a line with defaultPref("example.prefname", value);, replacing value with your desired default value. You may use // at the beginning of a line if you'd line to add comments

Here's my example for unlocking URLbar suggestion preferences in Zen Browser:

// SKIP THIS FIRST LINE
@chowder
chowder / README.md
Last active May 23, 2026 03:05
Exporting Microsoft Authenticator TOTP secrets

Background

Workplaces may enforce TOTP 2FA to be enabled Office 365 accounts, which require the Microsoft Authenticator app to be installed.

Regular TOTP applications (such as Aegis, Authy, or LastPass) cannot be used as Microsoft uses a proprietary scheme called phonefactor. Furthermore, the application requires Google Services Framework (GSF) to be installed (likely to provide device notifications), and will refuse to work when it is not present on the device.

Forunately, after the registration is complete, the underlying mechanism the app uses to generate TOTP codes is regular otpauth, and its secrets can be exported with a little bit of effort.

Extracting the keys

@staltz
staltz / introrx.md
Last active June 3, 2026 23:23
The introduction to Reactive Programming you've been missing