Skip to content

Instantly share code, notes, and snippets.

View hhhaiai's full-sized avatar
♣️
Focusing

hhhaiai hhhaiai

♣️
Focusing
View GitHub Profile
@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",
@hhhaiai
hhhaiai / SystemPropertiesCompat.java
Created June 4, 2021 10:24 — forked from tiann/SystemPropertiesCompat.java
SystemProperties compat class
package com.qihoo360.mobilesafe.smsclean.utils;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
/**
* SystemProperties 兼容类
* 请不要使用隐藏的SystemProperties API
* <p/>
* 这样使得编译变得麻烦, 也没有必要
@hhhaiai
hhhaiai / keras_bottleneck_multiclass.py
Created April 13, 2021 05:52 — forked from Thimira/keras_bottleneck_multiclass.py
Learn how to build a multi-class image classification system using bottleneck features from a pre-trained model in Keras to achieve transfer learning. Tutorial: https://www.codesofinterest.com/2017/08/bottleneck-features-multi-class-classification-keras.html
'''
Using Bottleneck Features for Multi-Class Classification in Keras
We use this technique to build powerful (high accuracy without overfitting) Image Classification systems with small
amount of training data.
The full tutorial to get this code working can be found at the "Codes of Interest" Blog at the following link,
https://www.codesofinterest.com/2017/08/bottleneck-features-multi-class-classification-keras.html
Please go through the tutorial before attempting to run this code, as it explains how to setup your training data.
This file has been truncated, but you can view the full file.
--------- beginning of main
12-05 22:31:52.891 1206 1826 D libsensor-B2SNotifier: Backlight2SlpiNotifier brightness = 198
12-05 22:31:52.891 819 3314 D FOD : updateHBMOverlayTarget brightness=198, mSupportMulExpo=0
12-05 22:31:52.891 819 3314 D FOD : getHBMOverlayAlpha=0.703112 mBrightnessBackup=198, mTargetBrightness=1 mode = 2
12-05 22:31:52.891 819 3314 D SurfaceFlinger: enter
12-05 22:31:52.891 819 3314 D SurfaceFlinger: successfully write 179 into /sys/class/drm/card0-DSI-1/dim_alpha
12-05 22:31:52.891 819 3314 D FOD : brightness=198; alpha=0.000000; mSupportMulExpo=0
12-05 22:31:53.017 1206 1826 D libsensor-B2SNotifier: Backlight2SlpiNotifier brightness = 197
12-05 22:31:53.017 819 3314 D FOD : updateHBMOverlayTarget brightness=197, mSupportMulExpo=0
12-05 22:31:53.017 819 3314 D FOD : getHBMOverlayAlpha=0.703795 mBrightnessBackup=197, mTargetBrightness=1 mode = 2
@hhhaiai
hhhaiai / gist:4f29319b0111af193b624ea3e285f3ad
Last active April 12, 2021 12:41 — forked from xrman/gist:4468f545b169969466bceb694d742dad
FastStone Capture Full Serial Key
Registration Code
Name : www.xyraclius.com
Serial : OOCRYIMDMDPWRETFPSUZ
FSCapture

解决 Git 在 windows 下中文乱码的问题

原因

中文乱码的根源在于 windows 基于一些历史原因无法全面支持 utf-8 编码格式,并且也无法通过有效手段令其全面支持。

解决方案

  1. 安装
@hhhaiai
hhhaiai / AidlService.java
Created April 3, 2021 13:41 — forked from oasisfeng/AidlService.java
Service framework for friendly and efficient AIDL service binding in Android app.
package com.oasisfeng.android.service;
import android.annotation.SuppressLint;
import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.support.annotation.Nullable;
import android.util.Log;