Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Haruroid
Haruroid / .config.txt
Created July 10, 2022 05:18
[KTS31].config for linux-rtk
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 4.9.119 Kernel Configuration
#
CONFIG_ARM64=y
CONFIG_64BIT=y
CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
CONFIG_MMU=y
CONFIG_DEBUG_RODATA=y
CONFIG_ARM64_PAGE_SHIFT=12
@Haruroid
Haruroid / enc2.js
Created March 26, 2022 11:31
俺的enc.js豪華版 for EPGStation
//字幕,多チャンネルに対応
const spawn = require('child_process').spawn;
const ffmpeg = process.env.FFMPEG;
const input = process.env.INPUT;
const output = process.env.OUTPUT;
const analyzedurationSize = '10M'; // Mirakurun の設定に応じて変更すること
const probesizeSize = '32M'; // Mirakurun の設定に応じて変更すること
const maxMuxingQueueSize = 1024;
mmc read 0xb000000 0x28004 0x2908;
mmc read 0x9800000 0x2a808 0x100;
fatload mmc 1 0xb000000 uImage
fatload mmc 1 0x9800000 pxa1928ma03.dtb
fdt addr 0x9800000;
env set bootargs root=PARTUUID="01dce0df-02" rw rootfstype=ext4 init=/sbin/init androidboot.console=ttyS0 console=ttyS0,115200 panic_debug uart_dma crashkernel=4k@0x8140000 user_debug=31 earlyprintk=uart8250-32bit,0xd4018000 mem=2032M cgroup_disable=memory cma=51M ioncarv=144M@0x09000000 RDCA=08140400 cpu_max=1508000 ddr_max=528000 gc3d_max=797000 gc2d_max=416000
@Haruroid
Haruroid / ncp-hg100_pkgs.txt
Created January 1, 2021 01:24
NCP-HG100 Packages
6rd - 9-2
Helios-AVS - 1.9-3.1
Helios-AVS-Script - 1-1
Helios-Thermal-Policy - 1-1
REACH_FW_Updater - 1-1
Zware_hcapi - 0.0.3-5
alsa - 1
alsa-lib - 1.1.5-1
alsa-utils - 1.1.0-1
arptables - 0.0.4-1
@Haruroid
Haruroid / anti-pixiv-swipe.md
Last active December 22, 2020 09:03
Pixivで横スワイプを無効化するμBlockフィルター

PixivのスマホUIは全然モバイルフレンドリーじゃない💢

ちょっとハードにスクロールするだけであっちこっちに飛んでとてつもなく使い辛い。

最初.swipe-detectorとかいうモロなクラスがあってブロック余裕じゃんと思ったものの、内容は動的に生成されているようで普通にブロックできなかった。

そこでタッチイベント側をブロックして対策することに。

www.pixiv.net##+js(addEventListener-defuser.js, /^(touchtart|touchend)/)
@Haruroid
Haruroid / Makefile.desproxy
Last active November 10, 2020 13:02
desproxy 0.1.0-pre3 Makefile for OpenWrt
include $(TOPDIR)/rules.mk
PKG_NAME:=desproxy
PKG_VERSION:=0.1.0-pre3
PKG_RELEASE:=1
PKG_SOURCE:=desproxy-0.1.0-pre3.tar.gz
PKG_SOURCE_URL:=https://haruroid.com/static/openwrt/
PKG_HASH:=6604b60e2d389f5c2500e7becc6e21ffdb282de6fbee9da474ed887f75a93736
PKG_MAINTAINER:=test <root@localhost>
@Haruroid
Haruroid / build_ca.sh
Last active August 6, 2020 13:43
instant script for building CA of client authentication
#!/bin/bash
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 3650 -key ca.key -out ca.crt -subj "/C=CN/ST=Shenzhen/L=ComeCity/O=CA/OU=common/CN=/emailAddress="
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 4.9.119 Kernel Configuration
#
CONFIG_ARM64=y
CONFIG_64BIT=y
CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
CONFIG_MMU=y
CONFIG_DEBUG_RODATA=y
CONFIG_ARM64_PAGE_SHIFT=12
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 4.1.17 Kernel Configuration
#
CONFIG_ARM64=y
CONFIG_64BIT=y
CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
CONFIG_MMU=y
CONFIG_ARCH_MMAP_RND_BITS_MIN=18
CONFIG_ARCH_MMAP_RND_BITS_MAX=24
@Haruroid
Haruroid / 1.smali
Last active July 24, 2020 13:05
smaliコードメモ(自分用)
.method a()V
.locals 10
const/4 v0, 0x0
#int->String
invoke-static {v0}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;
move-result-object v1
#long->String