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
on run | |
choose from list {"<Default>", "OpenDNS", "Google Public DNS", "Norton DNS for Home", "Comodo Secure DNS", "Neustar DNS Advantage", "Verizon / Level 3"} with prompt "Please select a DNS service:" with title "Wi-Fi DNS Selector" without multiple selections allowed and empty selection allowed | |
if the result is not false then | |
if item 1 of the result is "<Default>" then | |
do shell script "networksetup -setdnsservers Wi-Fi Empty" with administrator privileges | |
do shell script "dscacheutil -flushcache" with administrator privileges | |
else if item 1 of the result is "OpenDNS" then | |
do shell script "networksetup -setdnsservers Wi-Fi 208.67.222.222 208.67.220.220" with administrator privileges |
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
# xcode-build-timestamp.sh | |
# @desc Set a timestamp as the build number when the project is compiled. | |
# @usage | |
# 1. Select: your Target in Xcode | |
# 2. Select: Build Phases Tab | |
# 3. Select: Add Build Phase -> Add Run Script | |
# 4. Paste code below in to new "Run Script" section | |
# 5. Drag the "Run Script" below "Target dependencies" | |
buildNumber=$(date +%Y%m%d%H%M) |