Skip to content

Instantly share code, notes, and snippets.

View ink-splatters's full-sized avatar

Peter A. ink-splatters

  • Amsterdam
  • 00:38 (UTC +01:00)
View GitHub Profile
@ink-splatters
ink-splatters / Domains.md
Created December 15, 2024 00:55 — forked from leminlimez/Domains.md
A deep dive into the iOS backup/restore system

Domains.plist

Documentation of /System/Library/Backup/Domains.plist. File taken from iOS 16.4 iPhone SE 3. The file was removed in iOS 17.0

Values

Values in the plist. Other than SystemDomains, these are not really important and are just here for preservation sake.

A domain in domains.plist contains keys that determine what gets backed up for what types of devices and where (i.e. iCloud vs iTunes). Not all domains have each key. The only 2 keys that must be in every domain are RootPath and RelativePathsToBackupAndRestore. Some domains have the value ShouldDigest. I am not sure exactly what it means but I have included it for documentation purposes.

  • Version: "24.0"
  • SystemDomains: (Dictionary), see below
@ink-splatters
ink-splatters / defang.md
Created November 17, 2024 18:32 — forked from macshome/defang.md
How to defang system protections on macOS

How to Defang macOS System Protections

If you want to change things on the root drive of a Mac you will need to take some steps to disable the built in security of the system. Most of these steps are the same regardless if you are on Intel or Apple Silicon. If there is a difference it is noted.

Note that all of these things put a Mac into an unsupported and less secure state.

Make sure you either perform these steps in a VM or that you reset the protections after you are done poking around

Protections and Terms

(This list is not exahustive on the details of each. Check the links at the end for more info.)

@ink-splatters
ink-splatters / gix-populate-submodules.py
Created November 12, 2024 06:48
Fast population of git submodules using gitoxide
# SPDX-FileCopyrightText: © 2024 Peter A. (@ink-splatters)
#
# SPDX-License-Identifier: MIT
#
# -----------------------------------------------------------------------------
# gix_populate_submodules
# -----------------------------------------------------------------------------
#
# MIT License
#
@ink-splatters
ink-splatters / ai-voice-cloning-transfer.md
Created November 11, 2024 05:24 — forked from 0xdevalias/ai-voice-cloning-transfer.md
Some notes on AI Voice Cloning/Transfer (eg. RVCv2)

AI Voice Cloning / Transfer (eg. RVCv2)

My random collection of notes on AI voice cloning services/models/techniques/etc. Just because something is listed here, doesn't necessarily mean I have tried it, nor endorse it. Use this as a starting point for doing your own further research.

Table of Contents

@ink-splatters
ink-splatters / ThirdPartyKexts.md
Created September 4, 2024 07:42 — forked from steven-michaud/ThirdPartyKexts.md
Running Third Party Kernel Extensions on Virtualization Framework macOS Guest VMs

Running Third Party Kernel Extensions on Virtualization Framework macOS Guest VMs

As of macOS 12 (Monterey), Apple's Virtualization framework has nice support for macOS guest virtual machines, but with severe limitations: For example you can't install a macOS guest on Intel Macs, install guests with newer versions of macOS than the host, copy and paste between the host and the guest, or install third party kernel extensions in the guest. As usual for Apple, the functionality they do support is nicely implemented, but they've left out so much that the result is only marginally useful -- at least compared to

@ink-splatters
ink-splatters / telegramRestore.md
Created August 31, 2024 00:33 — forked from avivace/telegramRestore.md
Restore deleted Telegram messages from groups

Restore deleted Telegram messages, medias and files from groups

There's not telegram API method for this, we need to call MTProto methods to retrieve messages from the "Recent Actions" (Admin Log) since deleted messages (and medias) gets moved there for 48 hours before the permanent deletion.

from telethon import TelegramClient, events, sync
from telethon.tl.types import InputChannel, PeerChannel
@ink-splatters
ink-splatters / MSUEarlyBootTask.log
Created August 13, 2024 21:57 — forked from rickmark/MSUEarlyBootTask.log
Early boot persistence
09:02:52: main: MSUEarlyBootTask running..Found data created by previous ramdisk. Assuming first boot after update at time Tue Sep 21 09:02:52 2021
09:02:52: MSUEarlyBootTask: Successfully set up ACL for folder stashed by ramdisk
09:02:52: MSUEarlyBootTasks: Cleaning up stale stashed paths
09:02:52: main: Running fixup var operations
09:02:52: entering update_var_directory_hierarchy
09:02:52: Created system mount point at /private/var/MobileSoftwareUpdate/mnt1
09:02:52: System is currently rooted from a snapshot
09:02:52: msuearlyboottask_mount_filesystem: Attempting to mount /dev/disk0s1s1 at /private/var/MobileSoftwareUpdate/mnt1
09:02:52: Reverting to snapshot(com.apple.os.update-9C000777B424EEABA97D3C90BB8E3C6CBD865FF00968F6063E6BFE32DBD630B9891FF8EB307DBFCE4CDD05EF92EE0C7D)
@ink-splatters
ink-splatters / airtag-decryptor.swift
Created May 24, 2024 03:24 — forked from airy10/airtag-decryptor.swift
Decrypt all beacons files from ~/Library/com.apple.icloud.searchpartyd
//
// airtag-decryptor.swift
//
// Decrypt all beacons files from ~/Library/com.apple.icloud.searchpartyd - updated when FindMy is running
// Results in /tmp/com.apple.icloud.searchpartyd - same file hierarchy
//
// Created by Matus on 28/01/2024. - https://gist.github.com/YeapGuy/f473de53c2a4e8978bc63217359ca1e4
// Modified by Airy
//
import Cocoa
@ink-splatters
ink-splatters / sandbox.h
Created May 6, 2024 14:03 — forked from Quiark/sandbox.h
restricted version of sbtool that is compilable
// courtesy of clang
// https://github.com/applesrc/clang/blob/bb8f644/src/projects/compiler-rt/lib/sanitizer_common/sanitizer_mac_spi.cc
enum sandbox_filter_type {
SANDBOX_FILTER_NONE,
SANDBOX_FILTER_PATH,
SANDBOX_FILTER_GLOBAL_NAME,
SANDBOX_FILTER_LOCAL_NAME,
SANDBOX_FILTER_APPLEEVENT_DESTINATION,
@ink-splatters
ink-splatters / gist:d0899a4749261b7dfd4818f40ff062b4
Created May 5, 2024 01:32
llama.cpp choosing BPE pre-tokenizer logic
airstation:llama.cpp ic$ git rev-parse HEAD
952d03dbead16e4dbdd1d3458486340673cc2465
airstation:llama.cpp ic$ echo ; awk '(NR>=4341 && NR<=4382 ){print NR " " $0}' llama.cpp
4341 // for now, only BPE models have pre-tokenizers
4342 if (vocab.type == LLAMA_VOCAB_TYPE_BPE) {
4343 if (tokenizer_pre.empty()) {
4344 LLAMA_LOG_WARN("%s: missing pre-tokenizer type, using: 'default'\n", __func__);
4345 LLAMA_LOG_WARN("%s: \n", __func__);
4346 LLAMA_LOG_WARN("%s: ************************************ \n", __func__);