简述(草稿文章)
各种指令、远程库的高级用法:bat,git,linux,adb、maven,gradle(更新中...)
命令行操作
bat脚本
:: mpg转mp4,批量
for %a in ("*.mpg") do ffmpeg -i "%a" "%~na.mp4"
linux
# sed预览替换结果、替换文件中的文本
sed -n 's|services\.gradle\.org/distributions|mirrors\.cloud\.tencent\.com/gradle|p' gradle/wrapper/gradle-wrapper.properties
sed -i 's|services\.gradle\.org/distributions|mirrors\.cloud\.tencent\.com/gradle|' gradle/wrapper/gradle-wrapper.properties
安卓手机,分区、格式化
# 格式化sda30为ext4
mke2fs -t ext4 /dev/block/sda30
parted 双系统
1.找到userdata,这里是30
2.删除、建立分区:
rm 30
rm 31
mkpart userdata ext4 18.4g 48.4g
mkpart userdate ext4 48.4g 126g
3.重进rec
mke2fs -t ext4 /dev/block/sda30
mke2fs -t ext4 /dev/block/sda31
4.进主系统,/vendor/etc/fstab.flashlmdd。userdata改成userdate,重启就好了(要刷id补丁的包要重新刷下id)
项目编译指令
gradle
./gradlew build
./gradlew clean
./gradlew cleanBuildCache
./gradlew assembleDebug
./gradlew assembleRelease --stacktrace
./gradlew :app:dependencies
./gradlew :app:publishReleaseBundle
./gradlew tasks
./gradlew dependencyUpdates
./gradlew wrapper --gradle-version 8.3
./gradlew --version
远程库优化
1.tachiyomi插件加速
gitcode可以,github太慢,gitee显示:内容中可能包含违规信息。
https://raw.gitcode.com/hisrDT/apk/raw/repo_plugs/tachiyomi/index.min.json
https://gitee.com/hisr/apk/raw/repo_plugs/tachiyomi/index.min.json
https://raw.githubusercontent.com/keiyoushi/extensions/repo/index.min.json
2.远程库
https://mvnrepository.com/artifact/uy.kohesive.injekt/injekt-core/1.16.1
https://repo1.maven.org/maven2/
https://repo1.maven.org/maven2/uy/kohesive/injekt/injekt-core/1.16.1/injekt-core-1.16.1.jar
https://repo.maven.apache.org/maven2/
3.gradle
https://mirrors.cloud.tencent.com/gradle/
https://mirrors.aliyun.com/macports/distfiles/gradle/
4.gradle plugins
https://plugins.gradle.org/m2/org/jetbrains/kotlin/
https://maven.aliyun.com/repository/gradle-plugin
5.build-tools
https://www.androiddevtools.cn/index.html
https://dl-ssl.google.com/android/repository/build-tools_${pkgver}-linux.zip 没有手机上的aarch64
https://dl-ssl.google.com/android/repository/build-tools_30.0.3-linux.zip
https://aur.archlinux.org/packages?O=0&SeB=nd&K=android-sdk&outdated=&SB=p&SO=d&PP=50&submit=Go
https://aur.archlinux.org/android-sdk-build-tools.git
https://developer.android.google.cn/tools/releases/platforms?hl=zh-cn
hexo管理blog
https://gitee.com/llkCharles/hexo-theme-yilia.git
https://gitee.com/crab-in-the-northeast/hexo-theme-yilia-plus.git
git clone https://github.com/litten/hexo-theme-yilia.git themes/yilia
git clone https://gitee.com/llkCharles/hexo-theme-yilia.git themes/yilia
npm install -g hexo-cli -verbose
npm install hexo-deployer-git --save
npm i hexo-generator-json-content --save
https://gitee.com/JiaoJinxin/hexo-starter.git