Skip to content

Instantly share code, notes, and snippets.

perillamint

Block or report user

Report or block perillamint

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@perillamint
perillamint / tossqr.sh
Created Aug 12, 2019
Toss QR code generator
View tossqr.sh
#!/bin/bash
BANK='한국은행'
ACCNO='0011337'
AMOUNT='1337'
urlencode() {
python3 -c "import urllib.parse; print (urllib.parse.quote('''$1'''))"
}
@perillamint
perillamint / dumpcode.c
Created Jul 11, 2019
Dumpcode for Android JNI
View dumpcode.c
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <android/log.h>
#define PRINTBUFSZ 512
#define REMAINBUFSZ(start, end) PRINTBUFSZ - (end - start)
#define PRINTLN(...) __android_log_print(ANDROID_LOG_INFO, "FUCKING HEXDUMP", "%s\n", __VA_ARGS__)
#define PRINTBUF(printbuf, printbufptr) PRINTLN(printbuf); printbufptr = printbuf
View keybase.md

Keybase proof

I hereby claim:

  • I am perillamint on github.
  • I am perillamint (https://keybase.io/perillamint) on keybase.
  • I have a public key ASBWU6GKoOHncbQcx1x6eLvLa5cXSIIM0rGVWwf340Z52Qo

To claim this, I am signing this object:

@perillamint
perillamint / cjgls.sh
Created Aug 29, 2018
CJ 택배 추적 스크립트
View cjgls.sh
#!/bin/bash
if [ "$1" = "" ]; then
echo "Usage: $0 <slip no>"
exit 1;
fi
curl -s "http://nplus.doortodoor.co.kr/web/detail.jsp?slipno=$1" | iconv -f euc-kr -t utf-8 | elinks -dump 1 /dev/stdin
View gist:49ec9952e9566c79dfbaa036df9be3e8
[ 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
View fuel_horizon.log
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 Jun 3, 2018
Nintendo Switch system title batch decrypter
View nx-decrypt.sh
#!/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)
View tegra_mtc.bin.b64
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
View 0001-Initial-Quark-platform-support.patch
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 ++++++++++++++++++
View terraformer.zsh
#!/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
You can’t perform that action at this time.