Skip to content

Instantly share code, notes, and snippets.

@macsimom
macsimom / Disable_macOS_upgrade.sh
Created September 4, 2019 17:39
Call it with sudo bash Disable_macOS_upgrade.sh disable Catalina
#!/bin/bash
# Call it with eg. sudo bash Disable_macOS_upgrade.sh disable Catalina
disable_osxnotification() {
if [ -d /Library/Bundles/OSXNotification.bundle ]; then
hdiutil create -format UDZO -fs hfs+ -srcfolder /Library/Bundles/OSXNotification.bundle /Library/Bundles/OSXNotification
rm -rf /Library/Bundles/OSXNotification.bundle
fi
if [[ ! -e /Library/Bundles/OSXNotification.bundle ]]; then
touch /Library/Bundles/OSXNotification.bundle
@macsimom
macsimom / macos_vm_kickstarter.sh
Last active September 9, 2019 20:27
Ever minimizing the steps to get Catalina Beta running in VMware Fusion
#!/bin/bash
####
#
# Prerequisite steps:
#
# 1 - Download a copy of the Install macOS app
# 2 - Mount the InstallESD.dmg and extract the kernel file with Pacifist from Core.pkg
# 3 - Create a new macOS 10.14 vm (give it more ram than the standard 2 GB)
#
@macsimom
macsimom / NoMAD_shares.sh
Last active September 11, 2019 09:33
Query a domain server or multiple domain servers for fileshares. Try and mount each share. If accessible then add to NoMAD menu.
#!/bin/bash
SERVERS="server1 server2"
# Maybe use commandline arguments as servers: SERVERS="$@"
TEMPPLIST=$(mktemp -t nstl)
cat <<EOF > "$TEMPPLIST"
<?xml version="1.0" encoding="UTF-8"?>
@macsimom
macsimom / Beta6.sh
Created August 22, 2019 09:26
Partially automatable script to get Catalina Beta 6 up and running VMware Fusion 11.1.1 using a physical Mac and USB stick
#!/bin/bash
####
#
# Prerequisite: You must have a disk image containing the "Install macOS Catalina Beta.app" for beta 6
# (installinstallmacos.py generates a nice one)
# The disk image must be reachable on an smb share from the final vm
# You must extract the kernel from inside the Core.pkg in InstallESD.dmg located in "Install macOS Catalina Beta.app" and put it on the root of the USB drive
# Pacifist from https://charlessoft.com is indispensable for this operation
# And you must replace a few VARS down below with values of your own: PATHTOBASESYSTEM, PATHTOBASESYSTEMCHUNKLIST, PATHTOUSBSTICK, SHAREUSERNAME ,SHAREHOST, SHARENAME, PATHTOINSTALLINSTALLMACOSIMAGE