This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Non-conclusive list of interesting private Metal pixel formats | |
// | |
let MTLPixelFormatYCBCR8_420_2P: UInt = 500 | |
let MTLPixelFormatYCBCR8_422_1P: UInt = 501 | |
let MTLPixelFormatYCBCR8_422_2P: UInt = 502 | |
let MTLPixelFormatYCBCR8_444_2P: UInt = 503 | |
let MTLPixelFormatYCBCR10_444_1P: UInt = 504 | |
let MTLPixelFormatYCBCR10_420_2P: UInt = 505 | |
let MTLPixelFormatYCBCR10_422_2P: UInt = 506 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Open license, I don't care what you do with this. | |
// idk how many of these are needed | |
import SwiftUI | |
import RealityKit | |
import Metal | |
import MetalKit | |
import Spatial | |
class DrawableWrapper { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bus 000 Device 009: ID 05e3:0751 Genesys Logic, Inc. microSD Card Reader | |
Device Descriptor: | |
bcdUSB 2.00 | |
bDeviceClass 0 UseInterfaceDescriptor | |
bDeviceSubClass 0 | |
bDeviceProtocol 0 | |
bMaxPacketSize0 64 | |
idVendor 0x05e3 Genesys Logic, Inc. | |
idProduct 0x0751 microSD Card Reader | |
bcdDevice e.04 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pip3 install pyusb | |
# Requires root on macOS to kick the kernel driver off the device. | |
import usb.core | |
import usb.util | |
import struct | |
import time | |
import base64 | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bus 001 Device 007: ID 0bb4:0350 HTC (High Tech Computer Corp.) VIVE Wireless Dongle | |
Device Descriptor: | |
bcdUSB 2.00 | |
bDeviceClass 0 UseInterfaceDescriptor | |
bDeviceSubClass 0 | |
bDeviceProtocol 0 | |
bMaxPacketSize0 64 | |
idVendor 0x0bb4 HTC (High Tech Computer Corp.) | |
idProduct 0x0350 | |
bcdDevice 1.00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import usb.core | |
import usb.util | |
import struct | |
import time | |
import os | |
# echo 1-1:1.0 > /sys/bus/usb/drivers/usb-storage/unbind | |
os.system("/bin/bash -c \"echo 1-1:1.0 > /sys/bus/usb/drivers/usb-storage/unbind\"") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://twitter.com/ShinyQuagsire/status/1536432635643211777 12:37 PM · Jun 13, 2022 | |
----- | |
I figured out how to enable USB device mode on my XPS 13 (9350) 🎉 | |
Though for some ungodly reason, it uses the right-side full USB port. So a crossover cable is required. | |
----- | |
https://twitter.com/ShinyQuagsire/status/1536434057671716864 12:43 PM · Jun 13, 2022 | |
----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
PWD=$(pwd) | |
app_path=$1 | |
app_basename="${app_path%.*}" | |
if [ "$#" -ne 1 ]; then | |
echo "Usage: ./fixup.sh YourApp.app" | |
exit -1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DDC/CI Command Codes (antiquated MStar function, not real): | |
------ | |
0xCC, 0xF1, 0xF0 - LG special? Only CC actually used. | |
3 | |
1 | |
0xC6 | |
0xC8 | |
0xF3 | |
0xF5 | |
0xB1 |
NewerOlder