Skip to content

Instantly share code, notes, and snippets.

View macmule's full-sized avatar

macmule macmule

View GitHub Profile
-- Get the nodeName from the Users account
set nodeName to do shell script "dscl . -read /Users/" & loggedInUser & " | awk '/^OriginalNodeName:/,/^Password:/' | head -2 | tail -1 | cut -c 2-"
-- Get the Users account UniqueID
set accountType to do shell script "dscl . -read /Users/" & loggedInUser & " | grep UniqueID | cut -c 11-"
#!/bin/sh
####################################################################################################
#
# License: https://macmule.com/license/
#
###################################################################################################
OS=`/usr/bin/defaults read /System/Library/CoreServices/SystemVersion ProductVersion | awk '{print substr($1,1,4)}'`
if [[ "$OS" < "10.5" ]];
#!/bin/sh
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
# HARDCODED VALUES ARE SET HERE
# If Y then prompts user to logout, else kills the loginwindow forcing a logout.
#!/bin/sh
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
###
#
# Set the below to hardcode the variables. The order is as per the Edit Remote Desktops window
#!/bin/sh
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
# Detects all network hardware & creates services for all installed network hardware
/usr/sbin/networksetup -detectnewhardware
#!/bin/sh
####################################################################################################
#
# License: http://macmule.com/license/
#
####################################################################################################
# Detects all network hardware & creates services for all installed network hardware
/usr/sbin/networksetup -detectnewhardware
#!/bin/sh
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
# HARDCODED VALUES ARE SET HERE
autoProxyURL=""
#!/bin/sh
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
# HARDCODED VALUES ARE SET HERE
autoProxyURL=""