Get old OS X/ macOS installer from the App Store via mas.
Direct links prioir to Catalina via Rich Trouton
Direct link: https://apps.apple.com/gb/app/macos-monterey/id1576738294
#!/usr/bin/python | |
""" | |
Completely reset TCC services database in macOS | |
Note: Both the system and individual users have TCC databases; run the script as both | |
a user and as root to completely reset TCC decisions at all levels. | |
2018-08-15: Resetting the 'Location' service fails; unknown cause | |
2018-08-16: Confirmed the 'All' service does not really reset _all_ | |
services, so individual calls to each service is necessary. |
Get old OS X/ macOS installer from the App Store via mas.
Direct links prioir to Catalina via Rich Trouton
Direct link: https://apps.apple.com/gb/app/macos-monterey/id1576738294
#!/bin/bash | |
# USAGE: ./rmSMB_Illegals.sh path | |
# Find searches through each file on a filesystem and passes the filenames to a | |
# function that tests for the presence of illegal characters and remediates. | |
# Bad characters are either removed or replaced with a ``-''. | |
# This has been tested on APFS on macOS 10.13.5. It'd be pretty safe to run this | |
# on a mounted volume, but it'd be nicer to test on Synology Linux and have it |
#!/bin/sh | |
# this script removes the binary before we install it to ensure that we don't end up with a hybrid of what was there and what we're installing | |
echo "Removing legacy helper startup items" | |
loggedInUser=$(stat -f%Su /dev/console) | |
bundleIds=( "2BUA8C4S2C.com.agilebits.onepassword4-helper" | |
"2BUA8C4S2C.com.agilebits.onepassword-osx-helper" | |
"com.agilebits.onepassword-osx-helper" | |
"ws.agile.1PasswordAgent" |
#!/usr/bin/python | |
from macholib import MachO | |
import macholib | |
import os | |
import sys | |
path = sys.argv[1] | |
for root, dirs, files in os.walk(path): |
#!/bin/zsh | |
:<<'ABOUT_THIS_SCRIPT' | |
----------------------------------------------------------------------- | |
Written by:William Smith | |
Partner Program Manager | |
Jamf | |
[email protected] | |
https://gist.github.com/b6637160b65b751824943ede022daa17 |
from ctypes import CDLL, Structure, POINTER, c_int64, c_int32, c_int16, c_char, c_uint32 | |
from ctypes.util import find_library | |
import time | |
c = CDLL(find_library("System")) | |
# https://opensource.apple.com/source/Libc/Libc-1158.50.2/include/NetBSD/utmpx.h.auto.html | |
# https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man3/endutxent.3.html#//apple_ref/doc/man/3/endutxent | |
BOOT_TIME = 2 |
# An overly complicated SIP config checker | |
# This is a technically interesting implementation because it does not rely on csrutil | |
# Instead it queries the kernel directly for the current configuration status | |
# This means, for example, in environments where SIP has been disabled and csrutil has | |
# been removed or modified (say, with DYLD_LIBRARY_PATH), as long as python can run you | |
# can still check status | |
# Additionally, checking the nvram csr-active-config setting isn't accurate now with | |
# 10.12.2+, since running "sudo csrutil clear" deletes the variable until reboot, |
#!/bin/sh | |
defaults read com.apple.finder CreateDesktop > /dev/null 2>&1 | |
enabled=$? | |
if [ "$1" = "off" ]; then | |
if [ $enabled -eq 1 ]; then | |
defaults write com.apple.finder CreateDesktop false | |
osascript -e 'tell application "Finder" to quit' | |
open -a Finder |
help.apple.com pages: | |
https://help.apple.com/accessibility/mac/control/10.12/ | |
https://help.apple.com/deployment/macos/ | |
https://help.apple.com/deployment/ios/ | |
https://help.apple.com/deployment/business/ | |
https://help.apple.com/education/ | |
https://help.apple.com/deployment/education/ | |
https://help.apple.com/machelp/mac/10.12/ | |
https://help.apple.com/serverapp/mac/ |