Skip to content

Instantly share code, notes, and snippets.

View OdNairy's full-sized avatar

Roman Gardukevich OdNairy

View GitHub Profile
curl -v -X PUT "https://rink.hockeyapp.net/api/2/apps/435279/meta" \
-H "X-HockeyAppToken: f098e04f87f342f8a6ffcf50d3e37716" \
-F "restore_allowed=disabled"
* Trying 54.225.129.170...
* Connected to rink.hockeyapp.net (54.225.129.170) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
* Server certificate: *.hockeyapp.net
* Server certificate: Microsoft IT SSL SHA2
* Server certificate: Baltimore CyberTrust Root
> PUT /api/2/apps/435279/meta HTTP/1.1
Build target Panda of project Panda with configuration Debug
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
cd /Users/odnairy/code/IntellectSoft/Panda
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -incremental -module-name Panda -Onone -D COCOAPODS -D COCOAPODS -D DEBUG -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -target arm64-apple-ios8.0 -g -module-cache-path /Users/odnairy/Library/Developer/Xcode/DerivedData/ModuleCache -Xfrontend -serialize-debugging-options -embed-bitcode-marker
./AVFoundation.framework/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:- (BOOL)setCategory:(NSString *)category mode:(NSString *)mode options:(AVAudioSessionCategoryOptions)options error:(NSError **)outError NS_AVAILABLE_IOS(10_0);
./AVFoundation.framework/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:@property(readonly) BOOL hasHardwareVoiceCallProcessing NS_AVAILABLE_IOS(10_0);
./AVFoundation.framework/Frameworks/AVFAudio.framework/Headers/AVSpeechSynthesis.h:AVF_EXPORT NSString *const AVSpeechSynthesisIPANotationAttribute NS_AVAILABLE_IOS(10_0);
./AVFoundation.framework/Frameworks/AVFAudio.framework/Headers/AVSpeechSynthesis.h:+ (instancetype)speechUtteranceWithAttributedString:(NSAttributedString *)string NS_AVAILABLE_IOS(10_0);
./AVFoundation.framework/Frameworks/AVFAudio.framework/Headers/AVSpeechSynthesis.h:- (instancetype)initWithAttributedString:(NSAttributedString *)string NS_AVAILABLE_IOS(10_0);
./AVFoundation.framework/Frameworks/AVFAudio.framework/Headers/AVSpeechSynthesis.h:@pr
{
"ECDD": {
"BirthYear": "4441",
"CreditAlertsTotal": "15",
"CustNum": "65860100",
"LoginNo": "24",
"MemberStatus": "R",
"OfferID": "238",
"PostalCode": "YT5 5KQ",
"Price": "63.64",
@OdNairy
OdNairy / Podfile
Created January 17, 2014 07:49
Disable Magical Record in Podfile for CocoaPods
class Pod::Podfile
def self.MR_disable_logging(installer)
target = installer.project.targets.find{|t| t.to_s == "Pods-MagicalRecord"}
target.build_configurations.each do |config|
s = config.build_settings['GCC_PREPROCESSOR_DEFINITIONS']
s = [ '$(inherited)' ] if s == nil;
s.push('MR_ENABLE_ACTIVE_RECORD_LOGGING=0') if config.to_s == "Debug";
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = s
end
end
@OdNairy
OdNairy / gist:7547418
Created November 19, 2013 15:48
Autoincrement
cd $SRCROOT
bN=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$INFOPLIST_FILE")
bN=$((0x$bN))
bN=$(($bN + 1))
bN=$(printf "%X" $bN)
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $bN" "$INFOPLIST_FILE"
@OdNairy
OdNairy / main.m
Last active December 21, 2015 00:28
// Source: https://devforums.apple.com/message/866487#866487
typedef int (*PYStdWriter)(void *, const char *, int);
static PYStdWriter _oldStdWrite;
int __pyStderrWrite(void *inFD, const char *buffer, int size)
{
if ( strncmp(buffer, "AssertMacros: queueEntry", 24) == 0 ) {
return 0;
#include <iostream>
using namespace std;
class A{
protected:
int i;
public:
#import <iostream>
using namespace std;
class S{
public:
static int i;
S(){++i;}
S(const S& ob){++i;}
};
@OdNairy
OdNairy / gist:5575157
Created May 14, 2013 10:59
Реализация retain
- (id)retain
__attribute__((aligned(16)))
{
if (OBJC_IS_TAGGED_PTR(self)) return self;
SideTable *table = SideTable::tableForPointer(self);
if (OSSpinLockTry(&table->slock)) {
table->refcnts[DISGUISE(self)] += 2;
OSSpinLockUnlock(&table->slock);