- Create your own start.conf:
- Open Surge for iOS, Tap Download Configuration from URL, input the template config URL: https://gist.githubusercontent.com/raecoo/0b9d2fc731c80315fb11/raw/19339cfc0ce06c66dec5416433ef407c5c0b568c/service.conf
- Download rules.conf
- Open Surge for iOS, Tap Download Configuration from URL, input the config URL: https://gist.githubusercontent.com/raecoo/0b9d2fc731c80315fb11/raw/19339cfc0ce06c66dec5416433ef407c5c0b568c/rules.conf
- Tap start.conf in the configuration list, then tap Start button.
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) downloadVideoFromURL: (NSString *) URL withProgress:(void (^)(CGFloat progress))progressBlock completion:(void (^)(NSURL *filePath))completionBlock onError:(void (^)(NSError *error))errorBlock | |
{ | |
//Configuring the session manager | |
NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration]; | |
AFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:configuration]; | |
//Most URLs I come across are in string format so to convert them into an NSURL and then instantiate the actual request | |
NSURL *formattedURL = [NSURL URLWithString:URL]; | |
NSURLRequest *request = [NSURLRequest requestWithURL:formattedURL]; | |
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
# App Store 开启 Degub 菜单 | |
defaults write com.apple.appstore ShowDebugMenu -bool true | |
# 开启充电提示音 | |
# defaults write com.apple.PowerChime ChimeOnAllHardware -bool true; open /System/Library/CoreServices/PowerChime.app & | |
# 关闭 | |
# defaults write com.apple.PowerChime ChimeOnAllHardware -bool false;killall PowerChime | |
# 修复 sabma 速度慢的问题 | |
printf '[default]\nsigning_required=no\n' | sudo tee /etc/nsmb.conf >/dev/null |