Skip to content

Instantly share code, notes, and snippets.

@tikimcfee
tikimcfee / Storytime.txt
Last active May 11, 2023 17:17
A Story of Love in Space - FTL
In the vast, twinkling expanse of space, where stars shone like a million points of light on the great cosmic carpet, and nebulas painted the black canvas with an artist's wild abandon, the good ship 'Ineffable Frigate' sailed forth. The motley crew, consisting of humans, Engis, Rockmen, and a single Mantis, were united under the banner of the Federation, all seeking to deliver a message of utmost importance to a distant outpost.
As the Ineffable Frigate made its way through the endless ocean of the cosmos, it chanced upon a curious scene. Two vessels, much like weary travelers embracing in a cosmic dance, were locked together in a tight, unyielding embrace.
Captain Stibbons, a man of few words and a penchant for the dramatic, stared at the sight, scratching his head. Beside him stood Splot, the ship's resident Engi, and a being who could only be described as an oversized, sentient Swiss Army knife.
"Would you care to hazard a guess as to what's going on here, Splot?" inquired Captain Stibbons, raising an
@tikimcfee
tikimcfee / find_git_files.swift
Created October 27, 2022 21:42
Find any files in git history including a string name
import Foundation
// https://www.w3docs.com/snippets/git/how-to-find-a-deleted-file-in-the-project-commit-history.html
// MARK: - ECHO
let __DEBUG = true
func dprint(_ message: @autoclosure () -> [Any]) {
guard __DEBUG else { return }
print(message())
@tikimcfee
tikimcfee / SwiftTraceSample.txt
Created April 23, 2022 00:11
SwiftTrace Tracing All The Things
Excluding SwiftTrace of LookAtThat_AppKit.CodeGrid.id.getter : Swift.String
Excluding SwiftTrace of LookAtThat_AppKit.CodeGrid.rootContainerNodeName.getter : Swift.String
Excluding SwiftTrace of LookAtThat_AppKit.CodeGrid.glyphNodeName.getter : Swift.String
Excluding SwiftTrace of LookAtThat_AppKit.CodeGrid.flattedGlyphNodeName.getter : Swift.String
Excluding SwiftTrace of LookAtThat_AppKit.CodeGrid.backgroundNodeName.getter : Swift.String
Excluding SwiftTrace of LookAtThat_AppKit.CodeGrid.backgroundNodeGeometry.getter : Swift.String
Excluding SwiftTrace of LookAtThat_AppKit.CodeGrid.cloneId.getter : Swift.String
Excluding SwiftTrace of LookAtThat_AppKit.CodeGrid.fileName.getter : Swift.String
Excluding SwiftTrace of LookAtThat_AppKit.CodeGrid.(showingRawGlyphs in _264F3C980A92A6BD3C2F4B4FF84BF4B4).getter : Swift.Bool
Excluding SwiftTrace of LookAtThat_AppKit.CodeGrid.codeGridSemanticInfo.getter : LookAtThat_AppKit.CodeGridSemanticMap
@tikimcfee
tikimcfee / FlowStack.swift
Created April 2, 2022 07:03 — forked from vanwagonet/FlowStack.swift
Simple flow layout in SwiftUI
import SwiftUI
/// A view that arranges its children in horizontal lines
///
/// FlowStack {
/// ForEach(1..<100) { num in
/// Text(String(num))
/// .padding(8)
/// .background(Circle().fill(Color.red))
/// }
@tikimcfee
tikimcfee / crash.txt
Created June 15, 2021 00:56
Crash - M1, SwiftTrace
#0 0x0000000181c3e020 in getMaybeUnrealizedNonMetaClass(objc_class*, objc_object*) ()
#1 0x0000000181c3ded8 in initializeAndMaybeRelock(objc_class*, objc_object*, mutex_tt<false>&, bool) ()
#2 0x0000000181c2bc44 in lookUpImpOrForward ()
#3 0x0000000181c2b544 in _objc_msgSend_uncached ()
#4 0x0000000104623774 in type metadata accessor for SwiftTrace.Swizzle.ThreadLocal ()
#5 0x0000000104623f44 in closure #1 in variable initialization expression of static SwiftTrace.Swizzle.onEntry at /Users/lugos/Library/Developer/Xcode/DerivedData/LookAtThat_AppKit-cknqatlzjmsdpwghvnspbgummawg/SourcePackages/checkouts/SwiftTrace/SwiftTrace/SwiftSwizzle.swift:159
#6 0x00000001046248b0 in @objc closure #1 in variable initialization expression of static SwiftTrace.Swizzle.onEntry ()
#7 0x000000012006c050 in 0x12006c050 ()
#8 0x0000000104623774 in type metadata accessor for SwiftTrace.Swizzle.ThreadLocal ()
#9 0x0000000104623f44 in closure #1 in variable initialization expression of static SwiftTrace.Swizzle.onEntry at /Users/lug
@tikimcfee
tikimcfee / look_at_node.swift
Created March 14, 2021 04:21
Found on the net
let distanceConstraint = SCNDistanceConstraint(target: box)
distanceConstraint.minimumDistance = 55
distanceConstraint.maximumDistance = 60
let lookAtConstraint = SCNLookAtConstraint(target: box)
lookAtConstraint.isGimbalLockEnabled = true
cameraNode.constraints = [lookAtConstraint,distanceConstraint]
scnView.scene?.rootNode.addChildNode(cameraNode)
@tikimcfee
tikimcfee / unspoken_magiks.html
Created February 6, 2021 23:03
THE UNSPOKEN ONE WROTE A TUTORIAL ON PEM AND JKS
<html xml:lang="en-us" lang="en-us"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="copyright" content="(C) Copyright 2005">
<meta name="DC.rights.owner" content="(C) Copyright 2005">
<meta name="DC.Type" content="task">
<meta name="DC.Title" content="Converting PEM-format keys to JKS format">
<meta name="abstract" content="This topic describes how to convert PEM-format certificates to the standard Java KeyStore (JKS) format.">
<meta name="description" content="This topic describes how to convert PEM-format certificates to the standard Java KeyStore (JKS) format.">
<meta name="DC.Audience.Experiencelevel" content="general">
<meta name="DC.Audience.Job" content="administering">
@tikimcfee
tikimcfee / build_error.log
Created September 24, 2020 22:12
./swift/utils/build-parser-lib Error Log
$ ./swift/utils/build-parser-lib --release --no-assertions --build-dir /tmp/parser-lib-build-ios --host iphoneos --architectures arm64
+ mkdir -p /tmp/parser-lib-build-ios/x86_64-tblgen
+ pushd /tmp/parser-lib-build-ios/x86_64-tblgen
-- clang project is enabled
-- clang-tools-extra project is disabled
-- compiler-rt project is disabled
-- debuginfo-tests project is disabled
-- libc project is disabled
-- libclc project is disabled
-- libcxx project is disabled
@tikimcfee
tikimcfee / jnitrace.txt
Created March 23, 2017 20:43
JNI crash with bad region data
03-23 16:27:43.728 8233-8233 I/MapboxEventManager: setTelemetryEnabled(); this.telemetryEnabled = false; telemetryEnabled = false
03-23 16:27:43.728 8233-8233 D/MapboxEventManager: No need to start / stop telemetry as it's already in that state.
03-23 16:27:43.729 8233-8233 I/MapboxEventManager: Telemetry initialize() called...
03-23 16:27:43.741 8233-8233 I/MapboxEventManager: Right before Telemetry set enabled in initialized()
03-23 16:27:43.744 8233-8233 I/MapboxEventManager: setTelemetryEnabled(); this.telemetryEnabled = false; telemetryEnabled = true
03-23 16:27:43.744 8233-8233 D/MapboxEventManager: Starting Telemetry Up!
03-23 16:27:43.750 8233-8233 I/MapboxEventManager: Permissions are good, see if GPS is enabled and if not then setup Ambient.
03-23 16:27:43.756 8233-8233 D/MapboxEventManager: Looking in SharedPreferences for Staging Credentials
03-23 16:27:43.767 8233-8233 W/linker: libmapbox-gl.so: unused DT entry: type 0x6ffffffe arg 0x2fcf4
03-23 16:27:43.767 8233-8233 W/linker: libmapbox-gl.so: u
02-21 15:42:50.919 22002-22002 D/mbgl: {ile.alpha.debug}[JNI]: No source found <----- Adding source throws this error
02-21 15:42:50.919 22002-22002 D/mbgl: {ile.alpha.debug}[JNI]: No layer found <----- Added a layer immediately after
02-21 15:42:50.919 22002-22002 D/mbgl: {ile.alpha.debug}[JNI]: No layer found <----- Added a layer immediately after
=====
2-21 15:49:39.505 27244-27244 V/LayerBundle: Executing BundleFunctor...
02-21 15:49:39.505 27244-27244 A/libc: Fatal signal 7 (SIGBUS) at 0x00000009 (code=1), thread 27244 (ile.alpha.debug)
02-21 15:49:39.545 5286-5335 D/ClClient: Not sending keepalive. Current connection state=STOPPED
02-21 15:49:39.615 17112-17112 I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
02-21 15:49:39.615 17112-17112 I/DEBUG: Build fingerprint: 'samsung/d2spr/d2spr:4.4.2/KOT49H/L710VPUDOH1:user/release-keys'
02-21 15:49:39.615 17112-17112 I/DEBUG: Revision: '14'