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 | |
# Get the entire computer name and save it in a variable | |
#existingName=$(hostname | cut -d'-' -f2-) | |
existingName=$(hostname) | |
# Set the computer name to Repurpose-"Existing computer name" | |
scutil --set LocalHostName "Repurpose-$existingName" | |
scutil --set ComputerName "Repurpose-$existingName" | |
scutil --set HostName "Repurpose-$existingName" | |
serialNum=$(ioreg -l | awk '/IOPlatformSerialNumber/ { split($0, line, "\""); printf("%s\n", line[4]); }') |
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 | |
# opening and closing windows and popovers | |
defaults write -g NSAutomaticWindowAnimationsEnabled -bool false | |
# smooth scrolling | |
defaults write -g NSScrollAnimationEnabled -bool false | |
# showing and hiding sheets, resizing preference windows, zooming windows | |
# float 0 doesn't work | |
defaults write -g NSWindowResizeTime -float 0.001 |
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 | |
# Click username field | |
click -x 864 -y 546 | |
# Enter username | |
osascript -e 'tell application "System Events" | |
keystroke "I love Pearson" | |
end tell' |
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/sh | |
# Modified from https://jamfnation.jamfsoftware.com/discussion.html?id=6489#responseChild49255 | |
# Java Plugin Location | |
javaPlugin="/Library/Internet Plug-Ins/JavaAppletPlugin.plugin" | |
# Config File Location | |
configFile="/Library/Application Support/Oracle/Java/Deployment/deployment.config" | |
# Properties File Location | |
propFile="/Library/Application Support/Oracle/Java/Deployment/deployment.properties" |
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 | |
# Randomly moves the mouse and/or clicks | |
# | |
# Random delay (in seconds) to trigger an action | |
function random_delay() | |
{ | |
RANGE=180 | |
delayInSeconds=$RANDOM | |
let "delayInSeconds %=$RANGE" |
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
repeat | |
tell application "System Events" to delay 3.0 | |
tell application "System Events" to set currentApp to name of first process where frontmost is true | |
if currentApp is "Safari" then | |
try | |
tell application "System Events" | |
tell process "Safari" | |
key down {shift} | |
-- Click the minimize button |
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
repeat | |
tell application "System Events" to delay 3.0 | |
tell application "System Events" to set currentApp to name of first process where frontmost is true | |
if currentApp is "Spotify" then | |
try | |
-- Create a random number to do one of three things | |
set randomNum to random number from 1 to 3 | |
if randomNum is 1 then | |
tell application "Spotify" to pause |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>org.domain.enforceWallpaper</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/triggers/enforceWallpaper.py</string> | |
</array> |