Skip to content

Instantly share code, notes, and snippets.

@bazad
bazad / sep_firmware_split.py
Last active July 24, 2024 19:46
Split a decrypted Apple SEP firmware image into individual Mach-O files.
#! /usr/bin/env python3
#
# sep_firmware_split.py
# Brandon Azad
#
# Split a decrypted Apple SEP firmware image into individual Mach-O files.
#
# iPhone11,8 17C5053a https://twitter.com/s1guza/status/1203550760102969345
# iPhone11,8 17E255 https://twitter.com/s1guza/status/1244683851957522435
#
@tvwerkhoven
tvwerkhoven / dedupe.sh
Last active July 20, 2025 22:55
De-duplicate using APFS clonefile(2) and jdupes in zsh
#!/usr/bin/env zsh
#
# # About
#
# Since APFS supports de-duplication on block-level, it can be useful to
# manually de-duplicate your files if you've migrated/upgrade to APFS not
# using a fresh install.
#
# I've written this simple script with the aim to:
# - Be simple, easy to read and understand (for users to check)
@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active October 29, 2025 05:53
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@WuskyDingo
WuskyDingo / gist:d47eb596a95b947c93de3dc708f69738
Created July 21, 2019 23:33
Unlock Verizon Google Pixel Bootloader
1. Remove sim from phone
2. Factory reset phone
3. Go through setup, leave everything as default
- Don't add any fingerprints or screen locking
- Don't connect to WiFi (yet)
4. Enable developer options, and enable usb debugging
@stokito
stokito / firewall.user
Last active January 7, 2024 22:06 — forked from Manouchehri/cloudflare.sh
OpenWrt: Allow only CloudFlare to access HTTP 80 and HTTPS 443 ports. Use if your uhttpd is hidden behind CF. Put this file to /etc/firewall.user. NOTE: It uses HTTP to get the list of IPs because to wget via https we need to install ca-certs. This makes you vulnerable to MiTM attacks but that's ok to be protected from internet's hackers
# https://www.cloudflare.com/ips replace the ips-v4 with ips-v6 if needed
# https://blog.cloudflare.com/cloudflare-now-supporting-more-ports/
for ip in `wget -qO- http://www.cloudflare.com/ips-v4`; do
iptables -I INPUT -p tcp -m multiport --dports 80,443,8080,8443,2052,2053,2082,2083,2086,2087,2095,2096,8880 -s $ip -j ACCEPT
done
@ernestkamara
ernestkamara / AdbCommands
Created June 26, 2018 08:42 — forked from Pulimet/AdbCommands
Adb useful commands list
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell
@twatzl
twatzl / cleanDrivers.ps1
Last active September 12, 2025 08:57
Clean Windows Driver Store
for($i=0; $i -lt 100; $i++){
& pnputil /d oem$i.inf
}
@nico-lab
nico-lab / hevc_amf
Last active June 21, 2025 02:09
ffmpeg -h encoder=hevc_amf
Encoder hevc_amf [AMD AMF HEVC encoder]:
General capabilities: dr1 delay hardware
Threading capabilities: none
Supported hardware devices: d3d11va d3d11va dxva2 dxva2 amf amf
Supported pixel formats: nv12 yuv420p d3d11 dxva2_vld p010le amf bgr0 rgb0 bgra argb rgba x2bgr10le rgbaf16le
hevc_amf AVOptions:
-usage <int> E..V....... Set the encoding usage (from -1 to 5) (default -1)
transcoding 0 E..V....... Generic Transcoding
ultralowlatency 1 E..V....... Ultra low latency usecase
lowlatency 2 E..V....... Low latency usecase
@sabpprook
sabpprook / gist:091c7f51f064013c734b3afcef131d6d
Created September 26, 2017 18:53
FRP unlock for HTC devices
--for download devices
htc_fastboot dump kstoken 0 0 0
--for hboot devices
htc_fastboot oem get_ks_token
--submit token to htcdev unlock bootloader page
https://www.htcdev.com/bootloader/unlock-instructions/page-2
--flash kstoken
@dmi3mis
dmi3mis / product.ini
Created September 8, 2017 09:47 — forked from CHEF-KOCH/product.ini
Windows 10 product.ini
[cmi]
namespace=urn:schemas-microsoft-com:unattend
ClientServerSplit=true
AnswerFileFormat=1
ServerDatacenterACorCore=P7CCN-72DMB-93C9B-C9PD7-379HK
EnterpriseNEval=MNXKQ-WY2CT-JWBJ2-T68TQ-YBH2V
ProfessionalSingleLanguage=G3KNM-CHG6T-R36X3-9QDG6-8M8K9
CoreSingleLanguage=BT79Q-G7N6G-PGBYW-4YWX6-6F4BT
Professional=VK7JG-NPHTM-C97JM-9MPGT-3V66T
ServerStorageStandard=VN8D3-PR82H-DB6BJ-J9P4M-92F6J