摘要: timeout 120s repo sync : repo sync 命令120s内没有执行完成就会报错. 上面的repo 是linux本地实际存在的文件.可以使用timeout 来做超时处理. 当需要对linux shell 函数进行超时处理需要使用如下格式: function download_ 阅读全文
posted @ 2024-03-27 19:00 黑山老猫 阅读(69) 评论(0) 推荐(0)
摘要: 参考: https://www.cnblogs.com/pengdonglin137/p/17115545.html https://blog.csdn.net/haleycomet/article/details/52931354 https://www.cnblogs.com/pipci/p/1 阅读全文
posted @ 2024-03-27 15:53 黑山老猫 阅读(51) 评论(0) 推荐(1)
摘要: find ./ ! -path './build_files*' ! -path './frameworks*' ! -path './.git*' -type f 阅读全文
posted @ 2024-03-11 10:24 黑山老猫 阅读(26) 评论(0) 推荐(1)
摘要: 转载自: https://www.cnblogs.com/zhaoqingqing/p/4620402.html 阅读全文
posted @ 2023-06-12 16:39 黑山老猫 阅读(19) 评论(0) 推荐(0)
摘要: 第十章 MyService.java 代码如下: 主要的目的是在Activity中可以操作Service ...public class MyService extends Service { private static final String TAG = "MyService"; public 阅读全文
posted @ 2023-03-14 14:02 黑山老猫 阅读(38) 评论(0) 推荐(0)
摘要: 第七章 Uri 实例如下 content://com.android.contacts/data/phonescontent://com.example.app.provider/table1 查询Query 方法参数解析: Cursor cursor = getContentResolver(). 阅读全文
posted @ 2023-03-13 11:12 黑山老猫 阅读(36) 评论(0) 推荐(0)
摘要: makefile shell函数输出会影响makefile 所以要么不让shell函数内部命令输出(PS 重定向没用) 要么用变量来接shell函数的输出 例如: TEMP:=$(shell echo abc) 阅读全文
posted @ 2022-10-10 10:49 黑山老猫 阅读(37) 评论(0) 推荐(0)
摘要: 参考: https://product.pconline.com.cn/itbk/top/1352/13524364.html 截图: 下载 https://www.snipaste.com/ ,可以自定义快捷键 录屏: 1、Xbox录屏是win10系统上自带的一个软件,其内置了录屏的功能,您可以使 阅读全文
posted @ 2022-07-14 11:38 黑山老猫 阅读(16) 评论(0) 推荐(0)
摘要: 1. 直接在 添加Library 指定Py文件正常工作. 这种方法添加的py内的方法可以再 F5 中查询到. 2. 在python site-packages 目录下新建一个目录 NewLibrary 先新建一个类文件 叫yourclass.py内容如下 class YourClass(object 阅读全文
posted @ 2022-01-25 18:51 黑山老猫 阅读(513) 评论(0) 推荐(0)
摘要: sed -n 's#/[^/]*$##g'p 阅读全文
posted @ 2021-11-23 12:22 黑山老猫 阅读(315) 评论(0) 推荐(0)