Skip to content

Instantly share code, notes, and snippets.

View alloc33's full-sized avatar
💭
🦀

Nick SHV alloc33

💭
🦀
View GitHub Profile
@alloc33
alloc33 / reverse-engineering-macos.md
Created February 23, 2025 14:47 — forked from 0xdevalias/reverse-engineering-macos.md
Some notes, tools, and techniques for reverse engineering macOS binaries
@alloc33
alloc33 / JSONSaveLoad.swift
Created April 27, 2022 16:40 — forked from norsez/JSONSaveLoad.swift
Load and Save JSON objects into a local file (written in Swift)
import Foundation
/**
Extension to save/load a JSON object by filename. (".json" extension is assumed and automatically added.)
*/
extension JSONSerialization {
static func loadJSON(withFilename filename: String) throws -> Any? {
let fm = FileManager.default
@alloc33
alloc33 / asyncAwaitInCombine.swift
Created November 21, 2021 07:37 — forked from Monntay/asyncAwaitInCombine.swift
async await in combine
extension Publisher {
func awaitSink(cancellable: inout Set<AnyCancellable>) async throws -> Output {
return try await withCheckedThrowingContinuation { continuation in
self.sink { completion in
switch completion {
case .finished:
break