Skip to content

Instantly share code, notes, and snippets.

View ink-splatters's full-sized avatar

Peter A. ink-splatters

  • Amsterdam
  • 03:54 (UTC +01:00)
View GitHub Profile
#!/usr/bin/env python3
# uv venv && source .venv/bin/activate
# uv pip install -U requests multidict phonenumbers
from urllib.parse import urlparse, parse_qs
import requests
import phonenumbers as pn
from multidict import MultiDict
{
fetchurl,
makeWrapper,
stdenvNoCC,
}: let
meta-info = builtins.fromJSON (builtins.readFile ./meta-info.json);
inherit (meta-info) platforms version;
platform = let
#!/usr/bin/env -S uv run --script
# /// script
# dependencies = ["requests"]
# ///
import dataclasses as d
import json
import logging
import re
import sys
@ink-splatters
ink-splatters / Security.asm
Created December 25, 2025 11:58
_SecTrustCopyCertificateChain (dyld_shared_cache 25C56)
_SecTrustEvaluateIfNecessary:
0x1839ff360: 7f 23 03 d5 pacibsp
0x1839ff364: ff 03 03 d1 sub sp, sp, #0xc0
0x1839ff368: e9 23 08 6d stp d9, d8, [sp, #0x80]
0x1839ff36c: f6 57 09 a9 stp x22, x21, [sp, #0x90]
0x1839ff370: f4 4f 0a a9 stp x20, x19, [sp, #0xa0]
0x1839ff374: fd 7b 0b a9 stp fp, lr, [sp, #0xb0]
0x1839ff378: fd c3 02 91 add fp, sp, #0xb0
0x1839ff37c: f3 03 00 aa mov x19, x0
0x1839ff380: b4 43 01 d1 sub x20, fp, #0x50
"""
Defines click argument Source type which resolves to URL or filesystem Path
Example:
```python
@click.command()
@click.argument(
"source", type=SourceType(path_opts={"exists": True, "dir_okay": False})
)

File Summarization API

This FastAPI application provides an API endpoint for uploading files and generating summaries using LlamaIndex. It supports a wide variety of file types including documents, images, audio, and video files.

Features

  • File upload endpoint
  • Automatic file type detection
  • Document summarization using LlamaIndex
  • Support for multiple file types (PDF, Word, PowerPoint, images, audio, video, etc.)
@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