Skip to content

Instantly share code, notes, and snippets.

Avatar
🌾
チョットモデキナイ

Yuki MIZUNO mzyy94

🌾
チョットモデキナイ
View GitHub Profile
View add_procon_gadget.sh
#!/bin/bash
cd /sys/kernel/config/usb_gadget/
mkdir -p procon
cd procon
echo 0x057e > idVendor
echo 0x2009 > idProduct
echo 0x0200 > bcdDevice
echo 0x0200 > bcdUSB
echo 0x00 > bDeviceClass
@mzyy94
mzyy94 / uBlacklist.txt
Created Nov 30, 2021
Block GitHub copy sites
View uBlacklist.txt
*://github-wiki-see.page/*
*://githubhelp.com/*
@mzyy94
mzyy94 / dial.py
Last active Aug 2, 2021
Discover DIAL device and request DIAL REST API
View dial.py
#!/usr/bin/env python3
from urllib.request import *
import xml.etree.ElementTree as ET
headers = {'Origin': 'package:dial.py'}
class Dial:
appUrl = ''
appName = ''
@mzyy94
mzyy94 / m1patch.sh
Last active Jun 30, 2021
Patch Apple Silicon support to .pkg installer file
View m1patch.sh
#!/bin/zsh
if [ $# -lt 2 ]; then
echo "Usage: $0 <input.pkg> <output.pkg>"
exit 1
fi
if [ ! -e $1 ]; then
echo "File $1 not found."
exit 1
@mzyy94
mzyy94 / osmc-jp-font-replace.sh
Last active May 3, 2021
OSMC Japanese font replace
View osmc-jp-font-replace.sh
#!/bin/sh
URL="https://gist.github.com/mzyy94/15ee1b3880107e9d7ece/download"
TMP="/tmp/mplusfonts"
FONTSDIR="/usr/share/kodi/addons/skin.osmc/fonts/"
FONTCONF="/usr/share/kodi/addons/skin.osmc/16x9/Font.xml"
set -x
mkdir -p ${TMP}
View procon_audio.sh
#!/bin/bash
cd /sys/kernel/config/usb_gadget/
mkdir -p procon
cd procon
echo 0x057e > idVendor
echo 0x2009 > idProduct
echo 0x0200 > bcdDevice
echo 0x0200 > bcdUSB
echo 0x00 > bDeviceClass
echo 0x00 > bDeviceSubClass
@mzyy94
mzyy94 / createpatchedboot.sh
Created Sep 10, 2020
./createpatchedboot.sh "JOYING FIRMWARE.zip" magisk_patched.img ./output/
View createpatchedboot.sh
#!/bin/sh
UPDATE_FILE="${1}"
PATCHED_BOOT="${2}"
OUTPUT_DIR="${3:-./out}"
CWD=$(cd $(dirname $0) && pwd)
OUTPUT_DIR="$CWD/$OUTPUT_DIR/"
OTA_PACKAGE="6521_1.zip"
View Docker-signapk
create image:
docker build -t signapk:latest .
sign apk:
docker run --rm -e OPTION="-w" -v $PWD:/data signapk:latest ./update.zip ./update_signed.zip
@mzyy94
mzyy94 / log.txt
Created Sep 10, 2020
lsec_updatesh/lsec.sh Joying update script PoC
View log.txt
Hello joying update
root
/
ANDROID_DATA=/data
ANDROID_ROOT=/system
EXTERNAL_STORAGE=/sdcard
HOME
PATH=/sbin:/system/bin:/vendor/bin
SECONDARY_STORAGE=/storage/sdcard0
SHELL