Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="actionbar_button_up_description">Back</string>
<string name="afternoon">Afternoon</string>
<string name="ai_assistant">AI Call Assistant</string>
<string name="ai_assistant_not_installed">Install AI Call Assistant first</string>
<string name="ai_dial">AI call</string>
<string name="ai_mode_auto">Auto</string>
<string name="ai_mode_manual">Manually</string>
<string name="ai_mode_subtitles">Subtitles</string>
@AndroPlus-org
AndroPlus-org / google-lang.user.js
Last active February 15, 2024 13:52
Google検索に日本語のみ、英語のみ表示するボタンを追加するユーザースクリプト
// ==UserScript==
// @name Google検索 日本語のみ・英語のみボタン
// @namespace http://0-oo.net/
// @description Google検索に「日本語のみ」「英語のみ」ボタンを追加する
// @homepage http://0-oo.net/log/category/greasemonkey/
// @version 1.1
// @include http*://www.google.tld/search*
// @include http*://www.google.tld/webhp*
// @include http*://www.google.tld/#*
// @include http*://www.google.tld/
@AndroPlus-org
AndroPlus-org / gist:8621dad2feda14b5ecc205a6a71318f4
Last active December 3, 2023 05:28
vivo frame interpolation
1. パッケージ名でPIDを探す
gpid=`pidof -s com.miHoYo.GenshinImpact`
2. フレーム補間をPID指定で有効化
vivo X100の場合45FPSを90FPSにフレーム補間
settings put system gamecube_frame_interpolation 1:3:$gpid:45:90
iQOO 12の場合48FPSを144FPSにフレーム補間
settings put system gamecube_frame_interpolation 1:3:$gpid:48:144
@AndroPlus-org
AndroPlus-org / rakuten-userstyle
Created July 11, 2023 11:30
楽天アフィリエイト管理画面のトップバナーとお知らせを2列にする
.raf-slider{
width: 50%;
float: left;
}
#app > main > section:nth-child(2){
overflow-y: scroll;
height: 300px;
}
#app > main > section:nth-child(3){
padding-top: 1rem;
@AndroPlus-org
AndroPlus-org / functions.php
Created May 19, 2023 02:36
Twitter API v2 WordPress 投稿時に自動ツイート
https://github.com/fsyhrnl/twifer
composer require ferrysyahrinal/twifer
でテーマフォルダにインストールしておく
<?php
require_once STYLESHEETPATH . '/vendor/autoload.php';
use Twifer\API;
function tweetv2($new_status, $old_status, $post){
./realme-ota -d ./out.txt -r [0] [1] [2] [3] [4]
例:
./realme-ota -d ./out.txt -r 1 PGP110 PGP110_11.A.12_0120_202210111756 3 10010111
[0]
リージョン
グローバル = 0, CN = 1, IN = 2, EU = 3
[1]
@AndroPlus-org
AndroPlus-org / ExpLockHelper.java
Created February 11, 2023 02:31
oplus-telephony-common
package com.oplus.internal.telephony.explock.util;
import android.text.TextUtils;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
/* loaded from: classes.dex */
public class ExpLockHelper {
private static int TYPE_REGIONNET_LOCK = 0;
public static boolean matchUnLock(String imei, String password, int type) {
@AndroPlus-org
AndroPlus-org / unpack-erofs.sh
Created July 9, 2022 12:14
Unpack / extract data from EROFS image (It needs CONFIG_EROFS_FS=y kernel)
#!/bin/bash
mkdir -p data mountpoint
dir_path=`pwd`
dirs=`find ${dir_path}/* -maxdepth 0 -size +1c -type f -name "*.img"`
for dir in $dirs;
do
file=`basename $dir`
# Check if the port works. Error will be outputed if it didn't work
./EfsTools.exe efsInfo
# Reset mcfg_autoselect_by_uim (please create empty file named mcfg_autoselect_by_uim file)
./EfsTools.exe writeFile -i mcfg_autoselect_by_uim -o /nv/item_files/mcfg/mcfg_autoselect_by_uim
# Flash mbn
./EfsTools.exe uploadDirectory -i mcfg_sw.mbn -o / -v
@AndroPlus-org
AndroPlus-org / modem-backup
Created June 30, 2021 23:36
modem-backup
su
cd /dev/block/bootdevice/by-name/
for file in *; do
if [[ "${file}" == "modem" || "${file}" == "modemst1" || "${file}" == "modemst2" || "${file}" == "fsg" ]]; then dd if=/dev/block/bootdevice/by-name/"${file}" of=/sdcard/"${file}".img ; else continue ; fi
done