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
#pragma clang diagnostic push | |
#pragma clang diagnostic ignored "-Wdeprecated-declarations" | |
// the line producing the warning | |
#pragma clang diagnostic pop |
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
for file in files; do | |
mv $file `echo $file | sed 's/origin/new/g'`; | |
done |
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
openssl pkcs12 -in keyStore.p12 -out keyStore.pem -nodes |
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
xmllint --format xml_file.xml |
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/afconvert -f caff -d LEI16 {INPUT} {OUTPUT} |
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
+ (instancetype)shared | |
{ | |
static id shared; | |
static dispatch_once_t token; | |
dispatch_once(&token, ^{ | |
shared = [[self alloc] init]; | |
}); | |
return shared; | |
} |
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
+ (NSString *)getUUID | |
{ | |
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; | |
if ([defaults stringForKey:@"UUID"]) | |
{ | |
return [defaults stringForKey:@"UUID"]; | |
} | |
else | |
{ | |
CFUUIDRef theUUID = CFUUIDCreate(NULL); |
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
lsof -n -i4TCP:9000 | grep LISTEN |
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
function debug() { | |
"use strict"; | |
var errorsCode = [ | |
{ 'FileError.NOT_FOUND_ERR': FileError.NOT_FOUND_ERR }, | |
{ 'FileError.SECURITY_ERR': FileError.SECURITY_ERR }, | |
{ 'FileError.ABORT_ERR': FileError.ABORT_ERR }, | |
{ 'FileError.NOT_READABLE_ERR': FileError.NOT_READABLE_ERR }, | |
{ 'FileError.ENCODING_ERR': FileError.ENCODING_ERR }, | |
{ 'FileError.NO_MODIFICATION_ALLOWED_ERR': FileError.NO_MODIFICATION_ALLOWED_ERR }, | |
{ 'FileError.INVALID_STATE_ERR': FileError.INVALID_STATE_ERR }, |
OlderNewer