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 | |
scriptDir=$(dirname "$0") | |
if [ -e "/Library/Application Support/LANrev Agent/LANrev Agent.app/Contents/Resources/CobraClientDebugUI.nib/classes.nib" ]; then | |
rm "/Library/Application Support/LANrev Agent/LANrev Agent.app/Contents/Resources/CobraClientDebugUI.nib/classes.nib" | |
echo "Deleting classes.nib" | |
else | |
echo "Did not find classes.nib" | |
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/sh | |
fmm=`nvram -x -p | grep fmm-mobileme-token` | |
if [[ "$fmm" =~ "fmm-mobileme" ]]; then | |
echo "Enabled" | |
else | |
echo "Disabled" | |
fi | |
exit 0 |
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
By default these URLs are disabled. They need to be enabled by an Admin | |
side server pref key | |
Key: AllowURLSDPackageImport | |
Type: Boolean | |
Dafault: false | |
This implemented via a URL schema. To import a package use | |
lanrevadmin://importsoftwarepackage?packagepath=/tmp/mypackage.amsdpackages | |
&committoserver=1 |
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
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
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 | |
# | |
# Force Absolute Manage to install software at the login window. | |
declare -r AMSERVER="your.amserver.example" | |
declare -r AMDIR="/Library/Application Support/LANrev Agent" | |
declare -r AMAGENT="$AMDIR/LANrev Agent.app/Contents/MacOS/LANrev Agent" | |
declare -r LOGFILE="/var/log/kickstartam.log" |
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 | |
# | |
# Force Absolute Manage to install software at the login window. | |
declare -r AMSERVER="AM.nowhere.com" | |
declare -r AMDIR="/Library/Application Support/LANrev Agent" | |
declare -r AMAGENT="$AMDIR/LANrev Agent.app/Contents/MacOS/LANrev Agent" | |
declare -r LOGFILE="/var/log/gov.nih.nimh.onset.log" | |
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 | |
# handbrake_convert.py | |
# Author: Patrick Gallagher | |
# Purpose: Use HandBrakeCLI to convert media files to mp4 | |
# | |
# https://handbrake.fr/docs/en/latest/cli/cli-guide.html | |
# https://handbrake.fr/downloads2.php | |
import os | |
import time |
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 | |
# checkUsersWithoutSecureToken.sh | |
# | |
# Purpose: Determines which users do not have a Secure Token on High Sierra | |
# This tells us which users will not be able to add other users via sysadminctl. | |
# | |
# Written by: Patrick Gallagher | |
OSvers=$( sw_vers -productVersion | cut -d. -f2 ) | |
# Check if this is a pairing Workstation |
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 | |
# check_root_shell.sh | |
shell="$(/usr/bin/dscl . -read /Users/root UserShell)" | |
if [[ "$shell" == *"false"* ]]; then | |
echo "<result>Yes</result>" | |
else | |
echo "<result>No</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/bash | |
### | |
# | |
# Name: ec_checkLDAPmatch_EA.sh | |
# Description: Checks if local user name matches what is authenticated in EC | |
# Author: Patrick Gallagher | |
# Created: 2018-02-16 | |
# | |
### | |
if [[ -d "/Applications/Enterprise Connect.app" ]]; then |
OlderNewer