Autonomous Machines & Society.

2022-11-08
Remove Bad/Large Files From Git Repo History

remove sensitive data from github

use bfg repo cleaner, avaliable in brew, downloadable as a jar.

git-filter-repo

other tools either perform poorly or have complex syntax. may not work as expected!

cheat sheet for converting bfg commands into git filter-repo

Read More

2022-11-08
百度贴吧App接口

百度贴吧移动端app接口分为:

首页

大家都在搜

热搜榜 热吧榜 游戏榜(手游 端游 主机)

关注 推荐

热榜 (贴吧话题榜,热帖榜(总榜,视频,长更,游戏,数码)

直播 (我的关注,排行榜,讨论区,个人中心,我要直播,推荐,颜值)

视频

进吧

关注的吧 吧广场 最近逛的吧

频道

游戏 数码 娱乐 影视 动漫 体育 小说 同城

消息

@我的 点赞 回复 粉丝

我的

关注 粉丝 吧

我的帖子 大神认证 创作学院 热门活动

我的收藏 浏览历史 直播 话题(贴吧话题榜)

Read More

2022-11-08
Hot Reloading, Exception Capture

code refactoring tools

hot reloading and exception capture tools

reloading Change Python code while it’s running without losing state

jurigged Hot reloading for Python

DebugPy can capture every exception at the time it is raised and preserve state (but cannot instruct the frame to continue execution without exception), no matter it is wrapped around some ‘try-except’ or not.

Reloadium requires breakpoints to reload scripts. However, breakpoints can be generated/inferenced and removed at runtime. Currently it only works with pydevd inside pycharm. Reloadium supports line-wise profiling.

Debug Adapter Protocol

DAP client in neovim

DAP client in python

Official DAP client reference

pydevd_reload An enhanced hot reload module from PyDev

Read More

2022-11-07
React Native

The key is to see immediate response directly after changes

React Native is a tool helping to build cross-platform mobile/desktop apps.

NativeScript is something alike.

Kivy Roboto

Read More

2022-11-05
国信Iquant平台分析

iquant基于迅投qmt平台开发 不支持极简模式 即使是极简模式也需要识别输入验证码 在Windows平台上运行 支持python36-38

xtquant github repo

国金qmt下载地址 官网貌似找不到了所以放这里 安装文档 开户

量化交易笔记

最新国内外量化平台汇总 包含数据来源 支持实盘的券商

qmt mini使用

国盛证券qmt mini模式 xtquant qmt客户端下载

迅投qmt微信专栏合集

Read More

2022-11-04
Mixing Different Version Of Python Libraries And Pass Environment Variables Beforehand

command of mpython3

1
2
env JAVA_HOME=/opt/homebrew/Cellar/openjdk/18.0.2 PYTHONPATH=$(python3 -c "import sys; print(':'.join(sys.path))"):/opt/homebrew/lib/python3.10/site-packages python3 $@

Read More

2022-11-04
Register A New File In Android Gallery Using Beanshell Code

register new file to android gallery

code in beanshell:

1
2
3
4
5
6
import android.net.Uri;
Intent mediaScanIntent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);
Uri contentUri = Uri.parse("file:///storage/emulated/0/Movies/output0_higher.mp4");
mediaScanIntent.setData(contentUri);
ctx.sendBroadcast(mediaScanIntent);

Read More

2022-11-04
Bilibili直播Api 直播工具 自动直播 自动推流

Read More

2022-11-04
Android Packet Capture

disable ssl pinning

use frida scripts specific to applications

justtrustme xposed

sslunpinning xposed

apk-mitm by repacking apk and resigning

capture, packet routing

recommend to use: PCAPdroid-API

PCAPdroid API reference

1
2
adb shell am start -e action start -e pcap_dump_mode udp_exporter -e collector_ip_address 127.0.0.1 -e collector_port 5123 -e app_filter com.tencent.mobileqq -n com.emanuelef.remote_capture.debug/com.emanuelef.remote_capture.activities.CaptureCtrl

setting up http proxy via adb:

1
2
3
# this does not ensure that the target app is captured.
adb shell settings put global http_proxy <address>:<port>

Read More

2022-11-04
Adb Wifi Always On

adb over wifi always on

warning: could be dangerous cause adb remote connections seem without any password. consider protect that with some proxy.

turning on:

1
2
3
4
setprop service.adb.tcp.port 5555
stop adbd
start adbd

turning off:

1
2
3
4
setprop service.adb.tcp.port -1
stop adbd
start adbd

set things under /data/adb/services.d/ and make them executable

1
2
3
mount -o remount,rw /
# then you can modify /sytem/etc/init.d, but not /system/bin cause it is a copy of /data/system/bin. you should create script there.

create this under /system/etc/init.d/

1
2
3
4
5
6
7
service adb_wifi_enable /system/bin/adb_wifi_enable.sh
disabled
oneshot
seclabel u:r:magisk:s0
on property:sys.boot_completed=1
start adb_wifi_enable

Read More