Skip to content

Instantly share code, notes, and snippets.

View owlwang's full-sized avatar
👨‍💻
emmmm

owlwang owlwang

👨‍💻
emmmm
View GitHub Profile
@owlwang
owlwang / StubApp.java
Created April 10, 2025 10:17 — forked from ghoulgy/StubApp.java
arm/StubApp c951e7c322530cbd470cc1ba0c103d93fcf3fd3120af53de3dae128d70adfb38
package arm;
...
public class StubApp extends Application {
public static final String MAIN_APPLICATION = "com.e4a.runtime.android.E4Aapplication";
static {
System.loadLibrary("arm_protect");
}
static void loadDex(List list, Context context) {
@owlwang
owlwang / hls.sh
Created March 14, 2025 17:21 — forked from stenuto/hls.sh
HLS ffmpeg script
#!/bin/bash
# Function to display usage information
usage() {
echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]"
exit 1
}
# Check if at least one argument (input file) is provided
if [ $# -lt 1 ]; then
@owlwang
owlwang / agent loop
Created March 10, 2025 07:32 — forked from jlia0/agent loop
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@owlwang
owlwang / decent_request.py
Created December 21, 2023 13:29 — forked from laixintao/decent_request.py
Send HTTP requests using python-requests with timeout, tcp reuse(session) and retry.
from requests.adapters import HTTPAdapter, Retry
from requests import Session
retries = Retry(
total=5, backoff_factor=1, status_forcelist=[502, 503, 504]
)
session = Session() # reuse tcp connection
session.mount("http://", HTTPAdapter(max_retries=retries))
session.mount("https://", HTTPAdapter(max_retries=retries))
@owlwang
owlwang / frida-android-tricks.js
Created June 15, 2023 11:26 — forked from zzzzfeng/frida-android-tricks.js
frida android tricks
frida -U --no-pause -l xx.js -f pkgname (or -p pid)
# PrintStack 输出当前调用堆栈
var Throwable = null;
Java.perform(function () {
Throwable = Java.use("java.lang.Throwable");
});
function PrintStack() {
var stackElements = Throwable.$new().getStackTrace();
@owlwang
owlwang / gist:52f9a931f10e46c83507164dab54581d
Created February 2, 2023 09:38 — forked from uhfx/gist:3922268
Twitter公式/非公式クライアントのコンシューマキー

Twitter公式クライアントのコンシューマキー

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPad

Consumer key: CjulERsDeqhhjSme66ECg

@owlwang
owlwang / pp_motion_interp.md
Created June 24, 2022 05:53 — forked from edjdavid/pp_motion_interp.md
PotPlayer Motion Interpolation
@owlwang
owlwang / weread.user.js
Created June 21, 2022 11:35 — forked from jianyun8023/weread.user.js
weread download,直接生成epub。仅用于技术研究。
// ==UserScript==
// @name 微信读书下载
// @namespace http://tampermonkey.net/
// @version 0.3
// @description 下载微信读书的书籍资源
// @author tang
// @match https://weread.qq.com/web/reader/*
// @grant unsafeWindow
// @grant GM_setValue
// @grant GM_getValue
@owlwang
owlwang / rank_metrics.py
Created January 7, 2022 03:01 — forked from bwhite/rank_metrics.py
Ranking Metrics
"""Information Retrieval metrics
Useful Resources:
http://www.cs.utexas.edu/~mooney/ir-course/slides/Evaluation.ppt
http://www.nii.ac.jp/TechReports/05-014E.pdf
http://www.stanford.edu/class/cs276/handouts/EvaluationNew-handout-6-per.pdf
http://hal.archives-ouvertes.fr/docs/00/72/67/60/PDF/07-busa-fekete.pdf
Learning to Rank for Information Retrieval (Tie-Yan Liu)
"""
import numpy as np
import onnx
from onnx_tf.backend import prepare
import tensorflow as tf
import onnxruntime
from PIL import Image
import numpy as np
import sys
#You need to have model.onnx and neuralhash_128x96_seed1.dat in your working directory