a
1.adb logcat *:E > D:\log.txt //E及以上级别Log,并输出至指定文件夹
2.adb logcat > D:\log.txt //直接输出所有Log到指定文件夹
把文件添加到版本库中,使用命令 git add .添加到暂存区里面去,不要忘记后面的小数点“.”,意为添加文件夹下的所有文件
git add .
adb截屏方法
adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png C:\ttl
linux截取视频文件
dd if=J21-fri_20150410_080000.ts of=hhh.ts bs=2040000 count=1000 skip=13100
dd if=BS15-sun_20150412_080000.ts of=BS15-sun_20150412_080000_short_20220721.ts bs=2040000 count=500 skip=12360
dd if=201907271100.trp of=201907271100_short_2022072012700.trp bs=2040000 count=500 skip=12400
下载tv.db文件流程
adb connect 10.10.101.50:5555
adb root
adb pull /data/data/com.android.providers.tv/databases/tv.db C:\Users\Administrator\Desktop
正则表达式查正整数:([1-9]){1}[0-9]?|0{1}
正则表达式查数字:[0-9]或[0-9]{0,1}\d
git回退代码命令
1、git log
\查看commit版本号(git网页上看也行)
2、git reset --hard 回退到的版本号
\回退的版本
3、git push -f origin 回退的分支名
\提交本次回退
关闭windows休眠命令(清理C盘休眠死角文件):powercfg -h off
恢复休眠功能(管理员运行cmd):powercfg -h on
而如果我们想只克隆某个指定分支的最近一次commit,可以使用下面命令
git clone --depth 1 --branch english https://github.com/labuladong/fucking-algorithm.git
option+command+w,即可关闭所有Finder窗口

浙公网安备 33010602011771号