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 | |
# I got the meat of this script from somewhere but I can't remember where... | |
# if it was yours, let me know and I'll give credit. | |
''' | |
download macsysadmin videos | |
requires: |
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
{ | |
"output_name": "macos-netboot", | |
"bridged": true, | |
"netboot": true, | |
"netboot_hdsize": 60, | |
"netboot_osvers": "10.12" | |
} |
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 | |
# encoding: utf-8 | |
# ================================================================================ | |
# check-1012-sierra-compatibility.py | |
# | |
# This script checks if the current system is compatible with macOS 10.12 Sierra. | |
# These checks are based on the installCheckScript and volCheckScript in | |
# distribution file of OSInstall.mpkg installer package. The OSInstall.mpkg can be | |
# found in the root of InstallESD disk image. |
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
#disable icloud prompts | |
osvers_major=$(sw_vers -productVersion | awk -F. '{print $1}') | |
osvers_minor=$(sw_vers -productVersion | awk -F. '{print $2}') | |
/usr/bin/defaults write /System/Library/User\ Template/English.lproj/Library/Preferences/com.apple.SetupAssistant DidSeeCloudSetup -bool true | |
/usr/bin/defaults write /System/Library/User\ Template/English.lproj/Library/Preferences/com.apple.SetupAssistant GestureMovieSeen none | |
/usr/bin/defaults write /System/Library/User\ Template/English.lproj/Library/Preferences/com.apple.SetupAssistant LastSeenCloudProductVersion ${osvers_major}.${osvers_minor} |
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 | |
from SystemConfiguration import SCDynamicStoreCreate, SCDynamicStoreCopyValue | |
net_config = SCDynamicStoreCreate(None, "net", None, None) | |
def get_primaryinterface(): | |
states = SCDynamicStoreCopyValue(net_config, "State:/Network/Global/IPv4") | |
return states['PrimaryInterface'] |
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 | |
while [ ${SECONDS} -le 10 ]; do | |
if [ "$(scutil -r dc.yourdomain.com)" = "Reachable" ]; then | |
echo yep | |
break | |
fi | |
done |
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
include /usr/local/share/luggage/luggage.make | |
TITLE=app_firefox | |
REVERSE_DOMAIN=com.example.corp | |
PAYLOAD=unbz2-applications-firefox.app \ | |
pack-firefox-settings-local-settings.js \ | |
pack-firefox-settings-firefox_AA.cfg \ | |
pack-firefox-settings-override.ini | |
unbz2-applications-firefox.app: firefox.app.tar.bz2 l_Applications | |
@sudo ${TAR} xjf firefox.app.tar.bz2 -C ${WORK_D}/Applications |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "osx104" | |
config.vm.synced_folder "./data", "/vagrant_data" | |
config.vm.provision "shell", inline: <<-SHELL | |
curl -s -O "https://osquery-packages.s3.amazonaws.com/darwin/osquery-1.4.5.pkg" | |
installer -pkg osquery-1.4.5.pkg -target / | |
SHELL |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "osx103" | |
config.vm.provision "shell", inline: <<-SHELL | |
softwareupdate -l | |
SHELL | |
end |
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 | |
''' | |
This script returns the version of the specified Application | |
usage: | |
./pyappvers.py "VMware Fusion" | |
Documentation: | |
https://developer.apple.com/library/mac/documentation/CoreFoundation/Reference/CFPreferencesUtils/Reference/reference.html |
NewerOlder