Securely erasing disks in MacOS

Steps to Securely Erase in Disk Utility

  1. Open Disk Utility (found in /Applications/Utilities/).
  2. Choose View > Show All Devices to ensure you select the physical drive, not just the volume.
  3. Select the drive you want to erase.
  4. Click the Erase button in the toolbar.
  5. Click Security Options and move the slider to choose how many times to overwrite the data.
    • Fastest: Standard erase, no secure overwrite.
    • Single-pass (0): Writes zeros over the drive.
    • 3-Pass (4): DOE-compliant 3-pass overwrite.
    • 7-Pass (2): DoD 5220.22 M standard.
  6. Select a format (e.g., APFS or Mac OS Extended) and click Erase

Secure Erase Using Terminal 

  1. Identify the disk: diskutil list.
  2. Run the command: sudo diskutil secureErase [level] /dev/diskX.
    • Level 0: Single-pass zeros.
    • Level 1: Single-pass random.
    • Level 2: 7-pass secure erase.
    • Level 3: Gutmann algorithm (35-pass).
    • Level 4: 3-pass secure erase.

Important Notes

  • SSDs: Secure erase options are not necessary for most modern SSDs with TRIM enabled, as a standard erase is sufficient. Using多-pass overwrites on SSDs causes unnecessary wear.
  • FileVault: If your drive is encrypted with FileVault, simply erasing it (“Erase All Content and Settings” on modern Macs) destroys the encryption key, making the data unrecoverable.
  • Warnings: Secure erasure can take a long time. Ensure you have backed up any data you wish to keep.

How to allow a client to bypass pi-hole blocking

Credit to https://discourse.pi-hole.net/t/exclude-certain-lan-addresses-from-filtering/2014/6

With the help of reddit, I managed to find a way to bypass the pihole straight to google 8.8.8.8 , It is set up by mac address.

Find the mac address and place this in your /etc/dnsmasq.d/ directory 394.

cd /etc/dnsmasq.d/

wget https://raw.githubusercontent.com/deathbybandaid/piadvanced/master/piholetweaks/dnsmasqtweaks/04-bypass.conf

nano 04-bypass.conf
(replace mac address)

dnsmasq --test
(tests the configuration)

sudo service dnsmasq restart
Or
sudo reboot

It would be awesome to do something like this via the webui!

Force Safari history to sync on macOS Catalina

In order to force safari history syncing between your iPad/iPhone and Mac, you will need to first enable the “debug” menu.. This is not to be confused with the “Develop” menu, which you can enable in Safari’s settings. Make sure you have also selected “safari” within your iCloud account settings on all devices you want to sync.

1st, close safari completely with Command-Q (or whatever your preferred method is)

2nd, go to ‘System Preferences > Security & Privacy > Privacy > Full Disk Access’ and add Terminal.

3rd, within Terminal, execute ‘defaults write com.apple.Safari IncludeInternalDebugMenu 1′ (without the quotes’

4th, launch Safari, and on the newly created “Debug” menu, choose ‘Sync iCloud History’

You should know see your synced history between that Mac and your iOS devices!

VMware Fusion Export VM to OVA

Credit to the source of this article

There’s no GUI option to export an OVA (Open Virtual Appliance) format VM in VMware fusion, but there is a command-line method. Use the OVF tool. The following provides a command-line synopsis.

$ cd /Applications/VMware\ Fusion.app/Contents/Library/VMware\ OVF\ Tool/

$ ./ovftool –acceptAllEulas \
> /Users/me/Documents/Virtual\ Machines.localized/TheVM.vmwarevm/TheVM.vmx \
> ~/Desktop/TheVM.ova

Opening VMX source: […]

Opening OVA target: […]

Writing OVA package: /Users/me/Desktop/TheVM.ova

In the middle of a New England winter

I have a hard time with ‘global warming’ when we have winters like this.. Already the snow banks are up to my shoulders, and in the middle of a cold snap with overnight lows well below zero, and daytime highs barely reaching double digits!

Its so cold, that for the first time since I purchased it, I actually used the hand warmers on my Arien’s snow blower!

IMG_8923

Spent some time in the garage this weekend.

Admittedly, I have not had the time to spend in the garage so far this summer as I would like.. Unfortunately, as happens too often, life gets in the way.

But this past weekend I finally got to spend some ‘me’ time doing what I love the most, wrenching on real musclecar’s. My brother in law needed a little work on his 69 Nova.. He needed a ball joint replaced and had a problem in the charging system.

When it comes to GM muscle cars, I have always believed in replacing all 4 at the same time (unless of course any have been recently replaced). Turns out the one that was worn to the point of being a safety concern, was an aftermarket unit.. the other 3, which were showing only a minor amount of wear, were the factory joints! I was shocked to say the least!

IMG_6590

IMG_6586