When the Thunderbird Message Pane is enabled (View → Layout → Message Pane), the Header Pane and Buttons (Reply, Forward, Delete, etc.) take up an inordinate amount of space; here's how to hide them:
In Config Editor, set toolkit.legacyUserProfileCustomizations.stylesheets to true
Help → Troubleshooting Information → open Profile Folder
In the profile folder, open or create "chrome" directory
Edit or create "userChrome.css" inside of "chrome", adding this line:.main-header-area {display:none !important;}
Restart Thunderbird
On a related note, alternating row colors in the Message List pane can be enabled by adding the following to userChrome.css:
table[is="tree-view-table"] tr:nth-child(even):not(.selected):not(tr:hover) {
-moz-appearance: none !important;
background-color: rgb(240,240,240) !important;
}
/misc | Mar 02, 2024
After almost 5 years of hosting at Netlify (at $9/month for basic, anonymized analytics), just moved to Cloudflare Pages after reading this r/webdev post:
along with the related HN comments.
The previous server migration, from Slicehost/Rackspace to Netlify, had been largely to avoid just such unlimited billing exposure.
Custom apex domains require moving Name Servers to Cloudflare DNS.
Trailing exclamation marks in _redirects need to be removed for the redirects to work in Cloudflare Pages.
Cloudflare Pages forcefully strips .html extensions, though an option for their preservation was promised in June 2022.
Redirect www to non-www (H/T cloonan & Rickard):
www.example.com/*
https://example.com/$1
Disable access to *.pages.dev subdomain:
*.{project}.pages.dev
). Refer to Customize preview deployments access.*.pages.dev
URL associated with your production Pages project to a custom domain. You can use the account-level Bulk Redirect feature to redirect your *.pages.dev
URL to a custom domain."Prevent your pages.dev deployments showing in search results:
"Google and other search engines often support the X-Robots-Tag
header to instruct its crawlers how your website should be indexed. For example, to prevent your *.pages.dev
deployment from being indexed, add the following to your _headers file:"
https://:project.pages.dev/*
X-Robots-Tag: noindex
After deleting the Netlify site, revoke their access to any connected GitHub repository via GH account settings → Applications → Installed GitHub Apps.
/misc | Feb 26, 2024
no extension necessary: Tools → Page Info → Media → Select All → Save As...
/misc | Feb 25, 2024
Tested on a UniFi Express, which comes with a preset IP address of 192.168.1.1. Note that the Express is limited to managing 5 UniFi devices, including itself.
Go to Networks: https://192.168.1.1/network/default/settings/networks
Click "New Virtual Network"
Set Network Name and Gateway IP/Subnet as desired
Next to "Advanced" click "Manual"
Set VLAN ID as desired
Check "Network" next to "Isolation" → click "Add"
Go to WiFi: https://192.168.1.1/network/default/settings/wifi
Click "Create New"
Set Name and Password as desired, and set Network to VLAN created above.
Optionally enable "Client Device Isolation" under Advanced → Manual
Click "Add WiFi Network"
Go to Landing Page settings: https://192.168.1.1/network/default/hotspot/portal → "Settings" (This page was not discoverable via "Search Settings" using the terms "landing", "hotspot", "portal", or "guest".)
Under "Landing Page Settings", uncheck "Show Landing Page" → click "Save"
/misc | Jan 20, 2024
While Automator and AppleScript fail to reliably batch delete thousands of calendar events in recent macOS versions (see Archiving Calendar.app events as plain text), Shortcuts.app is surprisingly successful:
Backup all calendars
File → New Shortcut
Action Library → Apps → Calendar
Drag "Find Calendar Events" into the shortcut editor (aka "main window")
Change Start Date as desired then click the plus symbol to the right and add additional criteria (e.g., "Calendar is Travel", "Calendar is not US Holidays", "End Date is Before 1/1/2023, 00:00", etc.)
Drag the "Remove Events" action underneath → click "Show More" → leave "Include Future Events:" unchecked to preserve repeating events linked to ones that will be deleted
Before running the shortcut, open Shortcuts Preferences... → Advanced and enable "Allow Deleting Large Amounts of Data"
Delete all events in the Travel calendar within the last 8 years that took place before 1/1/23 while preserving any repeating events after that date:
Delete events in all calendars other than Birthdays and US Holidays within the last 13 years that took place before 1/1/23 while preserving any repeating events after that date:
Start Date is the only required filter parameter in the "Find Calendar Events" action. Setting an overly-long value for "is in the last x years" resulted in the shortcut not returning any results.
While setting the Start Date to "is in the last 10 years" should include all earlier years (9, 8, etc.), Shortcuts does not always find them; be sure to check and rerun with a lower value if necessary.
Setting Start Date to "is between" did not work on large numbers of events.
Shortcuts.app does not require explicit authorization in System Preferences → Security & Privacy → Privacy for accessing data in Calendar.app. However, it is important to ensure that "Ask to Delete" is selected instead of "Never Delete" within the shortcut's Privacy settings (View → Show Shortcut Details → Privacy → "Allow this shortcut to delete data?"; the option becomes visible only after having clicked "Delete" or "Don't Delete" in the Privacy popup dialog on the first successful run).
Tested in macOS 12.6.1 Monterey with Shortcuts 5 and Calendar 11.
/mac | Dec 11, 2023
If the columns in Thunderbird's message list have disappeared, it may be due to Supernova's "Modernized Cards View". Revert to the original layout and get your columns back by clicking on the new "Message list display options" icon at top right and selecting "Table View":
/misc | Dec 11, 2023
Much like on macOS, emails can be easily exported as EML files by dragging them from Mail.app to Files.app in Split View.
As iPhones lack Split View support, a workaround is required to export EML files:
Tap the Compose icon.
Swipe down from the top bar of the New Message window to minimize it.
Tap and drag desired email message onto the small New Message window at the bottom of the screen.
Lift your finger when the New Message window reopens; this will attach the selected email as an EML file.
/misc | Dec 01, 2023
or, Monitoring app installers/activity:
Clone entire boot volume with Carbon Copy Cloner 5 (or 6 via Legacy Bootable Copy Assistant)
Install or run app
Repeat step 1
Compare clones with Beyond Compare in a root session: sudo /Applications/Beyond\ Compare.app/Contents/MacOS/BCompare
Create a local snapshot:1 tmutil localsnapshot
Install or run app
Repeat step 1
Find snapshot names: tmutil listlocalsnapshots /
com.apple.TimeMachine.2023-10-16-184148.local com.apple.TimeMachine.2023-10-16-184247.local
Create mount points and attach snapshots:2
%mkdir ~/snapshot1 ~/snapshot2
%mount_apfs -o ro -s com.apple.TimeMachine.2023-10-16-184148.local /System/Volumes/Data ~/snapshot1
%mount_apfs -o ro -s com.apple.TimeMachine.2023-10-16-184247.local /System/Volumes/Data ~/snapshot2
Compare snapshots with Beyond Compare as above
Unmount snapshots and optionally delete mount points (~/snapshot1 & ~/snapshot2) and snapshots (e.g., tmutil deletelocalsnapshots 2023-10-16-184247
) when done.
fs_usage
, fseventer, etc.)Suspicious Package (mentioned in ‘12, ‘17, & ‘21): "An application for inspecting macOS installer packages."
How do I know what files are installed by an installer program?
How to Open .pkg Files to View What Will Install on Mac with Suspicious Package: "Longtime Mac users may recall that a package inspection feature used to exist in Mac OS X some time ago via the right-click menu, but that feature has since been removed. More advanced Mac users can still extract pkg files with pkgutil without actually installing them but it requires the use of the command line, and the Show Files method to see what files are going to be installed and where to is not always available or detailed enough."
File Buddy (mentioned in ‘05 & ‘17): "Create snapshots to track changes to a folder or disk, such as files installed by an installer. Use the results of snapshot comparisons to uninstall applications."
FileControl: "Determine exactly which files have been changed, anywhere on your system."
Virtual machines:
Windows:
Time Machine backups exclude a number of files and folders and others may be excluded via the com_apple_backup_excludeItem
extended attribute (uncover them via sudo mdfind "com_apple_backup_excludeItem = 'com.apple.backupd'"
). ↩
Grant Terminal Full Disk Access to avoid mount_apfs: volume could not be mounted: Operation not permitted
. ↩
/mac | Oct 17, 2023
Several MP4 files hosted on this site are encoded using H.265 (HEVC). While most browsers support playback, Mozilla Firefox 118.0.1 returns an error:
Suggestions such as enabling pass-through support or providing a more descriptive error message have been made; alack, to no avail as yet.
Handy one-liner for returning the encoding type of all MP4 files in the current directory:
find . -type f -name "*.mp4" -exec sh -c 'echo -n "{}: "; ffprobe -v error -select_streams v:0 -show_entries stream=codec_name -of default=noprint_wrappers=1:nokey=1 "{}"' \;
/misc | Sep 29, 2023
"Should I wear a mask?" "Oh, absolutely not." 📺
"There's no reason to be walking around with a mask." 📺
"A mask is more appropriate for someone who is infected." 📺
"Do we need a national [mask] mandate?" "Yes." 📺
Bloomberg: The David Rubenstein Show: Anthony Fauci, May 22, 2019
Spectrum News: Disease Expert: Flu a Bigger Risk in the US Than Coronavirus
60 Minutes: March 2020: Dr. Anthony Fauci talks with Dr Jon LaPook about Covid-19 (See also Preventing coronavirus: Should you wear a face mask?)
Spectrum News: Disease Expert: Flu a Bigger Risk in the US Than Coronavirus
CNBC: Anthony Fauci on The News with Shepard Smith, October 28, 2020 (See also Fauci voices support for national mask mandate)
CNN: Dr. Fauci responds to study that says masks didn't work
2020:
USA Today: Top disease official: Risk of coronavirus in USA is 'minuscule'; skip mask and wash hands - "Fauci doesn't want people to worry about coronavirus, the danger of which is 'just minuscule.'"
NBC: Do you need a mask? The science hasn't changed, but public guidance might - "Surgeon General Jerome Adams has been outspoken against healthy people wearing masks or other coverings in public. '@WHO @CDCgov and my office have consistently recommended against the general public wearing masks as there is scant or conflicting evidence they benefit individual wearers in a meaningful way,' Adams wrote on Twitter."
Center for Infectious Disease Research & Policy at University of Minnesota: Masks-for-all for COVID-19 not based on sound data by Dr. Brosseau ("a national expert on respiratory protection and infectious diseases") and Dr. Sietsema ("an expert on respiratory protection")
2021:
City Journal: Do Masks Work? A review of the evidence
Independent: 1.6 billion disposable masks entered the ocean in 2020 and will take 450 years to biodegrade - "Waste from throwaway masks created a mass of plastic waste around 7 per cent of the size of the Great Garbage Plastic Patch"
Brownstone: More than 170 Comparative Studies and Articles on Mask Ineffectiveness and Harms
2022:
2023:
New York Times: The Mask Mandates Did Nothing. Will Any Lessons Be Learned?
Reason: Masks Make 'Little or No Difference' on COVID-19, Flu Rates: New Study
The Atlantic: A New Turn in the Fight Over Masks
CNN: Mask study author: 'More likely than not they don't work'
South China Morning Post: Maskless Joe Biden laughs off pandemic guidance despite first lady having Covid
USA Today: 'Don't tell them I didn't have it on': Biden flaunts not wearing mask after COVID exposure
Politico: Biden casts off his mask
/misc | Sep 18, 2023