原创 Ubuntu apt source change

lake@Ubuntu:~$ sudo vi  /etc/apt/sources.list   1,$s/security.ubuntu/mirrors.aliyun/g   :1,$s/archive.ubuntu/mirrors.al

原创 busybox/arm/docker image run on X86 through qemu-static/user mode

lake@localhost:~$ ~/usr/bin/qemu-arm -version qemu-arm version 4.2.0 Copyright (c) 2003-2019 Fabrice Bellard and the Q

原创 find/linux/shell OR/AND

$find . -name "*.c"  -o  -name  "*.cpp" ./library/Mapping.c ./library/Communicator.cpp   Arg:   -a -and - opera

原创 docker login file ~/.docker/config.json

Note   1. Avoid docker login,  you can copy ~/.docker/config.json from other machine to avoid login fail!! 2.  "auth":

原创 Python/pip/docker-compose install on Debian8/ARMhf/32bit (docker version 18.06.3-ce)

Python/pip/docker-compose 1. apt install  python-pip    2.yum  -y install python-pip   3. get-pip.py curl https://boot

原创 Read text file/loop for each line/ Linux shell

Example 1 : #!/bin/bash while read line do     echo $line done < yourfileinputpath.txt     Example 2: #!/bin/bash for l

原创 Linux/shell/sort

cat ~/tmp/output.txt unitStatus   23 2 isoMode   99 5 isoModeConfig   3 1 occupied   17 4 minValue   104 3 maxValue   7

原创 git branch local/remote set/unset

git fetch <remote> <sourceBranch>:<destinationBranch> git branch --set-upstream Example:  git branch --set-upstream-t

原创 git search files

### find all *.pyc files in all commits   git log --all --name-only --pretty=oneline    *.pyc ### find all *.jpg files

原创 docker-compose start ==>pull and start multiply container from docker-compose.yml(edgex-objectbox)

### Env  Administrator@Win10 MINGW64 /c/work/T3/edgex-x86-4bit/windows-docker-compose-lake-test $ docker  version Clien

原创 aosp/ota/incremental update package/安卓 7aosp代碼增量升級包

make otapackage out/target/product/aosp/aosp-ota-eng.lake.zip  ===>  full  update , NOT used for incremental package Ba

原创 git gc/clean/pack

rm -Rf .git/refs/original git reflog expire --expire=now --all  git gc  --prune=now   --aggressive      --force

原创 Kernel debug printk

$ cat /proc/sys/kernel/printk 7 4 1 7 current default minimum boot-time-default The first integer

原创 Android/Kernel TP Debug Sleep-suspend/Wakeup

 Android/TP/debug  130|peony:/ # getevent  -l add device 1: /dev/input/event1   name:     "qpnp_pon" could not get driv

原创 Android-adb-setting

Refer to https://developer.android.com/reference/android/provider/Settings.Global 1. ### default  timeout of PowerManag