Skip to content

Instantly share code, notes, and snippets.

View 00p513-dev's full-sized avatar
💭
Hackergirl

Amy 00p513-dev

💭
Hackergirl
  • source build/envsetup.sh
  • 12:32 (UTC +01:00)
View GitHub Profile
@00p513-dev
00p513-dev / Build.java
Last active October 7, 2021 22:13
MIUI Stub for ports
package miui.os;
public class Build extends android.os.Build {
public static final boolean IS_INTERNATIONAL_BUILD = false;
public static String getRegion() {
return "CN";
}
:root {
--colors-one: #9be9a8;
--colors-two: #40c463;
--colors-three: #30a14e;
--colors-four: #216e39;
}
@media (prefers-color-scheme: dark) {
:root {
--colors-text: #FFFF00;
@00p513-dev
00p513-dev / main.py
Created March 12, 2021 18:17
PyGame Pong
# Import the pygame module
import pygame
# Import pygame.locals for easier access to key coordinates
from pygame.locals import (
K_UP,
K_DOWN,
K_ESCAPE,
KEYDOWN,
@00p513-dev
00p513-dev / commands.md
Last active January 19, 2023 14:07
Useful fastboot commands
Command Purpose
fastboot devices Lists attached devices, along with their serial number
fastboot oem unlock Unlocks bootloader on most phones
fastboot oem unlock UNLOCK_CODE Use this if you have an unlock code
fastboot flashing unlock May be needed on older devices and some weird mtk phones (Tecno ke5k needed this for some reason)
fastboot flash PARTITION_NAME PATH_TO_IMAGE Flashes the partition with the image file
--disable-verity --disable-verification Add to a vbmeta flash command to disable verified boot
fastboot erase PARTITION NAME Erases the partition USE WITH CAUTION
fastboot -w