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
// | |
// Bookmarklet for one-click replies to TestFlight Feedback in App Store Connect. | |
// Automatically fills in tester’s email address, title, and quotes all (or selected) text. | |
// | |
// Add to your browser with Bookmarkleter. | |
// https://chriszarate.github.io/bookmarkleter/ | |
// | |
// Copyright © 2020 Anton Sotkov. MIT Licensed. | |
// |
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/Foundation.h> | |
#import <CommonCrypto/CommonHMAC.h> | |
#import <CoreFoundation/CoreFoundation.h> | |
static NSString *Base64URLEncodedStringWithData(NSData *data) { | |
NSMutableString *string = [[data base64EncodedStringWithOptions:0] mutableCopy]; | |
[string replaceOccurrencesOfString:@"+" withString:@"-" options:0 range:NSMakeRange(0, string.length)]; | |
[string replaceOccurrencesOfString:@"/" withString:@"_" options:0 range:NSMakeRange(0, string.length)]; | |
[string replaceOccurrencesOfString:@"=" withString:@"" options:0 range:NSMakeRange(0, string.length)]; | |
return string.copy; |
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
#ifndef H_UTF8_MAPPED_UTF16_STRING_H_ | |
#define H_UTF8_MAPPED_UTF16_STRING_H_ | |
#import <Foundation/Foundation.h> | |
#import <string> | |
/* | |
* Convert a UTF-16 string to UTF-8, mapping indices to provide low-complexity | |
* range and index lookups. | |
* |
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
#!/bin/sh | |
PLIST_BUDDY=/usr/libexec/PlistBuddy | |
xcode-plugin-add-compatibility() { | |
"$PLIST_BUDDY" -c "Add DVTPlugInCompatibilityUUIDs:10 string $2" \ | |
"$1/Contents/Info.plist" | |
} | |
xcode-plugin-has-compatibility() { |
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
// 1. Add `data-mac-app-store` attribute to all Mac App Store links. | |
// 2. Use this script to automatically replace `http://` with `macappstore://` (and `https://` with `macappstores://`) for those links on Lion, Mountain Lion, and Mavericks. | |
if (/Mac OS X 10[_.][0-9]/i.test(navigator.userAgent)) { | |
var MASLinks = document.querySelectorAll('a[data-mac-app-store]') | |
for (var MASLinkIndex = 0; MASLinkIndex < MASLinks.length; MASLinkIndex++) { | |
var MASLink = MASLinks[MASLinkIndex] | |
MASLink.setAttribute('href', MASLink.getAttribute('href').replace(/^http/, 'macappstore')) | |
} | |
} |