Skip to content

Instantly share code, notes, and snippets.

View Lukas1h's full-sized avatar
🌐
Working

Lukas Hahn Lukas1h

🌐
Working
View GitHub Profile

ChatGPT Telnet

  • Download the files into a directory.
  • Replace the API key with your own in gpt.js
  • Run npm i
  • Run node .
  • Connect to it using telnet
@leptos-null
leptos-null / swift-hook.md
Last active July 4, 2025 03:59
Hooking Swift functions

This article aims to describe how to hook Swift functions.

Thanks to help from @NightwindDev for discussion and testing.

Overall, the idea is simple: Write our own Swift code that will have the same calling convention as the target code, then get a pointer to our own code and the target code, and call MSHookFunction with these values.

Code

@dkun7944
dkun7944 / CDView.swift
Last active July 5, 2025 14:36
SwiftUI + Swift.Shader CD
//
// CDView.swift
// CD
//
// Created by Daniel Kuntz on 7/3/23.
//
import SwiftUI
struct ShapeWithHole: Shape {