Skip to content

Instantly share code, notes, and snippets.

Nick McSpadden nmcspadden

Block or report user

Report or block nmcspadden

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View mad_wizard_deekin_familiars.vbs
;LEVEL DETECTOR GEM FARM
;This script is designed to farm gems and boss chest drops by automatically progressing through low level areas, then resetting and starting over the same mission
;It achieves this by levelling click damage and clicking automatically to kill enemies as fast as possible. To ensure the fastest boss kills, and to pick up
;item drops, it utilizes a pixel-color detector to determine when the game is changing levels. This allows it to know when it is 'safe' to level champions
;or click damage without missing anything, and allows it to click in the right place to pick up items as they drop and to open the boss loot bag as soon
;as it reaches the middle of the screen. Overall this allows for a sub 11 minute run, with no down time; the script resets as soon as it reaches area 31.
;Settings: Set your adventure map to show all, including completed adventures (though the script should handle this). Set level up mode to UPG (though the script should handle this),
;turn on autoprogress (though the
View xcode_results_9.2.txt
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:
View xcode_results_9.3b2.txt
$ 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 Nov 28, 2017
Testing named vs. unnamed loggers
View bash_output
$ 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
View date_verification.py
#!/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 Dec 3, 2016 — forked from MagerValp/swuprun.sh
Start a linked clone of a VM and list available software updates.
View swuprun.sh
#!/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.
View gist:c806fe30392778f03be9d7e198cbc8a4
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
View android_ndk traceback
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
View AddAdobeCCAPI_photoshop.plist
<?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>
View WP_adobeapi_add_adobe.py
#!/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
You can’t perform that action at this time.