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
### Keybase proof | |
I hereby claim: | |
* I am rsobik on github. | |
* I am rsobik (https://keybase.io/rsobik) on keybase. | |
* I have a public key ASB8rBVWQyEpob0q_1nJtfxaGuiB_CExthVS3oi9j4qIeAo | |
To claim this, I am signing this object: |
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
import Foundation | |
var unmanagedTrust : Unmanaged<SecTrust>? | |
let status = SecTrustCreateWithCertificates(nil, nil, &unmanagedTrust) | |
let trust = unmanagedTrust!.takeUnretainedValue() | |
assert(SecTrustGetCertificateCount(trust) > 0) | |
let certificate = SecTrustGetCertificateAtIndex(trust, 0).takeUnretainedValue() | |
let serverCertData = SecCertificateCopyData(certificate).takeRetainedValue() |
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
#=============================================================================== | |
# Filename: boost.sh | |
# Author: Pete Goodliffe | |
# Copyright: (c) Copyright 2009 Pete Goodliffe | |
# Licence: Please feel free to use this, with attribution | |
# Modified version | |
#=============================================================================== | |
# | |
# Builds a Boost framework for the iPhone. | |
# Creates a set of universal libraries that can be used on an iPhone and in the |
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
Show hidden characters
{ | |
"folders": | |
[ | |
{ | |
"path": "." | |
} | |
], | |
"settings": | |
{ | |
"sublimeclang_options": |
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
# Update the CFBundleVersion in the generated Info.plist using the count of all commits | |
# Use Xcode's copy of the Git binary | |
GIT=`xcrun -find git` | |
# Use the commit count as CFBundleVersion | |
GIT_COMMIT_COUNT=`${GIT} rev-list --all | wc -l | tr -d ' '` | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion ${GIT_COMMIT_COUNT}" "${BUILT_PRODUCTS_DIR}/${INFOPLIST_PATH}" | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion ${GIT_COMMIT_COUNT}" "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Info.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
# Use Xcode's copy of the Git binary | |
GIT=`xcrun -find git` | |
## Use the last annotated tag as CFBundleShortVersionString | |
GIT_TAG=`${GIT} describe --tags` | |
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${GIT_TAG}" "${BUILT_PRODUCTS_DIR}/${INFOPLIST_PATH}" |