Last active
June 2, 2017 21:29
-
-
Save zushane/0ca6b11b9b928ff2b967dfbe4a8da8aa to your computer and use it in GitHub Desktop.
A simple script to run a pile of applications all at once to stress a Mac computer.
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 | |
while true; do | |
/usr/bin/open -F -a "/Applications/Firefox.app" 'https://www.youtube.com/watch?v=dQw4w9WgXcQ' | |
sleep 50 | |
/usr/bin/open -a "/Applications/Firefox.app" 'https://google.ca' | |
sleep 5 | |
/usr/bin/open -a "/Applications/Firefox.app" 'https://zu.com' | |
sleep 19 | |
/usr/bin/open -F -a "/Applications/Safari.app" 'https://www.youtube.com/watch?v=dQw4w9WgXcQ' | |
sleep 10 | |
/usr/bin/open -F -a "/Applications/Google Chrome.app" 'https://www.youtube.com/watch?v=dQw4w9WgXcQ' | |
sleep 34 | |
/usr/bin/open -F -a "/Applications/Google Chrome.app" 'https://wizgrav.github.io/clubber/index.html' | |
sleep 76 | |
/usr/bin/open -F -a "/Applications/Numbers.app" | |
sleep 5 | |
/usr/bin/open -F -a "/Applications/Keynote.app" | |
sleep 66 | |
/usr/bin/open -F -a "/Applications/Xcode.app" | |
sleep 19 | |
/usr/bin/open -F -a "/Applications/Microsoft Office 2011/Microsoft Word.app" | |
sleep 89 | |
/usr/bin/open -F -a "/Applications/Microsoft Office 2011/Microsoft Excel.app" | |
sleep 36 | |
/usr/local/bin/VBoxManage startvm CentOS | |
sleep 360 | |
killall "Safari"; sleep 5 | |
killall "firefox"; sleep 5 | |
killall "Google Chrome"; sleep 5 | |
killall "Numbers"; sleep 5 | |
killall "Keynote"; sleep 5 | |
killall "Xcode"; sleep 5 | |
killall "Microsoft Word"; sleep 5 | |
killall "Microsoft Excel"; sleep 5 | |
/usr/local/bin/VBoxManage controlvm CentOS acpipowerbutton; sleep 5 | |
sleep 15 | |
/usr/bin/open -F -a "/Applications/Firefox.app" 'https://www.youtube.com/watch?v=dQw4w9WgXcQ' | |
/usr/bin/open -a "/Applications/Firefox.app" 'https://google.ca' | |
/usr/bin/open -a "/Applications/Firefox.app" 'https://zu.com' | |
/usr/bin/open -F -a "/Applications/Safari.app" 'https://www.youtube.com/watch?v=dQw4w9WgXcQ' | |
/usr/bin/open -F -a "/Applications/Google Chrome.app" 'https://www.youtube.com/watch?v=dQw4w9WgXcQ' | |
/usr/bin/open -F -a "/Applications/Google Chrome.app" 'https://wizgrav.github.io/clubber/index.html' | |
/usr/bin/open -F -a "/Applications/Numbers.app" | |
/usr/bin/open -F -a "/Applications/Keynote.app" | |
/usr/bin/open -F -a "/Applications/Xcode.app" | |
/usr/bin/open -F -a "/Applications/Microsoft Office 2011/Microsoft Word.app" | |
/usr/local/bin/VBoxManage startvm CentOS | |
sleep 37 | |
killall "Safari"; sleep 5 | |
killall "firefox"; sleep 5 | |
killall "Google Chrome"; sleep 5 | |
killall "Numbers"; sleep 5 | |
killall "Keynote"; sleep 5 | |
killall "Xcode"; sleep 5 | |
killall "Microsoft Word"; sleep 5 | |
killall "Microsoft Excel"; sleep 5 | |
/usr/local/bin/VBoxManage controlvm CentOS acpipowerbutton; sleep 5 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment