Skip to content

Instantly share code, notes, and snippets.

View shibajee's full-sized avatar
🏠
Working from home

BAKEMONO shibajee

🏠
Working from home
View GitHub Profile
@shibajee
shibajee / GenKGA
Created June 25, 2023 11:54
Creative Sound Blaster Legacy Product Activation Source Code
#include <mbedtls/des.h>
#include <mbedtls/md5.h>
#include <stdio.h>
#include <Windows.h>
#include <IPHlpApi.h>
#include <ShlObj.h>
#include <Shlwapi.h>
#define TRACE 0
@shibajee
shibajee / AMD AM4 Motherboard Tier List
Created October 23, 2022 13:38
AMD AM4 Motherboard Tier List
Tier S: 300A current draw on little ambient airflow (i.e below a big air cooler in a well-ventilated case), maxed out 5950X and 3950X on liquid nitrogen (LN2) overclocking
Asus: X570 Crosshair VIII Hero, Crosshair VIII Dark Hero, B550 B550-XE
Gigabyte: X570S Aorus Master, X570 Aorus Xtreme, B550 Aorus Master
MSI: X570 Godlike, Creation
XiaoQiang login: root
Password:
BusyBox v1.19.4 (2020-08-14 12:26:28 UTC) built-in shell (ash)
Enter 'help' for a list of built-in commands.
-----------------------------------------------------
Welcome to XiaoQiang!
-----------------------------------------------------
Change region of Xiaomi routers to unlock all channel:
1. Login to ur router in browser.
2. Open a new tab and paste this
http://192.168.31.1/cgi-bin/luci/;stok=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/api/xqsystem/set_country_code?country=CN
get the stok value from login tab and replace it in new tab and then hit enter.
3. Router will reboot automatically and on next login u will see all 5Ghz channel 36~48 and 149~165.
For Openwrt:
partition@0 {
label = "u-boot";
reg = <0x0 0x30000>;
};
partition@30000 {
label = "config";
reg = <0x30000 0x10000>; (disable read-only for all so that u can update uboot/factory via web recovery)
#
# Automatically generated by make menuconfig: don't edit
#
CONFIG_CROSS_COMPILER_PATH="/opt/buildroot-gcc342/bin"
# CONFIG_BAUDRATE_115200 is not set
CONFIG_BAUDRATE_57600=y
ASIC_BOARD=y
# RT2880_ASIC_BOARD is not set
# RT3350_ASIC_BOARD is not set
# RT3052_ASIC_BOARD is not set
U-Boot 1.1.3 (Aug 10 2020 - 04:02:58)
Board: MediaTek APSoC DRAM: 32 MB
enable ephy clock...done. SSC disabled.
MediaTek SPI flash driver, SPI clock: 50MHz
spi device id: c2 20 16 c2 20 (2016c220)
find flash: MX25L3205D
*** Warning - bad CRC, using default environment
U-Boot 1.1.3 (Feb 26 2014 - 12:49:16)
Board: Ralink APSoC DRAM: 32 MB
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
spi_wait_nsec: 29
spi device id: c2 20 16 c2 20 (2016c220)
find flash: MX25L3205D
3: System Boot system code via Flash.
## Booting image at bc020000 ...
Image Name: MIPS LEDE Linux-4.4.194
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1279186 Bytes = 1.2 MB
Load Address: 80000000
Entry Point: 80000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
## Booting image at bc020000 ...
Image Name: MIPS OpenWrt Linux-4.14.187
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1675471 Bytes = 1.6 MB
Load Address: 80000000
Entry Point: 80000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting kernel ...