Skip to content

Instantly share code, notes, and snippets.

View 0x41c's full-sized avatar
🍔
borgor

Corban Amouzou 0x41c

🍔
borgor
View GitHub Profile
@0x41c
0x41c / segment-dumper.swift
Last active March 17, 2022 20:34
Dump macho segment names from swift
//
// segment-dumper.swift
//
// Created by Cero on 2021-10-03.
//
import Foundation
import ArgumentParser
import MachO.loader
import MachO.swap
@0x41c
0x41c / Tableify.swift
Created October 1, 2021 18:16
Ever wanted to tablify some swift logs? Well heres a simple implementation
import Darwin
import Foundation
var globalLongest: Int = 0
var windowSize: winsize = winsize()
let validWindow = (ioctl(STDOUT_FILENO, TIOCGWINSZ, &windowSize) == 0)
func checkScreenWidth(_ targetWidth: Int) -> Bool {
// Not a valid terminal window, return true.
@0x41c
0x41c / Instructions.md
Created August 15, 2020 18:51 — forked from LacertosusRepo/CustomTemplate.md
Creating your own Thoes NIC template
  1. Get the desired existing NIC template from $THEOS/templates/, for example iphone_tweak.nic.tar

  2. Unpack the files from the template into some other folder like ~/MyNicTemplate

  3. Make any modifications to the existing files or add new ones, you can use different variables that will be replace with info entered in the NIC propmt:

  @@USER@@ = Author
  @@PROJECTNAME@@ = Name of the project (Not sure of the difference)
  @@FULLPROJECTNAME@@ = Name of the project (Not sure of the difference)