This file contains hidden or 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 | |
| LOCAL_ADMIN_USERNAME="ladmin" | |
| ARD_KICKSTART_PATH="/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart" | |
| if [ -e "$ARD_KICKSTART_PATH" ]; then | |
| "$ARD_KICKSTART_PATH" -configure -allowAccessFor -specifiedUsers | |
| "$ARD_KICKSTART_PATH" -activate -configure -access -on -users "$LOCAL_ADMIN_USERNAME" -privs -all -restart -agent | |
| else | |
| printf "Error: ARD kickstart process inaccessible or not found at path" |
This file contains hidden or 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 | |
| LAUNCH_AGENT_PATH="/Library/LaunchAgents/com.pritunl.client.plist" | |
| currentUser=$(python -c 'from SystemConfiguration import SCDynamicStoreCopyConsoleUser; import sys; username = (SCDynamicStoreCopyConsoleUser(None, None, None) or [None])[0]; username = [username,""][username in [u"loginwindow", None, u""]]; sys.stdout.write(username + "\n");') | |
| currentUserPID=$(pgrep WindowServer -m1) | |
| currentUserUID=$(id -u "$currentUser") | |
| osvers=$(sw_vers -productVersion | awk -F. '{print $2}') | |
| if [[ $EUID -ne 0 ]]; then |
This file contains hidden or 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 | |
| LAUNCH_AGENT_PATH="/Library/LaunchAgents/com.pritunl.client.plist" | |
| currentUser=$(python -c 'from SystemConfiguration import SCDynamicStoreCopyConsoleUser; import sys; username = (SCDynamicStoreCopyConsoleUser(None, None, None) or [None])[0]; username = [username,""][username in [u"loginwindow", None, u""]]; sys.stdout.write(username + "\n");') | |
| currentUserPID=$(pgrep WindowServer -m1) | |
| currentUserUID=$(id -u "$currentUser") | |
| osvers=$(sw_vers -productVersion | awk -F. '{print $2}') | |
| if [[ $EUID -ne 0 ]]; then |
This file contains hidden or 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 | |
| """ | |
| This script checks whether the installed version of Microsoft Outlook 2016 is | |
| equal, less, or more than the target version defined by APP_TARGET_VERSION | |
| and reports the result in Casper Suite extension attribute style. | |
| T = Local app version is equal to provided target version | |
| N = Local app version is newer than provided target version | |
| F = Local app version is less than provided target version | |
| N/A = Local app plist was not found or accesible at specified path | |
| """ |
This file contains hidden or 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 | |
| import requests | |
| import json | |
| # Username = phone number you use for RC | |
| # Example: 555-123-5555 becomes 15551235555 | |
| RC_USERNAME = "YOUR_RC_USERNAME" | |
| RC_PASSWORD = "YOUR_RC_PASSWORD" | |
| # Leave extension blank if you don't use one |
This file contains hidden or 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 | |
| # Username = phone number you use for RC | |
| # Example: 555-123-5555 becomes 15551235555 | |
| RC_USERNAME="YOUR_RC_USERNAME" | |
| RC_PASSWORD="YOUR_RC_PASSWORD" | |
| # Leave extension blank if you don't use one | |
| RC_EXTENSION="" | |
| rcStatusResult=$(curl 'https://servicestatus.ringcentral.com/services/PODHealth?RCPlStep=login' \ |
This file contains hidden or 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 | |
| currentUser=$(/usr/bin/python -c 'from SystemConfiguration import SCDynamicStoreCopyConsoleUser; import sys; username = (SCDynamicStoreCopyConsoleUser(None, None, None) or [None])[0]; username = [username,""][username in [u"loginwindow", None, u""]]; sys.stdout.write(username + "\n");') | |
| currentUserHomeDirectory=$(dscl . -read "/users/$currentUser" NFSHomeDirectory | cut -d " " -f 2) | |
| if [ -f "$currentUserHomeDirectory/StencylWorks.prefs" ]; then | |
| sed -i "" -e "/global.workdir=/d" "$currentUserHomeDirectory/StencylWorks.prefs" | |
| fi | |
| printf "global.workdir=%s" "$currentUserHomeDirectory" >> "$currentUserHomeDirectory/StencylWorks.prefs" |
This file contains hidden or 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 | |
| ## Script: get_chrome_extensions.py | |
| ## Author: Christopher Collins ([email protected]) | |
| # also, owen wuz here. minor corrections (utf-8) | |
| ########################################### | |
| ##Description: This script searches the last logged in user's installed extensions and submits it to Casper during an inventory report. | |
| ########################################### | |
| import os |
This file contains hidden or 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 runs iperf3 multiple times, storing the results in a csv file | |
| # Then, it uses gnuplot to create a chart illustrating the results | |
| # | |
| # V Who When What | |
| # --------------------------------------------------------------------------- | |
| # 2.0.0? opragel 2016-03-13 | |
| # 1.5.2 skendric 2014-11-22 Remove -o output option | |
| # 1.5.1 asundstr 2014-11-04 Use double-quotes with sed | |
| # 1.5.0 skendric 2014-10-25 Add Chart Title to CLI options |