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 | |
javaVendor=`defaults read /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Info CFBundleIdentifier` | |
if [ "$javaVendor" = "com.oracle.java.JavaAppletPlugin" ]; then | |
result=Oracle | |
elif [ "$javaVendor" = "com.apple.java.JavaAppletPlugin" ]; then | |
result=Apple | |
elif [ "$javaVendor" = "" ]; then | |
result="No Java Plug-In Available" |
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/tcsh -f | |
## | |
############################ login.sh ########################### | |
# Mike Bombich | [email protected] | |
# Copyright 2002 Mike Bombich. | |
# With the appropriate modification to /etc/ttys, this script will | |
# execute each time a user logs in. | |
################################################################## | |
# This script takes the username as an argument, then removes any |
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 | |
PATH=/bin:/usr/bin:/sbin:/usr/sbin export PATH | |
# Define the recipient. | |
RECIP="[email protected]" | |
# That should be it for the necessary configuration part. The rest can be pretty much as-is. | |
NAME=`hostname` | |
LOGS="/tmp/tomcat-restart.txt" | |
HWLOGDATE=$(printf "`date "+%a %h %e"` \n") |
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 | |
# Adding two websites to Safari's Java whitelist in your Mac's default user template and for all existing users. | |
# Code adapted from DeployStudio's rc130 ds_finalize script, from the section where DeployStudio is disabling the iCloud and gestures demos | |
# Get today's date | |
TODAY=$(date "+%FT%TZ") | |
# Checks first to see if the Mac is running defaults10.6 or higher. |
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 | |
# This script will check the current Java 6 and Java 7 browser plug-in | |
# versions and compare them against the minimum version allowed by | |
# Apple's XProtect malware protection. If the minimum Java version | |
# allowed by XProtect does not allow the current version of the Java | |
# browser plug-in on the Mac, the script will alter the Mac's | |
# /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/XProtect.meta.plist | |
# file to set the minimum version allowed to match the current version | |
# of the Mac's Java browser plug-in. This allows the Mac's current Java |
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
-- Look up AD home directory script | |
-- Peter Bukowinski | |
-- Rich Trouton | |
-- this repeat loop prevents empty strings from being submitted | |
set q to 0 | |
repeat while q is 0 | |
set result to text returned of (display dialog "Enter the Username whose home folder you want to look up:" default answer "") | |
if result is not "" then | |
set userName to result |
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 | |
# Determines if either of the following | |
# Java builds are installed: | |
# | |
# 10.6.x: 1.6.0_51-b11-456-10M4508 | |
# 10.7.x - 10.8.x: 1.6.0_51-b11-456-11M4508 | |
# | |
# This builds were installed by the first versions of | |
# Java for OS X 2013-004 and Java for Mac OS X 10.6 Update 16 |
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 | |
# Original version of this script posted by | |
# Michael Kuron <[email protected]> | |
# Posted to the MacEnterprise list on June 22, 2013: | |
# http://tinyurl.com/m8fp4ou | |
# | |
# This script works on Mac OS X 10.7.0 and higher | |
# |
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 | |
# This script checks the timestamp of the fileURL and compares it against a locally | |
# cached timestamp. If the archive's timestamp is newer, then it gets downloaded, | |
# extracted into /etc/, and the automount cache gets flushed. | |
fileURL="http://server.name.here/path/to/automounts.tgz" | |
sleep 20 | |
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 | |
# | |
# Preparation script for a customized OS X installer for use with VWware Fusion | |
# | |
# What the script does, in more detail: | |
# | |
# 1. Mounts the InstallESD.dmg using a shadow file, so the original DMG is left | |
# unchanged. | |
# 2. minstallconfig.xml is also copied, which is looked for by the installer environment's | |
# rc.* files that first load with the system. This allows us to never actually modify the |
OlderNewer