Skip to content

Instantly share code, notes, and snippets.

View joshua-d-miller's full-sized avatar

Joshua D. Miller joshua-d-miller

View GitHub Profile
#!/bin/bash
# Script to perform Adobe Creative Cloud Updates using AAMPORTER
# Joshua D. Miller - [email protected]
# February 16, 2015
# Creative Cloud 2013 (First Creative Cloud Version)
/bin/echo "Checking for Updates for Creative Cloud"
/Volumes/RAID3L/aamporter/./aamporter.py -p /Volumes/RAID3L/aamporter/2013/Audition.plist --munkiimport \
/Volumes/RAID3L/aamporter/./aamporter.py -p /Volumes/RAID3L/aamporter/2013/Bridge.plist --munkiimport \
/Volumes/RAID3L/aamporter/./aamporter.py -p /Volumes/RAID3L/aamporter/2013/Dreamweaver.plist --munkiimport \
@joshua-d-miller
joshua-d-miller / NASA Eye's Visualization
Created March 24, 2015 12:22
makepkginfo -f explorer-mac
<?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>_metadata</key>
<dict>
<key>created_by</key>
<string>jdm51</string>
<key>creation_date</key>
<date>2015-03-24T12:22:12Z</date>
@joshua-d-miller
joshua-d-miller / ADExCheck.sh
Created June 23, 2014 21:33
Check for Exchange Account AD
#!/bin/bash
/usr/bin/dscl -plist /Active\ Directory/Domain/All\ Domains -read /Users/username > /tmp/Exchange.plist
if /usr/bin/defaults read /tmp/Exchange dsAttrTypeNative:msExchHomeServerName
then
echo "Yes"
else
echo "No"
fi
@joshua-d-miller
joshua-d-miller / ManifestCheck
Last active August 29, 2015 14:02
Check for manifest and create one if it doesn't exist (Munki)
#!/bin/bash
# Determine if a manifest exists for the computer
username=""
encpassword=""
password=`echo "$encpassword" | base64 --decode`
/bin/mkdir /Volumes/client\ manifests
/sbin/mount_afp afp://$username:$password@servername/munki/repo/manifests/hosts /Volumes/client\ manifests
path="/Volumes/client manifests/$computername"
if [[ -e $path ]]
@joshua-d-miller
joshua-d-miller / java7u51exception
Created January 20, 2014 17:04
Java 7 Update 51 Exception.sites script to allow all users to modify the file as well as add your own on the administrative side. Use as postinstall_script.
#!/bin/sh
# Java script to add the exception.sites in a shared location for the
# new version of Java. Script created and updated by Josh Miller and
# Matt Hansen. Last update January 20, 2014.
# This command will check to see if the Java Deployment directory
# exists. If not, it will create it for you.
test -d /Library/Application\ Support/Oracle/Java/Deployment || mkdir -p /Library/Application\ Support/Oracle/Java/Deployment