Skip to content

Instantly share code, notes, and snippets.

View hhhaiai's full-sized avatar
🎯
Focusing

hhhaiai hhhaiai

🎯
Focusing
View GitHub Profile
@hhhaiai
hhhaiai / MagiskSupport.md
Created January 13, 2023 01:58 — forked from assiless/MagiskSupport.md
MagiskOnRedroid
setup variables for commands
echo -e "\n
export image=redroid/redroid:11.0.0-amd64
export image_tar=${HOME}/redroid:11.0.0-amd64" >> ${HOME}/.bashrc
source ${HOME}/.bashrc
@hhhaiai
hhhaiai / install_grpc.md
Last active December 26, 2022 07:21
Install gRPC++ on Ubuntu20.04

Solved step

# install dependencies,it's easy here
sudo apt install -y cmake
# install basic tools
sudo apt install -y build-essential autoconf libtool pkg-config

# clone from github and install it,I installed v1.51.1 here
git clone --recurse-submodules -b v1.51.1 https://github.com/grpc/grpc
cd grpc
@hhhaiai
hhhaiai / install_grpc.md
Created December 26, 2022 07:20
Install gRPC++ on Ubuntu20.04

Solved step

# install dependencies,it's easy here
sudo apt install -y cmake
# install basic tools
sudo apt install -y build-essential autoconf libtool pkg-config

# clone from github and install it,I installed v1.34.1 here
git clone --recurse-submodules -b v1.34.1 https://github.com/grpc/grpc
cd grpc
@hhhaiai
hhhaiai / config.json
Created December 21, 2022 05:58 — forked from wd/config.json
路由器梅林固件上面使用 v2ray 的方案
{
"log": {
"loglevel": "none"
},
"inbound": {
"port": 23456,
"listen": "127.0.0.1",
"protocol": "socks",
"settings": {
"udp": true
@hhhaiai
hhhaiai / git-config-http-version.md
Created November 9, 2022 10:21 — forked from daopk/git-config-http-version.md
Fix error : RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
git config --global http.version HTTP/1.1
git config --global http.postBuffer 157286400
@hhhaiai
hhhaiai / (Android)UDPReceiverNetwork.kt
Created June 28, 2022 02:22 — forked from gtf35/(Android)UDPReceiverNetwork.kt
通过 UDP 广播局域网自动发现 Android 客户端 IP / Auto find android device ip by UDP broadcast
// Receive desptop`s udp broadcast package on Android, let Android app known desktop device`s ip
package top.gtf35.nekosdk.network
import kotlinx.coroutines.*
import top.gtf35.nekosdk.utils.LogUtil
import java.io.BufferedReader
import java.io.InputStreamReader
import java.net.DatagramPacket
import java.net.DatagramSocket
import java.net.InetAddress
@hhhaiai
hhhaiai / daemon.sh
Created May 10, 2022 14:58 — forked from SeeFlowerX/daemon.sh
用来保活APP和注入frida js对外提供http服务的脚本
#! /bin/sh
#进程名字可修改
#脚本逻辑 -> 存在端口 pass 不存在则检查小红书在不在 在就注入 否则-f启动或者点击方式启动 然后循环
#用frida加载androidAsync.dex在APP跑了个http服务对外提供接口,PORT是http服务监听的端口,用的是frida-inject注入js
#如果是frida-server那么可以改为用ps判断frida-server在不在
#启动命令 sh -T- data/local/tmp/daemon.sh
PORT=45459
CURRENT_WINDOW_COUNT=0
PRO_NAME=com.xingin.xhs
@hhhaiai
hhhaiai / gpp.shell
Last active February 18, 2022 14:18
git commit
gpp() {
if [ -z "$(git status --porcelain)" ]
then
echo "============================nothing to update.==============================="
else
git add .
if [ -z "$1" ] ;then
git commit -am "update sth. at $(date '+%Y-%m-%d %H:%M:%S')"
else
git commit -am "$1. at $(date '+%Y-%m-%d %H:%M:%S')"
@hhhaiai
hhhaiai / License Sublime Text 3.2.2.md
Created November 10, 2021 06:42 — forked from nobojithalder/License Sublime Text 3.2.2.md
License for Sublime Text Version 3.2.2, Build 3211

If anyone's looking for a solution for licensing Sublime Text!

Here goes an easy tutorial on how to register, Sublime Text Version 3.2.2, Build 3211

  • Go to https://hexed.it/
  • Click on "Open file" and select "sublime_text.exe" executable file. [This 'sublime_text.exe' file should be located at C:\Program Files\Sublime Text 3]
  • Go to "Search" and in "Search for" field, search for "97 94 0D" and click "Search now" button.
  • One result will appear below, click on it.
@hhhaiai
hhhaiai / art_10.0_cdex_converter.patch
Created September 3, 2021 06:23 — forked from anestisb/art_10.0_cdex_converter.patch
Cdex to Dex converter utility using AOSP ART libdexlayout
diff --git a/dexlayout/Android.bp b/dexlayout/Android.bp
index 838510be37..34186d85d7 100644
--- a/dexlayout/Android.bp
+++ b/dexlayout/Android.bp
@@ -132,6 +132,30 @@ cc_defaults {
],
}
+cc_defaults {
+ name: "compact_dex_converter_defaults",