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 bash | |
echo "Enter an API User with Create Category Permissions:" | |
read apiUser | |
echo "Enter the Password for this API User:" | |
read -s apiPassword |
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 | |
currentUser=$( echo "show State:/Users/ConsoleUser" | scutil | awk '/Name :/ && ! /loginwindow/ { print $3 }' ) | |
echo "<result>$(w -h "$currentUser" | head -1 | awk '{print $4}')</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 | |
currentUser=$( echo "show State:/Users/ConsoleUser" | scutil | awk '/Name :/ && ! /loginwindow/ { print $3 }' ) | |
echo "<result>$(w -h "$currentUser" | head -1 | awk '{print $5}')</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 | |
echo "<result>$(system_profiler SPStorageDataType | awk '/Medium Type/ {print $3}' | head -1)</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 | |
#################################################################################################### | |
# | |
# Copyright (c) 2010, JAMF Software, LLC. All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# * Redistributions of source code must retain the above copyright | |
# notice, this list of conditions and the following disclaimer. | |
# * Redistributions in binary form must reproduce the above copyright |
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 zsh | |
### Collecting current user attributes ### | |
currentUser=$(/bin/ls -l /dev/console | /usr/bin/awk '{print $3}') | |
currentUserUID=$(/usr/bin/id -u "$currentUser") | |
currentUserHomeDirectoryPath="$(dscl . -read /Users/$currentUser NFSHomeDirectory | awk -F ': ' '{print $2}')" | |
########################################################################################## | |
if [[ "$currentUser" = "root" ]]; then | |
echo "No user is logged in, wait until later to perform Box preinstall/postinstall |
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 zsh | |
### Collecting current user attributes ### | |
currentUser=$(/bin/ls -l /dev/console | /usr/bin/awk '{print $3}') | |
currentUserUID=$(/usr/bin/id -u "$currentUser") | |
currentUserHomeDirectoryPath="$(dscl . -read /Users/$currentUser NFSHomeDirectory | awk -F ': ' '{print $2}')" | |
########################################################################################## | |
##Box Edit PostInstall | |
sudo -u "$currentUser" mkdir -p "$currentUserHomeDirectoryPath/Library/Application Support/Box/Box Edit/PKG Installer 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
<?xml version="1.0" encoding="UTF-8"?><extensionAttribute> | |
<displayName>Randomized Clinical Trial Number</displayName> | |
<description/> | |
<dataType>number</dataType> | |
<scriptContentsMac>#!/usr/bin/env zsh | |
| |
preferenceDomain="" | |
if [[ "$preferenceDomain" = "" ]]; then | |
preferenceDomain="com.github" | |
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
/Applications/Safari.app | |
/Library/Apple | |
/Library/Application Support/com.apple.TCC | |
/Library/CoreAnalytics | |
/Library/Filesystems/NetFSPlugins/Staged | |
/Library/Filesystems/NetFSPlugins/Valid | |
/Library/Frameworks/iTunesLibrary.framework | |
/Library/GPUBundles | |
/Library/KernelCollections | |
/Library/MessageTracer |
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 zsh | |
# https://social.technet.microsoft.com/wiki/contents/articles/7608.srv-records-registered-by-net-logon.aspx | |
# https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/verify-srv-dns-records-have-been-created | |
declare -a activeDirectoryDomainNameTests=( | |
_ldap._tcp."$1". | |
_ldap._tcp.dc._msdcs."$1" | |
_ldap._tcp.pdc._msdcs."$1". | |
_kerberos._tcp. "$1" . |
OlderNewer