rc.local 注意事項,call python script, file position 如果要在 rc.local 呼叫 python scriptpython script 的位置需使用絕對路徑其 python script 裡的有關 file 的位置也需使用 絕對路徑如果要在 rc.local 呼叫建立 filefile 的位置需使用絕對路徑rc.local 位在 /etc 下rc.localtouch test #--- 沒有生效t...
shell 變數 echo $?上个命令的退出状态,或函数的返回值。ref:http://c.biancheng.net/cpp/view/2739.html转载于:https://www.cnblogs.com/youchihwang/p/11052780.html
insmod mknod insmod module會在 /proc/devices/ 下產生 major number 及 device name----------------------------mknod 會使用 /proc/devices/ 下的 major number 在 /dev 建立 節點----------------------------reference:https://w...
gcc 簡單操作 gcc -c test.c產出 test.o object filegcc -c test.c -o XXX產出 XXX object filegcc test.c -o aaa產出 aaa executable file转载于:https://www.cnblogs.com/youchihwang/p/10692040.html
c 語言 控制碼 source code#include <stdio.h>int main(){ char *test = "ABC\x41"; printf("string : %s", test); return 0;}output$ ABCAsource code 中的 "\x41",代表 ascii 碼 0x41,也就是 "A"也可寫...
Make recursive folder structure:Makefilet1/Makefilet1/t1.ct2/Makefilet2/t2.cMakefileSUBDIRS = t1 t2all: for dir in $(SUBDIRS); do \ $(MAKE) -C $$dir; \ donet1/Makefileall: t1clean: ...
Makefile 的 prequisite 執行順序 single multi thread Makefile 代碼如下:B 需要 A 的 產出,all: A BA B 是 target,case 1:single-threadmake -j1則執行的順序為 A -> BA 先產出,B 再消化。case 2:multi-threadmake -j16則執行的順序為平行 A->B->A 尚未產出 B 所需要的東西,B 就向去拿,會發生...
Makefile 變數替換 MakefileSUBDIRS = xxx aaaBUILDSUBDIRS = $(SUBDIRS:%=build-%)CLEANSUBDIRS = $(SUBDIRS:%=clean-%).PHONY: all cleanall: $(BUILDSUBDIRS)$(BUILDSUBDIRS): @echo "<===" $@ make -C $...
Makefile target dependency Makefile.....all: T1 T2T1: @echo "<===" $@T2: @echo "<===" $@.....make執行順序為 T1 -> T2=====================Makefile.....all: T2 T1T1: @echo "<===" $@T2: ...
Makefile PHONY case 1:Makefileclean: rm aenvironment_1 :There is only file a$ make cleanclean aenvironment_2 :There are two file a and clean$ make cleanmake: 'clean' is up to date.can't clean ac...
pipe 利用 pipe 做接收資料case 1Terminal_1$ mkfifo foo$ echo "1" > foo 此時會程式會 hold 住,直到 data 被取走Terminal_2$ cat < foo // 取走資料$ 1case 2Terminal_1$ mkfifo foo$ echo "1" > foo 此時會程式會 h...
isatty isatty - test whether a file descriptor refers to a terminal#include <stdio.h>#include <unistd.h>int isatty(int fd);int main(int argc, char *argv[]) { printf("isatty : %d ",...
measure time program #include <time.h>int delay(int time){ int i,j; for(i =0;i<time;i++) for(j=0;j<10000;j++) ;}int main(){ struct timespec start_1, end_1;...
source insight setting adjust source code font sizeOptions -> File Type Options -> Screen Font -> Sizeadjust distance between line and lineOptions -> Preferences -> Display -> Style -> left side...
Visual Studio Code 好用的 source code editor short cuthttps://code.visualstudio.com/shortcuts/keyboard-shortcuts-linux.pdfgo to definition :F12go back :ctrl alt -go forward :ctrl shift -Find All References (need extension C++ Intell...
screenshoter 連續截圖工具 https://pcrookie.com/?p=993顯示 mouse 設定Settings -> Saving -> Display mouse cursor转载于:https://www.cnblogs.com/youchihwang/p/9787590.html
trickle charging current is 0A ? Recently, I test trickle charging current of the smart phone.It's 0A.??????????????????????yes, it's 0A.Scared me.I read some releated pmic spec.The trickle charging mode is fully controlle...
grep and regular expression --- ^ . * "^" : Start of Line anchor"." : Matches any single character except the newline character."*" : Matches the preceding character 0 or more times.Application_1test fileif_0 // no white ...
objdump objdump -h test (show section headers)test.c#include <stdio.h>int main(){ static int xxxxxxxxxxxxxxxxxxxxxxxxxx; static int aaaaaaaaaaaaaaaaaaaaaaaaaa; printf...