Skip to content

Instantly share code, notes, and snippets.

View Nerahikada's full-sized avatar
➡️
left

ねらひかだ Nerahikada

➡️
left
View GitHub Profile
@Nerahikada
Nerahikada / fix_vrchat_yt-dlp.bat
Last active March 2, 2025 13:57
Fix video player in VRChat
@echo off
REM I don't know why this doesn't work: curl -o "%UserProfile%\AppData\LocalLow\VRChat\VRChat\Tools\yt-dlp.exe" -L https://github.com/yt-dlp/yt-dlp/releases/download/2024.10.22/yt-dlp.exe
curl -o "%Temp%\yt-dlp.exe" -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe
taskkill /f /t /im yt-dlp.exe
move /y "%Temp%\yt-dlp.exe" "%UserProfile%\AppData\LocalLow\VRChat\VRChat\Tools\yt-dlp.exe"
@Nerahikada
Nerahikada / compose.yml
Created October 6, 2024 09:36
run mitmproxy with tailscale (docker compose)
services:
tailscale:
image: tailscale/tailscale:latest
environment:
- TS_HOSTNAME=mitmproxy
- TS_STATE_DIR=/var/lib/tailscale
- TS_USERSPACE=false
volumes:
- ./tailscale:/var/lib/tailscale
- /dev/net/tun:/dev/net/tun
@Nerahikada
Nerahikada / deathbyai_parser.py
Created August 21, 2024 19:27
くそ雑 Death by AI パーサー
import time
import pyperclip
def parse_result(contents):
prompt = income = life = None
read_next_line_1 = read_next_line_2 = False
for line in contents.split('\n'):
line = line.strip()
if line.startswith('プロンプト: '):
prompt = line[7:]
@Nerahikada
Nerahikada / install_uvr5_ubuntu.bash
Created May 24, 2024 04:58
Install UVR5 on Ubuntu 22.04 (or above?)
#!/usr/bin/env bash
sudo apt install ffmpeg python3-pip python3-tk freeglut3-dev
git clone https://github.com/Anjok07/ultimatevocalremovergui.git
cd ultimatevocalremovergui
SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True pip3 install -r requirements.txt
python3 UVR.py
@Nerahikada
Nerahikada / !PayPay Reverse Engineering.md
Last active June 5, 2024 11:45
PayPay のリバースエンジニアリングに関するメモたち

PayPay リバースエンジニアリング

PayPay のリバースエンジニアリングに関するメモたち

PayPay の非公式 API ラッパーの一覧

Web ベース

@Nerahikada
Nerahikada / nfc2bin.php
Created April 4, 2024 09:34
Simple PHP script to convert Flipper Zero nfc files to binary data
<?php
declare(strict_types=1);
foreach (glob('*.nfc') as $filename) {
$blocks = array_filter(yaml_parse_file($filename), fn (string $key) => str_starts_with($key, 'Block '), ARRAY_FILTER_USE_KEY);
ksort($blocks, SORT_NATURAL);
file_put_contents("$filename.bin", hex2bin(str_replace(' ', '', implode('', $blocks))));
}
@Nerahikada
Nerahikada / spoofer.min.js
Created June 20, 2023 12:21
Geolocation API Spoofer
a=navigator.geolocation,b=()=>Math.random()*2147483647,c=null,a&&(a.getCurrentPosition=(d,e)=>{confirm(`Do you want to allow ${location.hostname} to access your location?`)?d({coords:{latitude:b(),longitude:b(),altitude:c,accuracy:b(),altitudeAccuracy:c,heading:c,speed:c},timestamp:Date.now()}):e({code:1,message:"User denied geolocation prompt"})})
@Nerahikada
Nerahikada / infector.php
Last active March 3, 2023 11:11
Temporary virion.php (poggit/poggit#317)
<?php
if(empty($argv[1])) exit("Usage: php $argv[0] <target phar>");
if(!file_exists($argv[1]) || !is_file($argv[1])) exit("File \"$argv[1]\" is not found");
if(ini_get("phar.readonly")) exit("Set phar.readonly to false");
if(!function_exists("yaml_parse_file")) exit("YAML extension is not installed");
if(!file_exists(".poggit.yml")) exit(".poggit.yml is not found, skipped");
file_put_contents("virion.php", file_get_contents("https://gist.githubusercontent.com/Nerahikada/a1fbb18c6fe4b2e10bb7baa7de9d0710/raw/virion.php"));
@Nerahikada
Nerahikada / oci+softether-vpn.md
Last active June 27, 2022 00:27
Oracle Cloud Infrastructure の仮想インスタンスに SoftEther VPN Server をインストールする

Oracle Cloud Infrastructure の仮想インスタンスに SoftEther VPN Server をインストールする

  • OCIで無料で使えるサーバーに、SoftEther VPN Serverを入れてみる
  • OS: Ubuntu 20.04.4 LTS

SoftEter VPN Server のダウンロード

SoftEther VPN のダウンロード から「SoftEther VPN (Freeware)」→「SoftEther VPN Server」→「Linux」→「CPU(インスタンスに合わせて選択)」と進み、最新のファイルをダウンロードして解凍する

wget https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/v4.39-9772-beta/softether-vpnserver-v4.39-9772-beta-2022.04.26-linux-x64-64bit.tar.gz
tar zxvf softether-vpnserver-v*.tar.gz
ls -la vpnserver/ #解凍されているか確認
@Nerahikada
Nerahikada / ple-701l_lineageos+magisk.md
Last active May 31, 2024 18:24
Huawei MediaPad T2 7.0 Pro (PLE-701L) に root 化したカスタム ROM を焼く

Huawei MediaPad T2 7.0 Pro (PLE-701L) に root 化したカスタム ROM を焼く

すでに adb, fastboot などのコマンドは使用できる前提として進める。インストール方法についてはここでは解説しない。

ブートローダーをアンロックする (難易度激高)

早速ここから障壁にぶち当たる。Huawei はブートローダーをアンロックするためのコードの提供を終了しており、公式にはブートローダーをアンロックする方法が存在せず、現在は有料ソフトに頼るしかない状況になっているらしい。
私はすでにブートローダーをアンロックしていたため、ここではその手順について記載することはできない。別の解説記事などを参照してほしい。

2022年にHUAWEIスマホにROMを焼く技術: