Skip to content

Instantly share code, notes, and snippets.

View iljaiwas's full-sized avatar

Ilja Iwas iljaiwas

View GitHub Profile
@iljaiwas
iljaiwas / CredentialsHTTPTest.swift
Last active November 24, 2016 20:51
How do you use the verifyPassword parameter when initializing an CredentialsHTTPBasic object?
import Credentials
import CredentialsHTTP
import Kitura
import HeliumLogger
// Initialize HeliumLogger
HeliumLogger.use()
// Create a new router
let router = Router()
@iljaiwas
iljaiwas / gist:7091f81a153b02e2654c
Created February 29, 2016 20:07
Is this a crash inside HockeyApp ?
Process: GarageSale [920]
Path: /Users/USER/Desktop/GarageSale.app/Contents/MacOS/GarageSale
Identifier: com.iwascoding.garagesale7
Version: 7.0 Beta 12 (731)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: GarageSale [920]
User ID: 502
Date/Time: 2016-02-28 21:59:21.553 -0600
@iljaiwas
iljaiwas / gist:64324b10fbf0a7a8a998
Created December 15, 2015 20:05
Sample llvm-cov report output
Filename Regions Miss Cover Functions Executed
-----------------------------------------------------------------------
...ork/Headers/CFString.h 0 0 nan% 0 nan%
...k/Headers/CGGeometry.h 0 0 nan% 0 nan%
...ork/Headers/NSBundle.h 0 0 nan% 0 nan%
.../Headers/NSException.h 0 0 nan% 0 nan%
...eaders/NSObjCRuntime.h 0 0 nan% 0 nan%
...include/AssertMacros.h 0 0 nan% 0 nan%
...dk/usr/include/Block.h 0 0 nan% 0 nan%
...usr/include/MacTypes.h 0 0 nan% 0 nan%
@iljaiwas
iljaiwas / gist:51eaa084ef9535eb7339
Created September 24, 2015 15:22
Common Android or Java pattern? Why no for loop?
private void fireDoneEvent(Iterator<QueueJobObserver> it)
{
if (it.hasNext())
{
QueueJobObserver observer = it.next();
fireDoneEvent(it);
observer.jobDone(this);
}
}
@iljaiwas
iljaiwas / Sample of Github Desktop.sample
Created August 20, 2015 09:21
Reactive Cocoa is hard
Sampling process 55496 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling GitHub Desktop (pid 55496) every 1 millisecond
Process: GitHub Desktop [55496]
Path: /Applications/GitHub Desktop.app/Contents/MacOS/GitHub Desktop
Load Address: 0x10f89d000
Identifier: com.github.GitHub
Version: Bae's Branch (210)
Code Type: X86-64
Parent Process: ??? [1]
@iljaiwas
iljaiwas / IHMenuItemValidator.m
Last active August 29, 2015 14:11
IHMenuItemValidator
//
// IHMenuItemValidator.m
// GarageSale
//
// Created by ilja iwas on 12.12.14.
//
//
#import "IHMenuItemValidator.h"
@iljaiwas
iljaiwas / gist:c12a4a803d937b149d8d
Created May 9, 2014 15:48
You should not design systems whose complexity you cannot master
Sampling process 51185 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling OutBank (pid 51185) every 1 millisecond
Process: OutBank [51185]
Path: /Applications/OutBank.app/Contents/MacOS/OutBank
Load Address: 0x10a145000
Identifier: de.stoegerit.OutBankMac
Version: 2.4.3 (32715)
Code Type: X86-64
Parent Process: launchd [162]
Then, if codesign verifies the app and storeagent says “Unsigned App”, then do this:
$ cd /System/Library/Frameworks/Security.framework
$ sudo mv PlugIns Versions/Current/PlugIns
$ sudo ln -s Versions/Current/PlugIns .
and reboot. If that makes the problem go away, you're seeing the same problem we are.
@iljaiwas
iljaiwas / gist:6898297
Created October 9, 2013 08:52
I could use a little hint where to start debugging a crash, which seems particular hard to track down. So far the bug only happened in the wild. Any suggestions how to start fixing this would be appreciated
- (BOOL)outlineView:(NSOutlineView *)outlineView isGroupItem:(id)inItem
{
return [inItem isKindOfClass:[NSDictionary class]];<<app crashing on this line
}
Crash Report:
Incident Identifier: B905C1A8-0B07-4084-9B5B-1993F5BEE0EA
CrashReporter Key: [TODO]
Hardware Model: MacBookAir5,2
@iljaiwas
iljaiwas / GarageBuyHang
Created April 23, 2013 13:56
Our sandboxed OS X app hangs on 10.8.4. in the security subsystem, and so do all the apps. Anybody seen this? Known problem, or is this our old enemy LittleSnitch again?
Date/Time: 2013-04-20 20:32:44 +0200
OS Version: 10.8.4 (Build 12E33a)
Architecture: x86_64
Report Version: 11
Command: GarageBuy
Path: /Applications/Internet/GarageBuy.app/Contents/MacOS/GarageBuy
Version: 3.1 (324)
Parent: launchd [173]