Skip to content

Instantly share code, notes, and snippets.

🤒
Out sick

dacaiguoguo dacaiguoguogmail

🤒
Out sick
Block or report user

Report or block dacaiguoguogmail

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View config_Xcode_Server_Bot.m
NSURLSessionConfiguration *configr = [NSURLSessionConfiguration defaultSessionConfiguration];
self.sessionManager = [NSURLSession sessionWithConfiguration:configr];
NSString *urlString = [NSString stringWithFormat:@"https://%@:20343/api/bots/%@",hostIp, fixId];
NSMutableURLRequest *mutR = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:urlString]];
[mutR setHTTPMethod:@"GET"];
NSURLSessionDataTask *task1 = [self.sessionManager dataTaskWithRequest:mutR completionHandler:^(NSData * _Nullable data1, NSURLResponse * _Nullable response1, NSError * _Nullable error1) {
NSLog(@"%@",error1);
NSMutableDictionary *responseObject = [NSJSONSerialization JSONObjectWithData:data1 options:(NSJSONReadingMutableContainers) error:nil];
NSLog(@"%@",responseObject);
@dacaiguoguogmail
dacaiguoguogmail / fix_pod_1_1_1_revert.sh
Last active Jun 2, 2017
revert fix cocoapods podfile.lock strange quotation marks
View fix_pod_1_1_1_revert.sh
#!/bin/zsh
podpath=$(echo `which pod`)
poddir=$(dirname $podpath)
podcoregemdir="$poddir"/../gems/cocoapods-core-1.1.1/lib/cocoapods-core/
echo "$podcoregemdir"lockfile.rb
cd $podcoregemdir
curl -fsSL https://raw.githubusercontent.com/CocoaPods/Core/1.1.1/lib/cocoapods-core/lockfile.rb -O
@dacaiguoguogmail
dacaiguoguogmail / fix_pod_1_1_1.sh
Last active Jun 2, 2017
fix cocoapods podfile.lock strange quotation marks
View fix_pod_1_1_1.sh
#!/bin/zsh
podpath=$(echo `which pod`)
poddir=$(dirname $podpath)
podcoregemdir="$poddir"/../gems/cocoapods-core-1.1.1/lib/cocoapods-core/
echo "$podcoregemdir"lockfile.rb
cd $podcoregemdir
curl -fsSL https://raw.githubusercontent.com/dacaiguoguogmail/Core/master/lib/cocoapods-core/lockfile.rb -O
You can’t perform that action at this time.