$ xcrun simctl list --json
$ xcrun simctl delete unavailable
| #import <UIKit/UIKit.h> | |
| #import <CoreFoundation/CoreFoundation.h> | |
| #import <CoreGraphics/CoreGraphics.h> | |
| #import <CoreText/CoreText.h> | |
| @interface EmojiUtilities : NSObject | |
| + (CFMutableCharacterSetRef)emojiCharacterSet; | |
| + (BOOL)containsEmoji:(NSString *)emoji; | |
| @end |
| #!/bin/bash | |
| if [[ $EUID -ne 0 ]]; then | |
| echo -e " | |
| ROOT PRIVILEDGES NEEDED! | |
| You have to run this script as root. | |
| Aborting... | |
| " | |
| exit 1 | |
| else |
| #!flask/bin/python | |
| from flask import Flask, jsonify, abort, request, make_response, url_for | |
| from flask_httpauth import HTTPBasicAuth | |
| app = Flask(__name__, static_url_path = "") | |
| auth = HTTPBasicAuth() | |
| @auth.get_password | |
| def get_password(username): | |
| if username == 'miguel': |
| // | |
| // OPRunOnce.h | |
| // Run action only at current version first run. | |
| // It is very easy to use. | |
| // Just Call runOnce:action, specify the only key to | |
| // the action and target. | |
| // | |
| #import <Foundation/Foundation.h> |
Generate the list yourself:
$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS*.sdk/System/Library/Frameworks/UIKit.framework/Headers
$ grep UI_APPEARANCE_SELECTOR ./* | \
sed 's/NS_AVAILABLE_IOS(.*)//g' | \
sed 's/NS_DEPRECATED_IOS(.*)//g' | \
sed 's/API_AVAILABLE(.*)//g' | \
sed 's/API_UNAVAILABLE(.*)//g' | \
sed 's/UI_APPEARANCE_SELECTOR//g' | \
| # xcode-build-bump.sh | |
| # @desc Auto-increment the build number every time the project is run. | |
| # @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 "Link Binaries With Libraries" | |
| # 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0) |
| /* | |
| File: KeychainItemWrapper.h | |
| Abstract: | |
| Objective-C wrapper for accessing a single keychain item. | |
| Version: 1.2 - ARCified | |
| Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple | |
| Inc. ("Apple") in consideration of your agreement to the following | |
| terms, and your use, installation, modification or redistribution of |
| /* | |
| Usage | |
| NSString *password = @"1111"; | |
| NSString *message = @"xxx"; | |
| NSData *inData = [message dataUsingEncoding:NSUTF8StringEncoding]; | |
| NSData *encData = [securityUtils encryptPBEWithMD5AndDESData:inData password:password]; | |
| NSString *encString = [encData base64EncodedString]; |