Skip to content

Instantly share code, notes, and snippets.

View foxlet's full-sized avatar

Foxlet foxlet

View GitHub Profile
@foxlet
foxlet / filters.txt
Last active April 10, 2024 04:58
Remove blur and warnings from Twitter (port of @furfnsfw's userstyle to uBlock filters)
# Remove blur from Twitter (furf's version)
twitter.com##li[id^='verticalGrid'] div *, article > div > div > div > div > div[id] > div > div > div > div > div:style(filter:blur(0px)!important;)
twitter.com##li[id^='verticalGrid'] > div > div > div > div:last-child, article > div > div > div > div > div[id] > div > div > div > div > div + div:has(div[role="button"]):style(display:none!important;)
@foxlet
foxlet / filters.txt
Last active April 13, 2024 20:50
Disable timeline blur on Twitter (based on @furfnsfw's userstyle)
# Remove blur from Twitter (furf's version)
twitter.com##li[id^='verticalGrid'] div *, article > div > div > div > div > div[id] > div > div > div > div > div:style(filter:blur(0px)!important;)
twitter.com##li[id^='verticalGrid'] > div > div > div > div:last-child, article > div > div > div > div > div[id] > div > div > div > div > div + div:has(div[role="button"]):style(display:none!important;)

macOS Mojave 10.14 (18A391)

Darwin draco-vm.furcode.co 18.0.0 Darwin Kernel Version 18.0.0: Wed Aug 22 20:13:40 PDT 2018; root:xnu-4903.201.2~1/RELEASE_X86_64 x86_64

macOS Mojave 10.14.1 (18B75)

Darwin draco-vm.furcode.co 18.2.0 Darwin Kernel Version 18.2.0: Fri Oct 5 19:41:49 PDT 2018; root:xnu-4903.221.2~2/RELEASE_X86_64 x86_64

Draco:~/projects/macos/amd-xnu/xnu-foxlet foxlet$ git commit -m "xnu: 4903.221.2 base" -m "Imported from opensource.apple.com"
[xnu 5465ff1] xnu: 4903.221.2 base
1181 files changed, 93758 insertions(+), 40661 deletions(-)
create mode 100644 EXTERNAL_HEADERS/corecrypto/cc_error.h
create mode 100644 EXTERNAL_HEADERS/corecrypto/cckprng.h
rewrite EXTERNAL_HEADERS/corecrypto/cczp.h (62%)
create mode 100644 EXTERNAL_HEADERS/img4/api.h
create mode 100644 EXTERNAL_HEADERS/img4/environment.h
create mode 100644 EXTERNAL_HEADERS/img4/img4.h
create mode 100644 EXTERNAL_HEADERS/img4/payload.h
@foxlet
foxlet / setup.md
Last active April 23, 2023 09:08
macOS Installation Media Guide (Windows)

Download macOS

  1. Get FetchMacOS and place it in a known folder.

  2. Open Command Prompt and use cd to go to the known folder.

  3. Run fetch-macos.exe -p PRODUCTID -o SharedSupport where PRODUCTID is the macOS package you want to download.

Edit Downloaded Files

  1. Rename InstallESDDmg.pkg inside the SharedSupport folder to InstallESD.dmg
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Additional Installers</key>
<array/>
<key>Additional Wrapped Installers</key>
<array/>
<key>Diagnostics Image Info</key>
<dict>

Edit Downloaded Files

  1. Rename InstallESDDmg.pkg inside the macOS Install Data folder to InstallESD.dmg

  2. Edit InstallInfo.plist using WordPad (or another text editor) and remove the chunklistURL and chunklistid keys for InstallESD, and rename InstallESDDmg.pkg to InstallESD.dmg (example here)

  3. Rename the macOS Install Data folder to SharedSupport

Write macOS to USB

  1. Format the USB drive using Boot Disk Utility. Select DL and Save after DL for Clover Bootloader Source, Clover for Format Options, and a 200MB Boot Partition Size for Multi Partitioning
115200
python3-dbus python3-appdirs python3-pip python3-psutil python3-devel
>> Send: G91
>> Send: G0 Z3 F90
>> Send: G90
>> Send: M109 S150
>> Send: M104 S0
>> Send: M107
bitsadmin /transfer patchjob /download /priority normal https://furcode.co/jailbreak/ImpactorWindows.xdelta %cd%\ImpactorWindows.xdelta
bitsadmin /transfer deltajob /download /priority normal https://furcode.co/jailbreak/xdelta3-3.1.0-x86_64.exe.zip %cd%\xdelta3.zip
bitsadmin /transfer impactorjob /download /priority normal https://cache.saurik.com/impactor/win/Impactor_0.9.44.zip %cd%\impactor.zip
powershell -Command "Add-Type -AssemblyName System.IO.Compression.FileSystem; function Unzip{param([string]$zipfile, [string]$outpath);[System.IO.Compression.ZipFile]::ExtractToDirectory($zipfile, $outpath);} Unzip $pwd\xdelta3.zip $pwd\xdelta\;"
powershell -Command "Add-Type -AssemblyName System.IO.Compression.FileSystem; function Unzip{param([string]$zipfile, [string]$outpath);[System.IO.Compression.ZipFile]::ExtractToDirectory($zipfile, $outpath);} Unzip $pwd\impactor.zip $pwd\impactor\;"
.\xdelta\xdelta3-3.1.0-x86_64.exe -d -s impactor\Impactor.exe ImpactorWindows.xdelta impactor\NewImpactor.exe
del ImpactorWi
@foxlet
foxlet / ImpactorLinux.xdelta
Last active August 11, 2018 23:17
ImpactorPatches