Skip to content

Instantly share code, notes, and snippets.

View stephanschielke's full-sized avatar

Stephan Schielke stephanschielke

View GitHub Profile
@cobusc
cobusc / test_transformation.py
Last active December 4, 2023 18:23
Python dictionary transformations useful for mapping generated model classes to each other
from datetime import date, timedelta
from unittest import TestCase
from integration_layer.transformation import Mapping, Transformation
def tomorrow(today: date) -> date:
return today + timedelta(days=1)
class TestTransformation(TestCase):
@tenzap
tenzap / Readme.md
Last active April 11, 2025 09:37 — forked from cunneen/Readme.md
Install OpenGApps In Android Emulator (up to API31 / android 12 / S)

Introduction

This works to install OpenGApps into the Android Emulator

Features:

  • uses opengapps installer script (that we patch slightly)
  • linux only because we mount the ext2/4 disk images to modify them. Could be adapted for macos if you use hdiutil instead of kpartx and have installed tools to mount ext2/4 filesystems on macos
  • root permissions mandatory to mount disk images and enter chroot
  • removes verity/verified-boot from the virtual device (so that the AVD can boot, otherwise it would not boot because we didn't update the dm_params)
# Script for converting a HF Diffusers saved pipeline to a Stable Diffusion checkpoint.
# *Only* converts the UNet, VAE, and Text Encoder.
# Does not convert optimizer state or any other thing.
# Written by jachiam
import argparse
import os.path as osp
import torch
@0xdevalias
0xdevalias / _deobfuscating-unminifying-obfuscated-web-app-code.md
Last active January 11, 2026 18:31
Some notes and tools for reverse engineering / deobfuscating / unminifying obfuscated web app code