Skip to content

Instantly share code, notes, and snippets.

View nmcspadden's full-sized avatar

Nick McSpadden nmcspadden

View GitHub Profile
#
# 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
@nmcspadden
nmcspadden / xcode_results_9.2.txt
Created February 13, 2018 15:21
Xcode 9.2 AutoPkg
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:
@nmcspadden
nmcspadden / xcode_results_9.3b2.txt
Created February 13, 2018 00:56
Xcode 9.3 beta 2 AutoPkg
$ 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:
@nmcspadden
nmcspadden / bash_output
Last active November 28, 2017 16:10
Testing named vs. unnamed loggers
$ 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
#!/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)
@nmcspadden
nmcspadden / swuprun.sh
Created December 3, 2016 21:51 — forked from MagerValp/swuprun.sh
Start a linked clone of a VM and list available software updates.
#!/bin/bash
#
# Start a linked clone of a VM and list available software updates.
declare -r FUSION_PATH="/Applications/VMware Fusion.app"
declare -r GUEST_USER="swup"
declare -r GUEST_PASSWORD="swup"
# Exit status constants.
December 2, 2016 at 12:02:02 PM PST Starting phase: Converting disk image
December 2, 2016 at 12:02:02 PM PST phase: Converting disk image
December 2, 2016 at 12:02:02 PM PST Ejecting image
December 2, 2016 at 12:02:02 PM PST message: Ejecting image
December 2, 2016 at 12:02:02 PM PST Ejecting '/Volumes/Macintosh HD'
December 2, 2016 at 12:02:02 PM PST message: Ejecting '/Volumes/Macintosh HD'
December 2, 2016 at 12:02:02 PM PST hdiutil: detach: processing "/Volumes/Macintosh HD"
December 2, 2016 at 12:02:02 PM PST LetDIDriverSettleDown: calling IOServiceWaitQuiet...
December 2, 2016 at 12:02:02 PM PST DI_kextWaitQuiet: about to call IOServiceWaitQuiet...
December 2, 2016 at 12:02:02 PM PST DI_kextWaitQuiet: IOServiceWaitQuiet took 0.000002 seconds
autopkg run -vv android_ndk.munki -k RELEASE='r12b'
Processing android_ndk.munki...
URLTextSearcher
{'Input': {'re_pattern': u'"(https:\\/\\/dl\\.google\\.com\\/android\\/repository\\/android-ndk-r12b-darwin-x86_64.zip)"',
'url': u'https://github.com/android-ndk/ndk/wiki'}}
URLTextSearcher: No value supplied for CURL_PATH, setting default value of: /usr/bin/curl
URLTextSearcher: No value supplied for result_output_var_name, setting default value of: match
URLTextSearcher: Found matching text (match): https://dl.google.com/android/repository/android-ndk-r12b-darwin-x86_64.zip
{'Output': {'match': 'https://dl.google.com/android/repository/android-ndk-r12b-darwin-x86_64.zip'}}
URLDownloader
<?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>OnDemand</key>
<true/>
<key>autoremove</key>
<false/>
<key>catalogs</key>
<array>
@nmcspadden
nmcspadden / WP_adobeapi_add_adobe.py
Last active October 19, 2016 14:33
add_adobe script
#!/usr/bin/python
"""Add Adobe products to user on-demand."""
import sys
# If you need to make sure this is always in your path, use:
# sys.path.append('/path/to/your/lib')
# Example:
# sys.path.append('/opt/facebook/lib')
import adobe_tools