This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Download the script from https://gist.github.com/macsimom/982d507ff94767428e4832ef0fdbdf0c | |
# Open Terminal | |
# diskutil list | |
# Find the device identifer of the recovery partition, eg. "disk1s3" | |
# call the script with the device indentifier | |
# bash build_a_booter_for_fusion.sh disk1s3 | |
# An iso file is built at /Users/Shared | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
function ENABLEARD(){ | |
dscl . -create "/Users/${1}" dsAttrTypeNative:naprivs -1073741569 | |
touch "/Library/Application Support/Apple/Remote Desktop/RemoteManagement.launchd" | |
if ! launchctl list|grep -q com.apple.screensharing ; then | |
launchctl load -w /System/Library/LaunchDaemons/com.apple.screensharing.plist | |
fi | |
echo "Enabled Apple Remote Desktop Management for ${1}" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Call this script with the arguments [personal recovery key] [the name of a user to "reset"] | |
# i.e. "promote_personal_recovery_key_to_admin_user.sh 6323-AHJD-1231-4234-GHJ1-FH23 user1" | |
# a new user called "another" user is generated. It has the prk with a dash at the end for a password | |
# a new prk is generated and the user to reset is re-created with the password "password" and a | |
# newly minted secure token | |
#set -x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.m | |
// openwithrosetta | |
// | |
// Created by Simon Andersen on 13/09/2021. | |
// | |
#import <Foundation/Foundation.h> | |
int main(int argc, const char * argv[]) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// MIT License | |
// | |
// Copyright (c) 2022 Simon Andersen | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), | |
// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
// and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
// | |
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. |
OlderNewer