Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
/usr/sbin/DevToolsSecurity -enable
/usr/sbin/dseditgroup -o edit -t group -a everyone _developer
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -license accept
# Install the included support stuff
/usr/sbin/installer -dumplog -verbose -pkg /Applications/Xcode.app/Contents/Resources/Packages/MobileDeviceDevelopment.pkg -tgt /
@gregneagle
gregneagle / gurl.py
Last active December 28, 2015 22:29
# http://httpstat.us - for test error codes
# http://uri-labs.com/macosx_headers/NSURLConnection_h/Protocols/NSURLConnectionDelegate/index.html
# Notes:
# - Errors are only thrown when the connection:
# - Is interrupted before the headers can complete
# - SSL couldn't happen correctly
# - The connection never happens
# - A delegate.response always has a NSHTTPURLResponse key for HTTP/HTTPS
# For a file:// transfer, it's NSURLResponse