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
# Open real test site | |
killall Safari > /dev/null | |
osascript -e 'tell application "Safari" | |
activate | |
set the URL of the front document to "http://selfregister.testnav.com" | |
end tell' | |
sleep 10 | |
# Bookmark site |
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
osascript -e 'tell application "System Events" | |
keystroke "username" | |
keystroke tab | |
keystroke "password" | |
keystroke return | |
keystroke return | |
end tell' |
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/bash | |
# Change 60 to however many passwords you have to authenticate for | |
for s in {1..60} | |
do | |
sleep 1 | |
# Enter your password below | |
osascript -e <<EOF 'tell application "System Events" | |
tell process "SecurityAgent" | |
set value of text field 1 of window 1 to "password" | |
end tell |
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/bash | |
#----------AUTHOR------------ | |
# Jacob Salmela | |
# 7 November 2013 | |
# https://github.com/jakesalmela/ | |
#----------RESOURCES--------- | |
# You need terminal-notifier to be installed | |
# I used brew install terminal-notifier | |
# You could also get it at github |
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/bash | |
#----------AUTHOR------------ | |
# Jacob Salmela | |
# 27 March 2014 | |
# https://github.com/jakesalmela/ | |
#---------DESCRIPTION-------- | |
# Tests the performance of a script | |
#-----------USAGE------------ |
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/bash | |
#----------AUTHOR------------ | |
# Jacob Salmela | |
# 24 May 2013 | |
#----------RESOURCES--------- | |
# http://stackoverflow.com/questions/4128235/bash-shell-scripting-what-is-the-exact-meaning-of-ifs-n | |
#---------DESCRIPTION-------- | |
# Attempts to list all apps in /Applications and their version numbers |
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/bash | |
# http://support.apple.com/kb/HT3789 | |
# Jacob Salmela | |
# 2014-05-31 | |
if [[ $(/usr/libexec/PlistBuddy -c Print /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist | grep 'NoMulticast') ]];then | |
echo "Boinjour is already disabled." | |
exit 1 | |
else | |
launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist |
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/bash | |
volumeName=$(diskutil info / | awk '/Volume Name/ {print substr ($0, index ($0,$3))}') | |
if [ "$volumeName" != "Macintosh HD" ];then | |
echo "<result>Incorrect</result>" | |
else | |
echo "<result>Correct</result>" | |
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
osascript -e <<EOF 'tell application "System Events" | |
tell process "SecurityAgent" | |
set value of text field 2 of window "Login" to "username" | |
set value of text field 1 of window "Login" to "password" | |
end tell | |
tell application "system events" to keystroke return | |
tell application "system events" to keystroke return | |
end tell' | |
EOF |
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/bash | |
#An icon file needs to exist in /usr/local/imaging | |
# Copy the users.icns file to the root of the the Users folder. | |
# Since it is a volume, if you name the file .VolumeIcon.icns, it will change the icon from the default hard drisk | |
# This is mostly to help the end users so they feel like it is a folder and not a hard drive | |
# The icon should also have a small badge to let the tech staff know that it is not a normal folder and that the workflow was successful | |
cp /usr/local/imaging/users.icns /Users/.VolumeIcon.icns |