Skip to content

Instantly share code, notes, and snippets.

View Adobels's full-sized avatar
🎯
Focusing

Blazej SLEBODA Adobels

🎯
Focusing
View GitHub Profile
@Adobels
Adobels / gist:312595ed8eaf140f98e33664560b933d
Created July 18, 2018 21:00
MacOS Terminal Tips & Tricks
https://lifehacker.com/launch-an-os-x-terminal-window-from-a-specific-folder-1466745514
@Adobels
Adobels / gist:cef20c9975e36201b91955605573da7e
Created February 3, 2019 13:59
How do I find my RSA key SHA1?
ssh-keygen -E md5 -lf id_rsa.pub
@Adobels
Adobels / gist:ba6e86a946874782d7fed526da9e34bf
Last active November 24, 2019 21:27
Available iOS simulators in Xcode
Xcode 11.2.1 (11B500) ; 13.2.2 (17B111) ; 13.1 ; 13.0 ; 12.4 ; 12.2 ; 12.1 ; 12.0 ; 11.4 ; 11.3 ; 11.2 ; 11.1 ; 11.0 ; 10.3.1
Xcode 11.1 (11A1027) ; 13.1(17A844); 12.4 ; 12.2 ; 12.1 ; 12.0 ; 11.4 ; 11.3 ; 11.2 ; 11.1 ; 11.0 ; 10.3.1
@Adobels
Adobels / UITimer
Last active January 29, 2020 15:42
Reusable and InterfaceBuilder friendly Timer
class UITimer: NSObject {
@IBInspectable
var timeInterval: Double = 1
@IBInspectable
var repeats: Bool = false
var timer: Timer?
//
// EmojiFlag.swift
//
// Created by Blazej SLEBODA on 04/02/2020.
//
import Foundation
class EmojiFlag {
@Adobels
Adobels / gist:cd6ee1455c96c8b86e959e1d3cc2803a
Last active February 6, 2020 14:24
NSOperation for an async code like URLSession data tasks
class OperationSource: Operation {
var state: Operation.OperationState = .inital
let newsApi: NewsApi
var data: Data?
init(newsApi: NewsApi) {
self.newsApi = newsApi
}
@Adobels
Adobels / RxSwift5_0_1-SingleFile.swift
Last active February 12, 2020 14:35
RxSwift 5.0.1 Framework concatenated to a single file
//
// AddRef.swift
// RxSwift
//
// Created by Junior B. on 30/10/15.
// Copyright © 2015 Krunoslav Zaher. All rights reserved.
//
final class AddRefSink<Observer: ObserverType> : Sink<Observer>, ObserverType {
Update git fork with tags
# Repo: someuser/myframework
# Fork: superteam/myframework
# Track:
git clone https://github.com/superteam/myframework.git
cd myframework
git remote add upstream https://github.com/someuser/myframework.git
@Adobels
Adobels / gist:b445ac17d9bfc3af4cfc977494fa3563
Last active August 27, 2021 08:44
What's new in Swift 5.5
Swift 5.5 Change log:
https://github.com/apple/swift/blob/main/CHANGELOG.md#swift-55
Collection of new features:
https://www.hackingwithswift.com/articles/233/whats-new-in-swift-5-5
https://medium.com/mindful-engineering/whats-new-in-swift-5-5-fb13f49bb728
Specific features:
2021-09-15 1A291f removes the deployment limit entirely, so all users should now be able to get the firmware update.
2021-09-07 1.0.291 1A291e changed nothing other than the rate limit on the percentage (25%) of ‌AirTags‌ users getting the update
2021-0x-xx 1A291c