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/bash | |
# | |
# testflightapp.com tokens | |
API_TOKEN="YOUR_API_TOKEN" | |
TEAM_TOKEN="YOUR_TEAM_TOKEN" | |
PRODUCT_NAME="RowMotion" | |
ARTEFACTS="$PWD/Artefacts" |
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> | |
@interface URLConnection : NSObject <NSURLConnectionDataDelegate, NSURLConnectionDelegate> | |
+ (NSData *)sendSynchronousRequest:(NSURLRequest *)request | |
returningResponse:(NSURLResponse **)response | |
error:(NSError **)error; | |
@end |
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/bash | |
# | |
INFOPLIST_FILE=${2}; | |
OIFS=$IFS; | |
IFS="."; | |
#считали версию | |
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$INFOPLIST_FILE") | |
buildArray=($buildNumber) | |
IFS=$OIFS; |
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
+ (void)loadSwizzle { | |
static dispatch_once_t onceToken; | |
dispatch_once(&onceToken, ^{ | |
Class class = [self class]; | |
// When swizzling a class method, use the following: | |
// Class class = object_getClass((id)self); | |
SEL originalSelector = @selector(addSubview:); | |
SEL swizzledSelector = @selector(my_addSubview:); |
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
#!/usr/bin/ruby | |
require 'xcodeproj' | |
# ============================================ | |
# !!! I've released a ruby gem that does the same thing, but better. | |
# You can install it by running `gem install xcprovisioner` or | |
# `sudo gem install xcprovisioner` if it asks for sudo rights. | |
# | |
# For more info: https://github.com/thelvis4/XCProvisioner |
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 SwiftUI | |
/// An iOS style TabView that doesn't reset it's childrens navigation stacks when tabs are switched. | |
struct UIKitTabView: View { | |
var viewControllers: [UIHostingController<AnyView>] | |
@State var selectedIndex: Int = 0 | |
init(_ views: [Tab]) { | |
self.viewControllers = views.map { | |
let host = UIHostingController(rootView: $0.view) |
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/bash | |
SUBSCRIPTION_URL="<YOUR_SUB_URL>" | |
OUTBOUNDS_CONFIG="/opt/etc/xray/configs/04_outbounds.json" | |
url_decode() { | |
echo "$(printf '%b' "${1//%/\\x}")" | |
} | |
SERVERS=$(curl -s "$SUBSCRIPTION_URL" | base64 -d) |