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
@nmcspadden
nmcspadden / gist:5091486
Last active Dec 14, 2015
AddWifi LaunchAgent.plist - the startup launchd item for the AddWifi script.
View gist:5091486
<?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>Label</key>
<string>org.sacredsf.wifi.plist</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/libexec/add_wifi.sh</string>
</array>
@nmcspadden
nmcspadden / AddWifi.sh
Last active Jul 31, 2019
AddWifi.sh - joins a wifi network at the login window.
View AddWifi.sh
#!/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.
@nmcspadden
nmcspadden / gist:5162560
Created Mar 14, 2013
Adobe CreativeSuite 5 repackage pkginfo
View gist:5162560
<?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>RestartAction</key>
<string>RequireRestart</string>
<key>autoremove</key>
<false/>
<key>catalogs</key>
<array>
@nmcspadden
nmcspadden / gist:5162585
Created Mar 14, 2013
Adobe Creative Suite 6 pkginfo, generated with AAMEE 3.1
View gist:5162585
<?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>AdobeSetupType</key>
<string>ProductInstall</string>
<key>adobe_install_info</key>
<dict>
<key>media_signature</key>
<string>{D8C642B6-A719-4234-8039-2654ED436D2A}</string>
@nmcspadden
nmcspadden / ARD installcheck_script
Last active Dec 15, 2015
ARD installcheck_script to make sure Admin is among the list of ARD users, but not everyone is.
View ARD installcheck_script
#!/bin/sh
# Determines if the Remote Management settings are set
# for "All Users" or for "Only these users:" in System
# Preferences' Sharing preference pane
ARD_ALL_LOCAL=`/usr/bin/defaults read /Library/Preferences/com.apple.RemoteManagement ARD_AllLocalUsers`
# Lists all local user accounts on the Mac with a UID
# of greater or equal to 500 and less than 1024. This
View StrategicPlanReport
/*global SpreadsheetApp: false, UiApp: false */
// Close the current UI
function exit() {
"use strict";
var ui = UiApp.getActiveApplication();
return ui.close();
}
// Callback action for button labelled "Generate Report"
View ARD Login Template
osascript <<EndOfMyScript
set logInUser to "name"
set logInPassword to "password"
tell application "System Events"
tell application process "loginwindow"
key code 53
delay 1
key code 125
delay 1
key code 36 using option down
@nmcspadden
nmcspadden / Java7Update21.pkginfo
Last active Dec 16, 2015
Java 7 Update 21 pkginfo
View Java7Update21.pkginfo
<?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>autoremove</key>
<false/>
<key>catalogs</key>
<array>
<string>testing</string>
</array>
View StrategicReporter
/*global SpreadsheetApp: false, UiApp: false */
// Close the current UI
function exit() {
"use strict";
var ui = UiApp.getActiveApplication();
return ui.close();
}
// Callback action for button labelled "Generate Report"
@nmcspadden
nmcspadden / ARD kickstart
Created May 8, 2013
Kickstarts ARD for admin user
View ARD kickstart
#!/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
You can’t perform that action at this time.