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 | |
######################################################################## | |
# Originally Created Created By: Andrina Kelly, [email protected] | |
# Modifications from scripts from Bryson Tyrrell | |
# Final by Ross Derewianko | |
# Creation Date: April 2015 | |
# Last modified: April, 18 2015 | |
# Brief Description: Gather diagnostic logs and submit to the JSS | |
######################################################################## |
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
nc -z gateway.sandbox.push.apple.com 2195 | |
nc -z gateway.sandbox.push.apple.com 2196 | |
nc -z 35-courier.push.apple.com 5223 | |
nc -z albert.apple.com 443 | |
nc -z jssurl jssport |
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 | |
OS=`/usr/bin/sw_vers -productVersion | /usr/bin/colrm 5` | |
if [[ "$OS" < "10.6" ]]; then | |
myVMList=`find /Users -name "*.vmx"` | |
else | |
myVMList=`mdfind -name ".vmx" | grep -Ev "vmx.lck" | grep -Ev "vmxf"` | |
fi |
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 /usr/local/bin/autopkg run --recipe-list ~/Library/Application\ Support/AutoPkgr/recipe_list.txt --report-plist /tmp/autopkg-output.xml |
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 | |
#File Name:CheckWarranty.sh | |
######################################################################## | |
# Created By: Andrew Tomson Modified by Ross Derewianko for Self Service | |
# Creation Date: Sept 2015 | |
# Last modified: Sept 28, 2015 | |
# Brief Description: Lets the user Know its changed | |
######################################################################## | |
# this script was written to query apple's service database to determine warranty coverage | |
# base on a system's serial number. This updated version stores the infomration locally so |
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
alias sudo='sudo ' | |
alias jamf='sh /usr/local/bin/jamfscript.sh ' |
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 | |
if [ $1 = "removeFramework" ]; then | |
echo "Framework Removing" | |
#put your removal script here... | |
else | |
/usr/local/bin/jamf $1 | |
fi |
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 | |
# Determine working directory | |
install_dir=`dirname $0` | |
#Move them all into a folder like on 2011 | |
mkdir /Applications/Microsoft\ Office\ 2016 | |
chown root:wheel /Applications/Microsoft\ Office\ 2016 |
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 | |
import Cocoa | |
import sys | |
Cocoa.NSWorkspace.sharedWorkspace().setIcon_forFile_options_(Cocoa.NSImage.alloc().initWithContentsOfFile_(sys.argv[1].decode('utf-8')), sys.argv[2].decode('utf-8'), 0) or sys.exit("Unable to set file icon") |
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 | |
# https://developer.apple.com/library/mac/documentation/cocoa/reference/applicationkit/classes/NSWorkspace_Class/Reference/Reference.html | |
# https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSURL_Class/Reference/Reference.html | |
# https://developer.apple.com/library/mac/documentation/cocoa/reference/applicationkit/classes/NSScreen_Class/Reference/Reference.html | |
from AppKit import NSWorkspace, NSScreen | |
try: | |
from AppKit import NSWorkspaceDesktopImageScalingKey | |
except ImportError: |
OlderNewer