Skip to content

Instantly share code, notes, and snippets.

[ 4.721309] I2C XFER: device = max77620, flags = 0x00, data = [0x00, 0xff, ]
[ 4.728382] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 4.17.0-00059-g87bd3c37c1cd-dirty #16
[ 4.736641] Hardware name: Nintendo Switch (DT)
[ 4.741165] Call trace:
[ 4.743614] dump_backtrace+0x0/0x1b0
[ 4.747274] show_stack+0x14/0x20
[ 4.750589] dump_stack+0x9c/0xbc
[ 4.753903] i2c_transfer_buffer_flags+0x120/0x178
[ 4.758691] regmap_i2c_write+0x1c/0x50
[ 4.762526] _regmap_raw_write_impl+0x5f4/0x750
MemXPlorer by perillamint - Licensed under GPLv2
# max17050_dump
0x00 = 0x1006
0x01 = 0x6010
0x02 = 0x0060
0x03 = 0xb200
0x04 = 0x82b2
0x05 = 0x0382
0x06 = 0x4b03
0x07 = 0x644b
@perillamint
perillamint / nx-decrypt.sh
Last active June 3, 2018 15:01
Nintendo Switch system title batch decrypter
#!/bin/bash
HACTOOL=./hactool/hactool
KEYFILE=nintendo-switch-keys.dat
decrypt-nca() {
NCAFILE=$1
TARGDIR=$2
TITLEID=$($HACTOOL -k $KEYFILE -i $NCAFILE 2>/dev/null | grep Title\ ID\: | head -n 1 | sed 's/ //g' | cut -d ':' -f 2)
oQEAsP9DAdEiwEq581MAqfVbAan3YwKp+WsDqft7BKlf/ANx4QAAVL8/A9UCAYDSAgCu8kIAQLlC
FETTIsAKuSHASrmzAQCwPwgAcWABAFQ/DABx4QIAVKEBALAWAQCQ1cIFkbQCHZE0NAf5QQGAUmGC
DrkQAAAUogEAsEEAAJAhwC2RowEAsEE0B/mhAACQIcAZkUIBgFIhgA6RYTgH+aEBALBigg65IngO
uQIAABR/gg65YoJOueIAADS0AQCw9wMAqgEAgNIEYoLSgzZH+QMAABQAAIDSRAAAFD8AAmv1AwEq
agQAVDh8BJshBACRAAMBkWVoYLgAnINSYACgcr8AAGvB/v9UtQYAERYAgNL6AxUqeQI6kRtiglIk
A0C5vwIEa2oCAFSDNkf5JQCAUkFbO5tiABiLAACAUmEAAYtCQEC5IUBAue4TAJS/PwPVAcGX0tYG
QJEhAK7y1kIMkSEAQLmA+/81tQYAEez//xeDNkf5AACAUmSCTrkBAIVSApyDUkEBoHJiAKBy5QMA
KtwTAJQAAIBSgzZH+WSCTrkBoIZSAgCFUoEBoHJCAaBy5QMAKtMTAJS/PwPVAMGX0mGCTrkgAK7y
AABAuYA2R/ngAgD5oAEAsAB4TrkgAAALAWKCUgB8IZvzU0Cp9VtBqfdjQqn5a0Op+3tEqf9DAZHA
A1/WAQKK0gEArPIjAEC5oQEAsCPkDbmhAQCwI2AOuSGAOZEiAEC5QgADS18AAGvIAABUAgKK0gIA
From bffeae7c5bf5872c5f1a1eaf0055ccb7688cac28 Mon Sep 17 00:00:00 2001
From: perillamint <perillamint@gentoo.moe>
Date: Thu, 4 Jan 2018 01:07:08 +0900
Subject: [PATCH] Initial Quark platform support
---
include/target.mk | 1 +
target/linux/x86/Makefile | 2 +-
target/linux/x86/base-files/etc/inittab | 1 +
target/linux/x86/quark/config-default | 148 ++++++++++++++++++
#!/bin/zsh
set -e
if [ ! -f /bin/zsh ]; then echo "This script requires zsh!" && exit 1; fi
git clone https://github.com/zsh-users/antigen.git ~/.antigen
cat > ~/.zshrc <<EOF
source $HOME/.antigen/antigen.zsh
@perillamint
perillamint / openpgp.txt
Created February 11, 2018 05:50
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:9d2b76c5dc14e8659b86d293d1c1068d5f8502b2]
@perillamint
perillamint / star.asm
Last active December 1, 2017 05:51
Weird stars
; Assemble with nasm -f bin -o star.com star.asm
ORG 256
Start: XOR AX, AX
JMP ent
NOP
NOP
NOP
NOP
NOP
RET
@perillamint
perillamint / strange_tx.txt
Created October 16, 2017 07:08
strange_tx.txt
00000000: 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 ................
00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000020: 00 00 00 00 00 ff ff ff ff 07 04 ff ff 00 1d 01 ................
00000030: 02 ff ff ff ff 01 00 f2 05 2a 01 00 00 00 43 41 .......r.*....CA
00000040: 04 d4 6c 49 68 bd e0 28 99 d2 aa 09 63 36 7c 7a .TlIh=`(.R*.c6|z
00000050: 6c e3 4e ec 33 2b 32 e4 2e 5f 34 07 e0 52 d6 4a lcNl3+2d._4.`RVJ
00000060: c6 25 da 6f 07 18 e7 b3 02 14 04 34 bd 72 57 06 F%Zo..g3...4=rW.
00000070: 95 7c 09 2d b5 38 05 b8 21 a8 5b 23 a7 ac 61 72 .|.-58.8!([#',ar
00000080: 5b ac 00 00 00 00 01 00 00 00 01 c9 97 a5 e5 6e [,.........I.%en
00000090: 10 41 02 fa 20 9c 6a 85 2d d9 06 60 a2 0b 2d 9c .A.z..j.-Y.`".-.
@perillamint
perillamint / blocklist.csv
Created May 21, 2017 14:03
twitter blocklist
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
3253698696
787929537040363520
745632491281616897
808963632755154944
829304306872492032
737878305064488960
138430098
3256510788
1373710454
836837292132163584