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 | |
LOGGER="/usr/bin/logger" | |
FILE_DATE=`date +%Y%m%d%H%M%S` | |
# Determine working directory | |
install_dir=`dirname $0` | |
# Location of Sophos keychain file |
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 | |
# | |
# Preparation script for a customized OS X installer for use with VWware Fusion and ESXi | |
# | |
# What the script does, in more detail: | |
# | |
# 1. Mounts the InstallESD.dmg using a shadow file, so the original DMG is left | |
# unchanged. | |
# 2. minstallconfig.xml is also copied, which is looked for by the installer environment's | |
# rc.* files that first load with the system. This allows us to never actually modify the |
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 | |
# This script is designed to automate the setup of OS X Server 5.0.3 and later | |
# by authorizing and using the 'server' tool within /Applications/Server.app to | |
# run the initial setup and configuration of OS X Server's services. | |
# Script will check for the existence of the 'server' setup tool. If the 'server' setup tool | |
# is not located where the script expects it to be, the script will exit. | |
if [[ ! -e "/Applications/Server.app/Contents/ServerRoot/usr/sbin/server" ]]; 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
java -version 2>&1 | awk 'NR==1{ gsub(/"/,""); print $3 }' |
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/python | |
"""Enables location services, allows Maps and Timezone""" | |
import os | |
import platform | |
import subprocess | |
import sys | |
try: | |
sys.path.append('/usr/local/munki/munkilib/') | |
import FoundationPlist | |
except ImportError as error: |
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
# Tested on 10.11 | |
# Assumes your network is in a state to actually do the discovery | |
# (Generally this means wifi enabled on your device and network stack is up) | |
# | |
# Note: When this code exits, it will generate an error message - this is to be expected! | |
# Error will look like: | |
# Python[3056:158489] PyObjC: Exception during dealloc of proxy: Cannot remove an observer <TimeZonePref 0x7f846b4b6710> | |
# for the key path "enabled" from <ATZAdminPrefererences 0x7f846b502a30> because it is not registered as an observer. | |
# | |
# This is because we're cheating with the initialization of a TimeZonePref class to get cheap access to |
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/env python | |
import base64 | |
import getpass | |
import sys | |
import xml.etree.ElementTree as Et | |
import urllib | |
import urllib2 | |
reload(sys) |
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
https://docs.google.com/document/d/1wdtJO9TaRn_aGAYCyUizuydWsVVTncx3Ey2V66sjRwI/edit |
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 | |
# Determine OS version | |
osvers=$(sw_vers -productVersion | awk -F. '{print $2}') | |
# Set whether you want to send diagnostic info back to | |
# Apple and/or third party app developers. If you want | |
# to send diagonostic data to Apple, set the following | |
# value for the SUBMIT_DIAGNOSTIC_DATA_TO_APPLE value: | |
# |
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 | |
# Add the user and group used by Tomcat on your Linux | |
# server. For Casper 9.x running on Red Hat Enterprise | |
# Linux, the user and group are filled in below. | |
linux_tomcat_user="tomcat7" | |
linux_tomcat_group="tomcat7" | |
# Add the user and group used by Tomcat on your Linux |