Skip to content

Instantly share code, notes, and snippets.

Avatar

nyuszika7h

View GitHub Profile
View strip_cc.py
from __future__ import annotations
import argparse
import os
import subprocess
from pathlib import Path
def strip_cc(file: Path | os.PathLike[str]) -> None:
"""
@nyuszika7h
nyuszika7h / dsnp_chapters.py
Last active Aug 3, 2022
Code to get chapters from Disney+ (for BAMSDK v7.3.0)
View dsnp_chapters.py
def get_chapters(self, title):
milestones = []
for type_, type_milestones in title.service_data.get("milestone").items():
for milestone in type_milestones:
milestones.append((type_, milestone))
if not milestones:
return []
types = {
# https://github.com/IMFTool/IMFTool/blob/master/src/ImfCommon.cpp#L458-L504
@nyuszika7h
nyuszika7h / otalogparser.py
Last active Mar 3, 2022
Script to parse SEP version from a delayed OTA OTAUpdate.ips log file
View otalogparser.py
#!/usr/bin/env python3
import argparse
import base64
import plistlib
import re
import subprocess
import sys
@nyuszika7h
nyuszika7h / a11dfu.sh
Last active Mar 1, 2022
Helper script to enter DFU mode from recovery on A11 devices
View a11dfu.sh
#!/bin/sh -e
step() {
for i in $(seq "$1" -1 1); do
printf '\r\e[1;36m%s (%d) ' "$2" "$i"
sleep 1
done
printf '\r\e[0m%s (0)\n' "$2"
}
@nyuszika7h
nyuszika7h / install_chromedriver.sh
Last active Aug 1, 2022
Install Chrome and ChromeDriver on Linux without snapd (Ubuntu/WSL)
View install_chromedriver.sh
#!/bin/bash -e
CHROME_VERSION="102.0.5005.61"
TMPDIR="$(mktemp -d)"
pushd "$TMPDIR"
sudo apt update
sudo apt install -y wget unzip
View fstring_parser.py
import re
def fstring(s):
"""Parse f-string expressions and return the formatted version.
This lets you replace f'...' with fstring('...') and have it work on Python versions older than 3.6.
Note that this is just a fun project rather than a serious one, and may not be perfect, but feel free to use it.
Example:
@nyuszika7h
nyuszika7h / checkm8_downgrade.md
Last active Aug 16, 2022
How to downgrade checkm8 devices from iOS 15/16
View checkm8_downgrade.md

Important: Please don't use the comment section to ask for help. Join r/jailbreak (#genius-bar) or FDR Bureau (#futurerestore-support) instead.

How to downgrade checkm8 devices from iOS 15/16

This is a guide for downgrading (or upgrading) to unsigned versions with futurerestore on checkm8 devices (A11 and below). You must have blobs for the version you want to go to, and SEP/BB compatibility may limit how far you can go.

Current SEP compatibility

The latest SEP/BB as of right now is iOS 15.6.

@nyuszika7h
nyuszika7h / misummary.py
Last active May 11, 2022
MediaInfo Summary
View misummary.py
#!/usr/bin/env python3
import argparse
from pathlib import Path
from pymediainfo import MediaInfo
def avg(L):
if not L:
@nyuszika7h
nyuszika7h / Dockerfile
Last active Jul 29, 2021
Docker image to statically compile libimobiledevice, libirecovery and idevicerestore binaries for Linux (64-bit)
View Dockerfile
FROM debian:buster AS base
ENV CONF_ARGS="--disable-shared" \
CMAKE_ARGS="-DBUILD_SHARED_LIBS=0" \
CC="clang" \
CXX="clang++" \
LD="ld.lld" \
CFLAGS="-fPIC" \
CXXFLAGS="-fPIC" \
LDFLAGS="-Wl,--allow-multiple-definition"
RUN apt-get -y update && \
View btn-site-tags.md
Site/Network Abbreviation
9Now 9NOW
A&E AE
ABC (AU) iView AUBC
ABC (US) AMBC
Adult Swim AS
Al Jazeera English AJAZ
All4 (Channel 4, ex-4oD) ALL4
Amazon AMZN