Skip to content

Instantly share code, notes, and snippets.

View alloc33's full-sized avatar
🦀

Nick SHV alloc33

🦀
  • 23:39 (UTC +07:00)
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 / obsidian-keys.rs
Last active September 29, 2024 21:04
Simple rust script to print out obsidian hotkeys in a readable format. Path to the <VAULT>/.obsidian/hotkeys.json should be provided as argument
#!/usr/bin/env rust-script
//! ```cargo
//! [dependencies]
//! serde = { version = "1.0", features = ["derive"] }
//! serde_json = "1.0"
//! colored = "2.0"
//! cli-tables = "0.1.0"
//! ```
use cli_tables::Table;
@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
@alloc33
alloc33 / MacOSAppsInfoFetcher.swift
Last active July 16, 2021 13:55
macOS installed apps information
class MacOSAppsInfoFetcher {
var query: NSMetadataQuery? {
willSet {
if let query = self.query {
query.stop()
}
}
}