Skip to content

Instantly share code, notes, and snippets.

View someone5678's full-sized avatar
🐇
Staring at code 24/7/365

someone5678 someone5678

🐇
Staring at code 24/7/365
View GitHub Profile
@someone5678
someone5678 / fastboot_help.md
Created June 6, 2025 09:43 — forked from MrHallows/fastboot_help.md
fastboot commands

Command:

$ fastboot help

Output:

usage: fastboot [OPTION...] COMMAND...

flashing:
@someone5678
someone5678 / reverse-charger-res.sh
Last active November 26, 2024 15:14
Split android's pngcrushed charger res into frame by frame
#!/bin/bash
# Check if necessary commands are installed
if [ -z "$(which convert)" ] || [ -z "$(which pngcrush)" ]; then
echo "Please install imagemagick and pngcrush"
exit 1
fi
for DENSITY in xxxhdpi:1000; do
DPI=$(echo $DENSITY | cut -f1 -d ':')
@someone5678
someone5678 / FireFox-nVidia-eglSetDamageRegion-workaround.md
Created September 3, 2024 08:11
FireFox crashes with error "Error in eglSetDamageRegion" on nVidia platform

Desc

  • Workaround that I found for that FireFox crashes with error "Error in eglSetDamageRegion" on nVidia platform.
  • Tested on ArchLinux with NVIDIA GeForce GTX 1070 Mobile.

Log

AdapterDeviceID: 0x2484
AdapterDriverVendor: nvidia/unknown
AdapterDriverVersion: 560.35.3.0
@someone5678
someone5678 / grub.md
Last active May 30, 2023 18:21
Make Grub menu launch with shift key while it hidden otherwise during boot on Ubuntu

Make Grub menu launch with shift key while it hidden otherwise during boot on Ubuntu

To make Grub menu launch with shift key while it hidden otherwise during boot on Ubuntu,
first you should open your grub file.

sudo nano /etc/default/grub

@someone5678
someone5678 / unpackbootimg.txt
Last active March 3, 2023 06:24
Build unpack_bootimg.py, repack_bootimg.py in binary form
1. Retrieve unpack_bootimg.py, repack_bootimg.py from https://android.googlesource.com/platform/system/tools/mkbootimg/
2. Install pyinstaller by command `sudo pip3 install pyinstaller`
3. Compile it by `pyinstaller name_of_script.py --onefile`.
By adding --onefile option we can make it as single file form instead of multiple file
4. Done!
@someone5678
someone5678 / killsysmain.cmd
Last active December 15, 2022 13:22
Kill SysMain CMD Script
sc stop “SysMain” & sc config “SysMain” start=disabled