Skip to content

Instantly share code, notes, and snippets.

View hacker1024's full-sized avatar
Working on my music app, Epimetheus.


Working on my music app, Epimetheus.
  • Melbourne, Australia
  • 18:44 (UTC +10:00)
View GitHub Profile
shinyquagsire23 / gist:824d4e6b08379f3b537fa703d2b1874a
Created October 26, 2022 01:46
Pixel Watch - Dump boot_a/boot_b from fastboot using sha1sum and ramdump memes
# Dump partitions from the Pixel Watch's fastboot using `oem sha1sum`
# and `oem ramdump` memes.
# Currently the first 8 bytes aren't bruteforced, but they ~can be.
# Doesn't really matter though because the first 8 bytes is the "ANDROID!" magic
# for boot partitions.
import os
import sys
import subprocess
import hashlib
{ pkgs ? import <nixpkgs> {}}:
with pkgs;
pythonPackages = python310Packages;
nixGLSrc = builtins.fetchGit {
url = "";
rev = "7165ffbccbd2cf4379b6cd6d2edd1620a427e5ae";
TheBrokenRail /
Last active April 30, 2024 00:23
Jailbreak Firefox!


This script allows you to install unsigned extensions (ones that aren't approved by Mozilla) on normal Firefox builds and the official Snap! That's right, no "Firefox Developer Edition" nonsense required!

⚠️ Disclaimer ⚠️

This script is not well tested, like at all. This script might break things, possibly important things. You should probably take a backup of your Firefox profile before using it. You have been warned.


sudo apt install -y curl unzip zip
# Only needed when jailbreaking the Snap
jeroen-meijer /
Created September 15, 2019 13:00
Flutter Clean Recursive - Clear up space on your hard drive by cleaning your Flutter projects. This script searches for all Flutter projects in this directory and all subdirectories and runs 'flutter clean'. Note: may take a long time for folders with large amounts of projects.
# To run, download the script or copy the code to a '.sh' file (for example '') and run like any other script:
# sh ./
# or
# sudo sh
echo "Flutter Clean Recursive (by jeroen-meijer on GitHub Gist)"
echo "Looking for projects... (may take a while)"
mauronofrio / twrp_fajita.patch
Last active October 1, 2021 15:04
Patch to make decryption works on OnePlus fajita
# To Compile Fajita TWRP and make decryption working
--- hardware/interfaces/keymaster/4.0/support/Keymaster.cpp
+++ hardware/interfaces/keymaster/4.0/support/Keymaster.cpp
@@ -111,11 +111,10 @@
CHECK(serviceManager) << "Could not retrieve ServiceManager";
auto km4s = enumerateDevices<Keymaster4>(serviceManager);
- auto km3s = enumerateDevices<Keymaster3>(serviceManager);
niw /
Last active July 18, 2023 10:44
A script to download macOS install image and create an install disk image
#!/usr/bin/env bash
set -e
while getopts ":d:h" opts; do
case $opts in
Mygod /
Last active April 22, 2024 17:14
Export your Windows Bluetooth LE keys into Linux!
Copyright 2021 Mygod
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
gboudreau /
Last active May 21, 2024 05:57 — forked from Ingramz/
Export TOTP tokens from Authy
mosquito /
Last active May 21, 2024 07:34
Add doker-compose as a systemd unit

Docker compose as a systemd unit

Create file /etc/systemd/system/docker-compose@.service. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin, you should use paths specific for your environment.

Description=%i service with docker compose
jimmywarting /
Last active May 18, 2024 21:22
Cors proxies
Exposed headers
Service SSL status Response Type Allowed methods Allowed headers