摘要: 1. vscode install gnu global extensions 2. gnu global install download the latest source code archive https://ftp.gnu.org/pub/gnu/global/ decompress . 阅读全文
posted @ 2020-04-07 10:38 wangchangruei 阅读(2363) 评论(0) 推荐(1) 编辑
摘要: Please download busybox from https://www.busybox.net/downloads/binaries 阅读全文
posted @ 2020-03-16 14:53 wangchangruei 阅读(200) 评论(0) 推荐(0) 编辑
摘要: cherry pick 一個 gerrit number 到 local, 修改完後, 再 push 到同一個 gerrit number cd the git project you want to modify repo start xxx cherry pick modify git add 阅读全文
posted @ 2020-02-26 16:19 wangchangruei 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 若在 dmesg 發現下面的 selinux 的 log, 代表 scontext 裡的 bbbbbb 缺少了對 tclass=file 類型的 cccccc 文件的 開啟,讀取權限, 需要在相應的 te 裡加入權限 mtype=1400 audit(1582687499.739:364)^[[0m 阅读全文
posted @ 2020-02-26 15:39 wangchangruei 阅读(118) 评论(0) 推荐(0) 编辑
摘要: Coding style case 1 從上面兩個 判斷式來看, 下面的 可讀性 比較高, 有沒有類似 0x20 <= a <= 0xea 阅读全文
posted @ 2020-02-24 20:16 wangchangruei 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 如果要在 rc.local 呼叫 python script python script 的位置需使用絕對路徑 其 python script 裡的有關 file 的位置也需使用 絕對路徑 如果要在 rc.local 呼叫建立 file file 的位置需使用絕對路徑 rc.local 位在 /et 阅读全文
posted @ 2019-07-17 17:17 wangchangruei 阅读(585) 评论(0) 推荐(0) 编辑
摘要: insmod module 會在 /proc/devices/ 下產生 major number 及 device name mknod 會使用 /proc/devices/ 下的 major number 在 /dev 建立 節點 reference: https://www.cnblogs.co 阅读全文
posted @ 2019-07-16 17:13 wangchangruei 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 上个命令的退出状态,或函数的返回值。 ref: http://c.biancheng.net/cpp/view/2739.html 阅读全文
posted @ 2019-06-26 15:46 wangchangruei 阅读(143) 评论(0) 推荐(0) 编辑
摘要: gcc c test.c 產出 test.o object file gcc c test.c o XXX 產出 XXX object file gcc test.c o aaa 產出 aaa executable file 阅读全文
posted @ 2019-04-11 20:00 wangchangruei 阅读(171) 评论(0) 推荐(0) 编辑
摘要: source code output source code 中的 "\x41", 代表 ascii 碼 0x41,也就是 "A" 也可寫 控制碼 \x1,也就是 SOH 阅读全文
posted @ 2019-03-27 18:56 wangchangruei 阅读(223) 评论(0) 推荐(0) 编辑