Firefox: Enable Night Mode for desktop OSes #

Firefox for iOS offers an "Enable Night Mode" toggle which not only darkens the Firefox interface, but websites as well.

While not available for desktop OSes yet, you can achieve a similar result with ShadowFox (macOS users can install via Homebrew or MacPorts) and Dark Reader. ShadowFox correctly darkens every element, including ones that other themes can have trouble with, like the address bar, context menu, and history page.

/misc | Oct 23, 2019

Download webpage to .webarchive in Terminal #

Webarchiver "allows you to create Safari .webarchive files from the command line":

webarchiver -url -output tinyapps.webarchive

With a bash function, we can automate creating the filename from the page's title tag and include the URL in the "Where from" metadata:

function dl() {
  TITLE=`curl -s "$ADDRESS" | grep -o "<title>[^<]*" -m 1 | tail -c+8`
  /Applications/network/webarchiver -url "$ADDRESS" -output "$TITLE.webarchive"
  xattr -w "" "$ADDRESS" "$TITLE.webarchive"

Add the above to your .bash_profile, reload with source ~/.bash_profile, and use like so:

$ dl

Title tags can be tricky to parse correctly, here are some other approaches:

as well as another version wherein you manually supply the title/filename:

function dl() {
  /Applications/network/webarchiver -url "$ADDRESS" -output "$FILENAME.webarchive"
  xattr -w "" "$ADDRESS" "$FILENAME.webarchive"

calling like so:

$ dl "NVMe Sanitize"

Acquire webarchiver 0.9 via homebrew (brew install webarchiver) or MacPorts (sudo port install webarchiver), or build easily from source with Xcode.

Thanks to kenorb for his simple title regex; I only had to add -m 1 after running across a page containing multiple title tags (which apparently isn't that rare, in spite of the spec).

/mac | Oct 21, 2019

Catalina: Restore Classic Layout in Mail #

If you have the misfortune to be stuck on Catalina, you can restore's classic layout via View > "Use Column Layout" and View > uncheck "Show Side Preview"; the previous option (Mail > Preferences > Viewing > Use classic layout) is gone.

/mac | Oct 21, 2019

Decrypt EFS-encytped files without a cert backup #

posted to the docs section.

/windows | Oct 18, 2019

Site design changes #

/misc | Oct 09, 2019

Google Drive File Stream cache bug fills up drive #

Despite the sunny promise of version 26.1's July 24, 2018 release note ("Drive File Stream now guarantees that it won't use more than 20% of the free local disk space when caching files."), Google Drive File Stream cache continues to fill up virtually all available space on many drives.

Heinzelmann's solution of setting ContentCacheMaxKbytes to 100MB is excellent but incomplete; these are the steps I needed to follow in order to resolve the issue:

  1. Uninstall:
    1. Sign out and quit Google Drive File Stream
    2. Uninstall Google Drive File Stream
    3. Delete %LOCALAPPDATA%\Google\DriveFS (which generally corresponds to \Users\username\AppData\Local\Google\DriveFS)
    4. Reboot
  2. Apply the registry patch:
    Windows Registry Editor Version 5.00
  3. Reinstall Google Drive File Stream and sign in

/misc | Sep 29, 2019

G Suite asks user for phone number when signing in #

When a G Suite user attempts to sign in to a new device, they may be greeted with:

Verify it's you

Verify it's you
This device isn't recognized. For your security, Google wants to make sure it's really you.
Enter a phone number to get a text message with a verification code.

This seems less like additional security and more like phone number harvesting, especially since the user has no preregistered number.

Clicking "Try another way" leads to:

Get a verification code sent to your phone.

Get a verification code sent to your phone.
Get help

Clicking "Get help" results in:

Account recovery

Account recovery
Enter the last password you remember using with this Google Account

which isn't very helpful, as this user has had the same password since creation.

Entering the password dumps to a dead end:

Contact your domain admin for help.

Couldn't sign you in
Contact your domain admin for help. Learn more

Clicking "Learn more" brings us to a singularly unhelpful page:

Signing in to your work, school, or other group account

Signing in to your work, school, or other group account

Happily, Mario R. linked to the actually relevant G Suite documentation.

In a nutshell, domain admins can disable the phone number requirement, but only for 10 minutes:

Google Admin Console > Users > click username > Security > Login challenge ("Turn off identity questions for 10 minutes after a suspicious attempt to sign in.") > TURN OFF FOR 10 MINS ("Turn off identity questions for 10 minutes after a suspicious attempt to sign in.")

/misc | Sep 26, 2019

Drive File Stream: Can't reach Google Drive #

Drive File Stream: Can't reach Google Drive

Solution to the vexing "Drive File Stream: Can't reach Google Drive" error when attempting to login:

In HKEY_LOCAL_MACHINE\Software\Google\DriveFS, create two new DWORD values, DisableCRLCheck and DirectConnection, assigning value data as 1.

Additional settings and details (including macOS instructions) can be found in Configure Drive File Stream.

(Mad props to Ashley Rowbury for her Job-like patience in securing this veritable Holy Grail.)

/windows | Sep 12, 2019

Yahoo! Pipes replacements #

Yahoo! Pipes "was a web application from Yahoo! that provided a graphical user interface for building data mashups that aggregate web feeds, web pages, and other services, creating Web-based apps from various sources, and publishing those apps."


/misc | Aug 15, 2019

Rare addition to the app catalog... #

searchfs 0.300000 [7k] {S} Command line tool to quickly search by filename on entire HFS+ and APFS volumes using the file system catalog. 📺

/mac | Aug 01, 2019

Subscribe or visit the archives.