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 | |
for profile in Profiles/*.mobileconfig | |
do | |
s=${profile##*/} | |
outName=${s%.*} | |
outName+="Signed.mobileconfig" | |
/usr/bin/security cms -S -N "Mac Developer Application" -i $profile -o "$outName" | |
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
# | |
# Common Requirements | |
# See below for *nix and MacOS requirements. | |
# | |
appdirs==1.4.4 | |
attrs==21.4.0 | |
black==22.3.0 | |
certifi==2021.10.8 | |
cffi==1.15.0 | |
cfgv==3.3.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
#!/usr/bin/python | |
"""Bootstrap Chef with no other dependencies.""" | |
import os | |
import sys | |
import platform | |
import subprocess | |
import json | |
import plistlib | |
import urllib2 |
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 | |
# Set paths to our utilities | |
networksetup=/usr/sbin/networksetup | |
airport=/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport | |
# Determines which OS the script is running on | |
osvers=$(sw_vers -productVersion | awk -F. '{print $2}') | |
# On 10.7 and higher, the Wi-Fi interface needs to be identified. |
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
autopkg run -vvv Xcode.munki -p ~/Downloads/xcode_9.2.xip | |
Processing Xcode.munki... | |
... | |
PackageRequired | |
{'Input': {}} | |
{'Output': {}} | |
XcodeXIPUnpacker | |
{'Input': {'PKG': '/Users/nmcspadden/Downloads/xcode_9.2.xip'}} | |
XcodeXIPUnpacker: Xar unpacking /Users/nmcspadden/Downloads/xcode_9.2.xip | |
XcodeXIPUnpacker: |
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
$ autopkg run -vvv Xcode.munki -p ~/Downloads/Xcode_9.3_beta_2.xip | |
Processing Xcode.munki... | |
... | |
PackageRequired | |
{'Input': {}} | |
{'Output': {}} | |
XcodeXIPUnpacker | |
{'Input': {'PKG': '/Users/nmcspadden/Downloads/Xcode_9.3_beta_2.xip'}} | |
XcodeXIPUnpacker: Xar unpacking /Users/nmcspadden/Downloads/Xcode_9.3_beta_2.xip | |
XcodeXIPUnpacker: |
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
$ python named_logger.py | |
WARNING:root:warning | |
ERROR:root:error | |
CRITICAL:root:critical | |
Hi. | |
$ python unnamed_logger.py | |
2017-11-28 08:05:40 INFO: Writing verbose debug log to: /var/folders/th/3tqg05g54f73x0k_mstm5wy1_0g_xw/T/mm.XcXk7B.log | |
2017-11-28 08:05:40 INFO: info | |
2017-11-28 08:05:40 WARNING: warning | |
2017-11-28 08:05:40 ERROR: 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
#!/bin/sh | |
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -allowAccessFor -specifiedUsers | |
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -users "admin" -privs -all -restart -agent |
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 | |
"""Verify the date because Apple can't.""" | |
import datetime | |
import shell_tools | |
import sys_tools | |
current_year = int(datetime.datetime.now().year) | |
sys_tools.log('CPE-date_verification', 'Year is: %s' % current_year) |
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 | |
# Variables. Edit these. | |
printername="shhs_gabrielle".sacredsf.org | |
location="SHHS Gabrielle" | |
gui_display_name=$location | |
address=$printername | |
driver_ppd="/Library/Printers/PPDs/Contents/Resources/Xerox WC 7556.gz" | |
# Populate these options if you want to set specific options for the printer. E.g. duplexing installed, etc. | |
option_1="XRLanFax=False" |
NewerOlder