Skip to content

Instantly share code, notes, and snippets.

Avatar

Lukas Kukacka lukaskukacka

View GitHub Profile
@lukaskukacka
lukaskukacka / KeychainDumper.m
Last active May 12, 2019
Keychain dumper (Obj-C). Prints all values from iOS Keychain.
View KeychainDumper.m
@interface KeychainDumper: NSObject
- (void)dumpVerbose:(BOOL)verbose;
@end
@implementation KeychainDumper
- (void)dumpVerbose:(BOOL)verbose {
[self printString:@"##################################################################"];
[self printString:@"### KEYCHAIN DUMP ################################################"];
[self printString:@"##################################################################"];
@lukaskukacka
lukaskukacka / Synchronized.swift
Last active May 12, 2019
Simple Swift generic wrapper class giving synchronized (threadsafe) access to an instance (Swift 5)
View Synchronized.swift
// Swift Playground
import Foundation
import Dispatch
final class Synchronized<T> {
private let queue: DispatchQueue
private var _value: T
init(_ value: T) {