This file contains hidden or 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
d4716b71de80f41c9e9da40a9627c1bc7ba6e6e8cff1f6e6dd5262c092f0a1fb |
This file contains hidden or 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
# needs https://github.com/wiiu-env/USBSerialLogger/tree/v0.1 | |
picocom -b 57600 -f n -y n -d 8 -p 1 --imap crcrlf,delbs --omap lfcr,bsdel /dev/rfcomm0 |
This file contains hidden or 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/python3 | |
# | |
# Decode Amazon Fire TV devices serial number information | |
# | |
# Copyright(C) 2022 rw-r-r-0644 | |
# This file is under GNU GPLv2+ | |
# | |
from datetime import datetime, date |
This file contains hidden or 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
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", ATTR{idProduct}=="0dde", TEST=="power/pm_qos_no_power_off", ATTR{power/pm_qos_no_power_off}="1" | |
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", ATTR{idProduct}=="0dde", TEST=="power/wakeup", ATTR{power/wakeup}="" | |
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", ATTR{idProduct}=="0dde", TEST=="power/control", ATTR{power/control}="on" | |
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", ATTR{idProduct}=="0dde", TEST=="power/autosuspend_delay_ms", ATTR{power/autosuspend_delay_ms}="-1" | |
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", ATTR{idProduct}=="0dde", TEST=="power/usb2_hardware_lpm", ATTR{power/usb2_hardware_lpm}="n" | |
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", ATTR{idProduct}=="0dde", TEST=="power/usb3_hardware_lpm_u1", ATTR{power/usb3_hardware_lpm_u1}="disable" | |
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", ATTR{idProduct}=="0dde", TEST=="power/usb3_hardware_lpm_u2", ATTR{power/usb3_hardware_lpm_u2 |
This file contains hidden or 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
#include <stdio.h> | |
#include <stdint.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <time.h> | |
/* board state storage: | |
* pstate -> whether X or O owns a given board part | |
* bstate -> which parts of the board are set |
This file contains hidden or 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
#include <stdlib.h> | |
#include <string.h> | |
#include <stdio.h> | |
#include <math.h> | |
typedef enum statement_type statement_type_t; | |
typedef enum operators_op0 operators_op0_t; | |
typedef enum operators_op1 operators_op1_t; | |
typedef enum operators_op2 operators_op2_t; | |
typedef struct statement statement_t; |
This file contains hidden or 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
/* tinybasic.c | |
* | |
* A simple TinyBASIC interpreter. | |
* | |
* NOTE: this was written one evening just for fun, with the | |
* explicit purpose of using a fairly small number of | |
* lines of code so the code is not at all readable ^^' | |
* I wouldn't recommend using this as base for anything else. | |
* | |
* Copyright (C) 2020 rw-r-r-0644 |
This file contains hidden or 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
softdep elan_i2c pre: pinctrl_amd | |
softdep hid-elan pre: pinctrl_amd | |
softdep i2c-hid-acpi pre: pinctrl_amd | |
This file contains hidden or 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
.arm.big | |
.open "patches/sections/0x08120000.bin","patches/patched_sections/0x08120000.bin",0x08120000 | |
CODE_SECTION_BASE equ 0x08120000 | |
CODE_SECTION_SIZE equ 0x00015000 | |
CODE_BASE equ (CODE_SECTION_BASE + CODE_SECTION_SIZE) | |
RODATA_SECTION_BASE equ 0x08140000 | |
RODATA_SECTION_SIZE equ 0x00002478 |
This file contains hidden or 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
/* this computations are repeated thoughout the function */ | |
static inline u32 _blockClusters(FSISFS_Volume *isfs) { | |
return isfs->devCaps.blockSize >> 0xe; | |
} | |
static inline u32 _superblockCount(FSISFS_Volume *isfs) { | |
return 1 << isfs->superblockCountLog2; | |
} | |
static inline u8 _superblockSizeLog2(FSISFS_Volume *isfs) { | |
return isfs->metadataSizeLog2 - isfs->superblockCountLog2; | |
} |
NewerOlder