View altermail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Check if running as root | |
if [ "$(id -u)" != "0" ]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi | |
token=`cat /System/Applications/Mail.app/Contents/Info.plist | grep -A1 "PluginCompatibilityUUID" | grep string | sed 's/<string>//' | sed 's/<\/string>//'` | |
path="/Library/Mail/Bundles/SideloadlyPlugin.mailbundle/Contents/Info.plist" |
View apnoncer.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.m | |
// apnoncer | |
// | |
// Created by alexia on 2023-02-15. | |
// | |
@import CoreFoundation; | |
@import Foundation; | |
#import <dlfcn.h> |
View transprism.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# prism.py: Copyright (c) 2010 Alex Barrett <al.barrett@gmail.com> | |
# transprism.py: Copyright (c) 2022 alexia <me@alexia.lol> | |
# | |
# Everyone is permitted to copy and distribute verbatim or modified | |
# copies of this license document, and changing it is allowed as long | |
# as the name is changed. | |
# | |
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
# TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | |
# |
View iBoot64Patcher.Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine AS base | |
ENV CONF_ARGS="--disable-shared" \ | |
CMAKE_ARGS="-DBUILD_SHARED_LIBS=0" \ | |
CC="clang" \ | |
CFLAGS="-fPIC" \ | |
CXX="clang++" \ | |
CXXFLAGS="-fPIC" \ | |
LD="ld.lld" \ | |
LDFLAGS="-fuse-ld=/usr/bin/ld.lld -static -static-libgcc -Wl,--allow-multiple-definition -Wl,--no-dynamic-linker -Wl,-static" | |
RUN apk add --no-cache autoconf automake bash clang15 cmake coreutils gcc g++ git libtool lld m4 make musl musl-dev openssl-dev openssl-libs-static pkgconf && \ |
View decrypt.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$#" -lt 1 ]; then | |
echo "ERROR: Missing argument." >&2 | |
echo "Usage: $0 --list|<name>" | |
exit 1 | |
fi | |
if [ "$#" -gt 1 ]; then | |
echo "ERROR: Too many arguments." >&2 |
View usbmuxd2.Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 exit_vs_sys_exit.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ python | |
Python 3.10.7 (main, Sep 7 2022, 12:19:18) [GCC 10.2.1 20210110] on linux | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> try: | |
... exit() | |
... except SystemExit: | |
... print("no exit for you") | |
... finally: | |
... print("cleanup") | |
... |
View strip_cc.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import annotations | |
import argparse | |
import os | |
import subprocess | |
from pathlib import Path | |
def strip_cc(file: Path | os.PathLike[str]) -> None: | |
""" |
View dsnp_chapters.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
View a11dfu.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" | |
} |
NewerOlder