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
#!/usr/bin/python2.7 | |
# -*- coding: utf-8 -*- | |
''' | |
Defaults Monitor - tool to sniff defaults keys and values using unified log | |
to launch use standard python 2.7, eg python2.7 ./defsmon.py | |
''' | |
import os |
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/sh | |
# | |
# File: macos-installer-to-iso.sh | |
# | |
# Create a bootable ISO image from a macOS installer to install VMware ESXi guests. | |
# | |
# https://gist.github.com/Kutkovsky/613e29f35d3ef420b23b59ecdf7a28e0 | |
# Debug on: set -x | |
set -eux |
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 | |
<<ABOUT_THIS_SCRIPT | |
----------------------------------------------------------------------- | |
Written by:William Smith | |
Professional Services Engineer | |
Jamf | |
[email protected] | |
https://gist.github.com/talkingmoose/9faf50deaaefafa9a147e48ba39bb4b0 |
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 | |
## postinstall | |
pathToScript=$0 | |
pathToPackage=$1 | |
targetLocation=$2 | |
targetVolume=$3 | |
# This postinstall script for Composer creates the following | |
# A LaunchDaemon that starts a separate script to run a Jamf Pro policy command |
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/sh | |
<<ABOUT_THIS_SCRIPT | |
----------------------------------------------------------------------- | |
Written by: William Smith | |
Professional Services Engineer | |
Jamf | |
[email protected] | |
https://github.com/talkingmoose/Jamf-Scripts | |
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/sh | |
if [[ `id -u` != 0 ]]; then | |
echo "Must be root to run script" | |
exit | |
fi | |
read -p "Enter user name and press [ENTER]: " UserName | |
if [[ $UserName == `dscl . -list /Users UniqueID | awk '{print $1}' | grep -w $UserName` ]]; then |
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 | |
# modify the system.preferences right | |
/usr/bin/security authorizationdb write system.preferences <<EndOfPlist | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>allow-root</key> | |
<true/> |
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 | |
# Seriously there still apparently aren't enough warning labels | |
# If you don't understand the consequences don't do it | |
REMOVE_PATHS=( # "/var/db/ConfigurationProfiles/.passcodePolicesAreInstalled" | |
# "/var/db/ConfigurationProfiles/.cloudConfigHasActivationRecord" | |
# "/var/db/ConfigurationProfiles/.cloudConfigNoActivationRecord" | |
# "/var/db/ConfigurationProfiles/.cloudConfigProfileObtained" | |
# "/var/db/ConfigurationProfiles/.cloudConfigRecordFound" | |
# "/var/db/ConfigurationProfiles/.profilesAreInstalled" |
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
bash-3.2$ /Applications/Install\ macOS\ Sierra.app/Contents/Resources/startosinstall --usage | |
Usage: startosinstall --applicationpath <install macOS.app path> | |
Arguments | |
--applicationpath, a path to copy of the OS installer application to start the install with. | |
--license, prints the user license agreement only. | |
--agreetolicense, agree to license the license you printed with --license. | |
--rebootdelay, how long to delay the reboot at the end of preparing. This delay is in seconds and has a maximum of 300 (5 minutes). | |
--pidtosignal, Specify a PID to which to send SIGUSR1 upon completion of the prepare phase. To bypass "rebootdelay" send SIGUSR1 back to startosinstall. | |
--usage, prints this message. |
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
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> | |
<LoginDialog> | |
<Days>1</Days> | |
<AutoFindServer>0</AutoFindServer> | |
<AutoFindMaxTime>1</AutoFindMaxTime> | |
<DontShowAtStartup>1</DontShowAtStartup> | |
<Servers> | |
<Server>license-server.org.my:5053</Server> | |
</Servers> | |
<Modules> |
NewerOlder