Skip to content

Instantly share code, notes, and snippets.

View riseandshinefilms-admin's full-sized avatar

Rise and Shine Films Admin riseandshinefilms-admin

View GitHub Profile
#!/bin/bash
LOCALADMIN="username"
kickstart=/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart
echo "Configuring Remote Management"
if id -u $LOCALADMIN >/dev/null 2>&1; then
echo "Defined local admin account exists"
# Deactivate ARD agent, deny all access
echo "Deactivating ARD agent"
#!/bin/bash
# This script creates a user account under Mac OS X
# === Typically, this is all you need to edit ===
USERNAME=
FULLNAME=
PASSWORD=
# A list of (secondary) groups the user should belong to
@riseandshinefilms-admin
riseandshinefilms-admin / nightShiftControl.sh
Created October 9, 2017 07:17 — forked from thomasfinch/nightShiftControl.sh
Bash script to enable/disable night shift on Mac OS
#!/bin/bash
if [ $# -lt 1 ]; then
echo "Usage: $0 [enable|disable]"
exit 1
fi
plistLoc="/private/var/root/Library/Preferences/com.apple.CoreBrightness.plist"
currentUserUID=$(dscl . -read /Users/$(whoami)/ GeneratedUID) # Get the GeneratedUID for the current user