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 | |
# trap ctrl-c and call ctrl_c() | |
trap ctrl_c INT | |
function ctrl_c() { | |
echo "** Trapped CTRL-C" | |
exit 1 | |
} |
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
#DATE FORMAT - e.g. 'Mon Jun 19 21:20:50 2017 -0300' | |
git filter-branch --env-filter \ | |
'if [ $GIT_COMMIT = <COMMIT_HASH> ] | |
then | |
export GIT_AUTHOR_DATE=“<NEW_DATE>" | |
export GIT_COMMITTER_DATE="<NEW_DATE>" | |
fi' -f |
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> | |
@protocol CRUploadProgressDelegate <NSObject> | |
-(void) didUploadBytes:(long) bytes; | |
@optional | |
-(BOOL) didCancelUpload; | |
@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
#import <Foundation/Foundation.h> | |
@protocol CRAuthenticationDelegate <NSObject> | |
@optional | |
-(void) authDidStart:(NSDictionary<NSString*,NSString*> *) service; | |
-(void) authDidFinish:(NSDictionary<NSString*,NSString*> *) service; | |
-(void) authDidCancel:(NSDictionary<NSString*,NSString*> *) service; | |
@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
// SwiftViewController.swift | |
// PrototypeApplication | |
// | |
// Created by Felipe César Silveira de Assis on 12/12/17. | |
// Copyright © 2017 CloudRail. All rights reserved. | |
// | |
import UIKit | |
import CloudrailSI |
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
// SwiftViewController.swift | |
// PrototypeApplication | |
// | |
// Created by Felipe César Silveira de Assis on 12/12/17. | |
// Copyright © 2017 CloudRail. All rights reserved. | |
// | |
import UIKit | |
import CloudrailSI |
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
["airport", | |
"atm", | |
"amusement_park", | |
"aquarium", | |
"art_gallery", | |
"bakery", | |
"bank", | |
"bar", | |
"beauty_salon", | |
"bicycle_store", |
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)viewDidAppear:(BOOL)animated{ | |
self.box = [[CRBox alloc] initWithClientId:@"" clientSecret:@""]; | |
NSString * restored_state = [NSUserDefaults.standardUserDefaults objectForKey:@"box_state"]; | |
if (restored_state != nil ) { | |
[self.box loadAsString:restored_state]; | |
NSString * userName = [self.box userName]; | |
NSString * userLogin = [self.box userLogin]; | |
NSLog(@"%@ - %@", userName, userLogin); |
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
echo "Target architectures: $ARCHS" | |
APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}" | |
find "$APP_PATH" -name '*.framework' -type d | while read -r FRAMEWORK | |
do | |
FRAMEWORK_EXECUTABLE_NAME=$(defaults read "$FRAMEWORK/Info.plist" CFBundleExecutable) | |
FRAMEWORK_EXECUTABLE_PATH="$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME" | |
echo "Executable is $FRAMEWORK_EXECUTABLE_PATH" | |
echo $(lipo -info "$FRAMEWORK_EXECUTABLE_PATH") |
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
git filter-branch --env-filter \ | |
'if [ $GIT_COMMIT = <COMMIT_HASH> ] | |
then | |
export GIT_AUTHOR_DATE=“Mon Jun 19 21:20:50 2017 -0300" | |
export GIT_COMMITTER_DATE="<CHANGE DATE ON THE FORMAT ABOVE>" | |
fi' -f |
NewerOlder