Skip to content

Instantly share code, notes, and snippets.

View shinyquagsire23's full-sized avatar
💭
Fiddling with emulation/patching between schoolwork.

Max Thomas shinyquagsire23

💭
Fiddling with emulation/patching between schoolwork.
View GitHub Profile
@shinyquagsire23
shinyquagsire23 / fixup.sh
Created July 18, 2023 02:20
Fixup iOS apps to run on visionOS sim
#!/bin/zsh
PWD=$(pwd)
app_path=$1
app_basename="${app_path%.*}"
if [ "$#" -ne 1 ]; then
echo "Usage: ./fixup.sh YourApp.app"
exit -1
fi
@shinyquagsire23
shinyquagsire23 / slc_unwrap.py
Created April 26, 2023 19:17
Convert Wii(U) NANDs with ECC to NAND images w/o ECC.
#!/usr/bin/python3
f = open("SLC.RAW", "rb")
f_out = open("SLC.partial.bin", "wb")
while True:
contents = f.read(0x840)
if len(contents) < 0x800:
break
unwrap = contents[:0x800]
f_out.write(unwrap)
@shinyquagsire23
shinyquagsire23 / lg_getkdz.py
Created February 11, 2020 20:20
LG Update Pulling
from Crypto.Cipher import AES
from Crypto import Random
import base64
import requests
import xml.etree.ElementTree as ET
block_size = AES.block_size
unpad = lambda s : s[0:-ord(s[-1])]
&mdss_mdp {
/* Samsung 4K OLED ID9 */
dsi_9: somc,9_panel {
qcom,dsi-ctrl-num = <0>;
qcom,dsi-phy-num = <0>;
qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0";
qcom,mdss-dsi-panel-name = "9";
qcom,mdss-dsi-panel-type = "dsi_cmd_mode";
qcom,mdss-pan-physical-width-dimension = <65>;
@shinyquagsire23
shinyquagsire23 / gist:291a16f1b5fa3b555f8a9da7692b72ce
Last active December 27, 2022 02:32
Surface Go ChromeOS - Jan 2020
Based somewhat on http://www.nicholasmelnick.com/2019/02/installing-chromeos-on-surface-go/
EDIT April 11, 2020: Happy to report that a lot of this isn't necessary any more! https://github.com/sebanc/brunch seems to work
perfectly with the Surface Go using the dual boot option and rEFInd, no adjustments needed. Even fixes autorotation, which I hadn't
gotten working.
# Get chromefy stuff
git clone https://github.com/imperador/chromefy.git
cd chromefy
@shinyquagsire23
shinyquagsire23 / openxr-sdk-loader-macos.patch
Created November 26, 2022 06:39
OpenXR-SDK macOS loader Patches
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 3da42ae..2f54680 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -410,7 +410,7 @@ if(NOT MSVC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${FLAG}")
endif()
endforeach()
- set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
+ #set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
@shinyquagsire23
shinyquagsire23 / gist:e6952335aa9c9efd7dcaec5e7296111b
Created October 20, 2022 19:55
Pixel Watch fastboot getvar all
(bootloader) battery-soc:39%
(bootloader) battery-soc-ok:yes
(bootloader) battery-voltage:3779 mV
(bootloader) enter-reason:reboot bootloader
(bootloader) erase-block-size:0x1000
(bootloader) hw-revision:MP1.1
(bootloader) is-logical:pad1:no
(bootloader) is-logical:vbmeta:no
(bootloader) is-logical:vbmeta_system:no
(bootloader) is-logical:vbmeta_vendor:no
@shinyquagsire23
shinyquagsire23 / hid_raw.txt
Created October 2, 2022 17:44
Stadia Controller lsusb -v and HID descs
18D1 9400: Google LLC - Stadia Controller rev. A
DESCRIPTOR:
05 01 09 05 a1 01 85 03 05 01 75 04 95 01 25 07
46 3b 01 65 14 09 39 81 42 45 00 65 00 75 01 95
04 81 01 05 09 15 00 25 01 75 01 95 0f 09 12 09
11 09 14 09 13 09 0d 09 0c 09 0b 09 0f 09 0e 09
08 09 07 09 05 09 04 09 02 09 01 81 02 75 01 95
01 81 01 05 01 15 01 26 ff 00 09 01 a1 00 09 30
09 31 75 08 95 02 81 02 c0 09 01 a1 00 09 32 09
35 75 08 95 02 81 02 c0 05 02 75 08 95 02 15 00
@shinyquagsire23
shinyquagsire23 / gist:28f35ac6a54905cdb18802e3f9162a88
Last active September 22, 2022 07:19
Sun and Moon No-line GateShark (Original patch by TiniVi and Kazowar)
[No Outlines]
0041B748 E320F000
D2000000 00000000
@shinyquagsire23
shinyquagsire23 / gist:89ff4ab30d7e0fc8b465d58479bcfd3a
Created October 20, 2016 16:38
Sun and Moon Demo No-Line Code
[No Outlines]
00297844 E320F000
D2000000 00000000