Skip to content

Instantly share code, notes, and snippets.

View macmule's full-sized avatar

macmule macmule

View GitHub Profile
#!/bin/sh
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
# Check to see if /Users/Shared exists..
if [ -d "/Users/Shared/" ];
then
#!/bin/sh
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
#Check to see if Adobe Unit Types is installed
if [ -d /Library/ScriptingAdditions/Adobe\ Unit\ Types.osax ];
then
#!/bin/bash
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
if [ -n "$(/usr/bin/profiles list -type provisioning | /usr/bin/grep c9434bc1-de69-4727-85f7-4868f80feed6)" ]
then
/bin/echo "iMovie_27_Sep provisioning profile found, removing..."
#!/bin/sh
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
# Gets the UUID of the Partition "Users HD"
usersUUID=`diskutil info Users\ HD | grep Volume\ UUID: | awk '{print $3}'`
#!/bin/sh
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
####################################################################################################
#
# DEFINE VARIABLES
#!/bin/sh
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
# HARDCODED VALUES ARE SET HERE
# FQDN of NTP
#!/bin/sh
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
###########################################################################
# VARIABLES
###########################################################################
#!/bin/sh
####################################################################################################
#
# Licenses: http://macmule.com/license/
#
####################################################################################################
###########
#
# HARDCODED VALUES ARE SET HERE
#!/bin/sh
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
#Backup the original authorization file
sudo cp /etc/authorization /etc/authorization.bak
<VirtualHost jss.mycompany.com:80>
Redirect 301 / http://jss.mycompany.com:9006
</VirtualHost>