Skip to content

Instantly share code, notes, and snippets.

View cacheninetynine's full-sized avatar
🚾
s

cacheninetynine

🚾
s
  • Mario Brother
  • 00:37 (UTC +03:00)
View GitHub Profile
# https://gist.github.com/fs0c131y/f498b21cba9ee23956fc7d7629262e9d
# save it as packages.txt
# get packages with adb and "pm list packages"
# remove "package:"
# and save the list it as in.txt
with open("packages.txt") as ptxt:
bp = ptxt.readlines()
with open("in.txt") as itxt:
ip = itxt.readlines()
@cacheninetynine
cacheninetynine / .gitignore
Created December 31, 2024 19:58
universal gitignore
*
@cacheninetynine
cacheninetynine / bitplanes.py
Created October 30, 2024 15:46
python bitplanes thing or something idk
from PIL import Image
def make_bitplanes(path):
img = Image.open(path)
bitplanes = [[],[],[],[],[],[],[],[]]
for color in img.convert("L").getdata():
bincolor = bin(color)[2:]
bincolor = ("0"*(8 - len(bincolor)))+bincolor
for i, v in enumerate(bincolor):