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
# 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 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
# Click full-screen button so all computers have the Safari window in the same position | |
osascript -e 'tell application "System Events" | |
set frontmost of process "Safari" to true | |
tell process "Safari" | |
click button 4 of window 1 | |
end tell | |
end tell' | |
# Sleep for a bit seconds to make sure full screen is fully-activated | |
sleep 3 |
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
killall Safari > /dev/null | |
# Set your variable values here | |
bud='/usr/libexec/Plistbuddy' | |
plist='/Users/student/Library/Preferences/com.apple.Safari.plist' | |
urls=('https://www.testnav.com/mn/testnav-7.5.22.36/' | |
'https://proctorcaching.pearsonaccess.com/ems/systemCheck/systemCheck.jsp?acc=mn' | |
'https://testnav.com/mnqc/testnav-7.5.22.36/epatLogin.jsp?testnavTestId=TRG10R14&testnavFormId=S01M4' | |
'https://testnav.com/mnqc/') | |
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
# Set your variable values here | |
bud='/usr/libexec/Plistbuddy' | |
plist='/Users/student/Library/Preferences/com.oracle.javadeployment.plist' | |
# Disable Java cache by adding or setting the plist entry | |
killall cfprefsd | |
${bud} -c "Add /com/oracle/javadeployment/:deployment.cache.enabled bool false" ${plist} | |
#${bud} -c "Set /com/oracle/javadeployment/:deployment.cache.enabled false" ${plist} | |
killall cfprefsd |
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 | |
#-----------IMPORTS---------- | |
import sys,pwd,os | |
import subprocess | |
from platform import mac_ver | |
#----------VARIABLES--------- | |
v, _, _ = mac_ver() | |
v = float('.'.join(v.split('.')[:2])) |
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 | |
appStoreFolder=$(sudo find /private/var/folders -type f -name "*.pkg") | |
i=0 | |
for package in $appStoreFolder | |
do | |
sudo ln $package ~/Downloads/_MAS_$i.pkg | |
i=$(($i+1)) | |
done |
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
'http://www.howtogeek.com/206329/how-to-find-your-lost-windows-or-office-product-keys/ | |
'http://discuss.howtogeek.com/t/see-system-product-key-fast/12931 | |
Set WshShell = CreateObject("WScript.Shell") | |
MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId")) | |
Function ConvertToKey(Key) | |
Const KeyOffset = 52 | |
i = 28 | |
Chars = "BCDFGHJKMPQRTVWXY2346789" |
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
case ${OSTYPE} in | |
# Snow Leopard through Mountain lion | |
darwin10*) touch /private/var/db/.AccessibilityAPIEnabled;; | |
darwin11*) touch /private/var/db/.AccessibilityAPIEnabled;; | |
darwin12*) touch /private/var/db/.AccessibilityAPIEnabled;; | |
# Mavericks and Yosemite | |
darwin13*) sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db "INSERT INTO access VALUES('kTCCServiceAccessibility','com.apple.systemevents',0,1,1,NULL);"; | |
sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db "INSERT INTO access VALUES('kTCCServiceAccessibility','com.apple.RemoteDesktopAgent',0,1,1,NULL);";; | |
darwin14*) sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db "INSERT INTO access VALUES('kTCCServiceAccessibility','com.apple.systemevents',0,1,1,NULL);"; | |
sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db "INSERT INTO access VALUES('kTCCServiceAccessibility','com.apple.RemoteDesktopAgent',0,1,1,NULL);";; |
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
# Click full-screen button so all computers have the Safari window in the same position | |
osascript -e 'tell application "System Events" | |
set frontmost of process "Safari" to true | |
tell process "Safari" | |
click button 4 of window 1 | |
end tell | |
end tell' |