Skip to content

Instantly share code, notes, and snippets.

Graphics/Displays:
Apple M4 Pro:
Chipset Model: Apple M4 Pro
Type: GPU
Bus: Built-In
Total Number of Cores: 20
Vendor: Apple (0x106b)
Metal Support: Metal 4
Thunderbolt/USB4:
Thunderbolt/USB4 Bus 2:
Vendor Name: Apple Inc.
Device Name: MacBook Pro
UID: 0x05ACD0A8E47552D2
Route String: 0
Domain UUID: B882CC3A-1707-41E4-8EC8-CB7E1A71CBE8
Port:
This file has been truncated, but you can view the full file.
~  faire  ios  chumber/brand-impersonation-coordinator  12✎  4?  %  log show \
--style compact \
--info \
--debug \
--start "2026-11-01 10:58:15" \
--end "2026-11-01 10:58:35" \
--predicate '
eventMessage CONTAINS[c] "LG UltraFine" OR
eventMessage CONTAINS[c] "DisplayWall" OR
[
{
"iso2": "AF",
"translations": {
"br": "Afeganistão",
"nl": "Afghanistan",
"hr": "Afganistan",
"ja": "アフガニスタン",
"fr": "Afghanistan",
"it": "Afghanistan",
// works fine, but receiveValue may return on different threads
viewModel.$snapshot
.sink { [weak self] snapshot in
guard let self = self else { return }
var animateDifferences = false
switch self.viewModel.state {
case .idle, .empty, .loading, .searching:
animateDifferences = false
@colinhumber
colinhumber / step.swift
Last active April 4, 2019 22:17
Recursive Wizard Step
typealias SomeContent = String
indirect enum Step {
case step1(SomeContent, Step?)
case step2(SomeContent, Step?)
case step3(SomeContent, Step?)
}
let step1 = Step.step1("Step 1 data", nil)
let step2 = Step.step2("Step 2 data", step1)
@colinhumber
colinhumber / HackyNavBar
Created September 20, 2017 14:16
Hacky way to get a custom nav bar height
#import "SBBaseNavigationBar.h"
@interface SBBaseNavigationBar (iOS11HacksPrivate)
@property (nullable, nonatomic, readonly) UIView *navigationBarContentView;
@end
@colinhumber
colinhumber / gist:5a11de79075b1585d9bf
Created March 11, 2015 02:37
LLDB error using Swift Xcode 6.2
error: <EXPR>:1:11: error: use of undeclared type '$__lldb_context'
extension $__lldb_context {
^~~~~~~~~~~~~~~
<EXPR>:11:5: error: use of unresolved identifier '$__lldb_injected_self'
$__lldb_injected_self.$__lldb_wrapped_expr_3(
^
### Keybase proof
I hereby claim:
* I am colinhumber on github.
* I am colinhumber (https://keybase.io/colinhumber) on keybase.
* I have a public key whose fingerprint is 0F25 9272 C700 B0BF BD75 E02A CB11 6A19 6150 22B2
To claim this, I am signing this object:
Not doing anything. The app just crashes every time it automatically or manually update the snippets.
Process: Xcode [29287]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 5.0.2 (3335.32)
Build Info: IDEApplication-3335032000000000~4
App Item ID: 497799835
App External ID: 106632651
Code Type: X86-64 (Native)