~/.vimrc
set encoding=utf-8
set fileencodings=utf-8,ucs-bom,big5,cp950,latin1
set termencoding=utf-8
set fencs=utf-8,big5 EOF
~/.vimrc
set encoding=utf-8
set fileencodings=utf-8,ucs-bom,big5,cp950,latin1
set termencoding=utf-8
set fencs=utf-8,big5 EOF
apt-get install -y poppler-utils # 提供 pdftotext 指令
pdftotext -layout docs/arch.pdf docs/arch_pdf.txt
EXCEL to text
apt-get install -y csvkit # 提供 in2csv 指令
in2csv docs/spec.xlsx > docs/spec_excel.csv
BR2_PACKAGE_ICU [=y]
BR2_PACKAGE_JPEG [=y]
BR2_PACKAGE_LIBEPOXY [=n]
BR2_PACKAGE_LIBGCRYPT [=n] &&
BR2_PACKAGE_HAS_LIBGLES [=n]
BR2_PACKAGE_HAS_LIBEGL [=n]
BR2_PACKAGE_HAS_LIBEGL_WAYLAND [=n]
BR2_PACKAGE_LIBTASN1 [=n]
BR2_PACKAGE_LIBXSLT [=n]
BR2_PACKAGE_OPENJPEG [=n]
BR2_PACKAGE_WAYLAND [=y]
BR2_PACKAGE_WEBP [=n]
BR2_PACKAGE_WEBP_DEMUX [=n]
BR2_PACKAGE_WPEBACKEND_FDO [=n]
libsigsegv
output/build/host-m4-1.4.18/lib/c-stack.c
#ifndef SIGSTKSZ
package/fakeroot/fakeroot.hashsha256 959496928c8a676ec8377f665ff6a19a707bfad693325f9cc4a4126642f53224 fakeroot_1.37.1.2.orig.tar.gzmake host-libglib2 host-fakeroot--------------------toolchain[*] Enable C++ support │ │Build options ─────libraries (shared only) --->
valgrind: failed to start tool 'massif' for platform 'arm64-linux': No such file or directory
export VALGRIND_LIB=/out/libexec/valgrind
v.sh
/mnt/sd/v/out/bin/valgrind \
--tool=massif \
--massif-out-file=/mnt/sd/v/massif_ls.out \
--time-unit=B \
--heap=yes \
--max-snapshots=500 \
vendor_3a_sample;
OUTFILE="$1"
echo "Snapshot Total Useful Extra"
awk '
/^snapshot=/ { snap=$0 }
/^mem_heap_B=/ { heap=substr($0, index($0,"=")+1) }
/^mem_heap_extra_B=/ { extra=substr($0, index($0,"=")+1)
total=heap+extra
print snap, total, heap, extra
}
' "$OUTFILE"
~
eval .gitlab-ci.yml
TARGET_STAGE=daily gitlab-ci-local --variable TARGET_STAGE=daily
gitlab-ci-local
/etc/snmp/snmpd.conf
rocommunity public
agentAddress udp:161
pass .1.3.6.1.4.1.55554 /bin/bash /snmp.sh
Agent
/usr/sbin/snmpd -V -f -Lo -C -c /etc/snmp/snmpd.conf -Dpass,persist,mib_modules
https://anzal.hashnode.dev/a-beginners-guide-to-rtsp-streaming-with-websockets-using-nodejs-and-ffmpeg
https://blog.csdn.net/weixin_45631738/article/details/129541098?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-1-129541098-blog-124682490.235^v43^pc_blog_bottom_relevance_base8&spm=1001.2101.3001.4242.2&utm_relevant_index=4
https://www.cnblogs.com/osbreak/p/17823102.html
#include <iostream>
#include <event2/event.h> #include <signal.h> using namespace std; void timer(int sockfd, short what, void* arg) { cout << "[timer2]" << endl; } int main(int argc, char* argv[]) { event_base* base = event_base_new(); // 持久事件 event *ev = event_new(base,-1,EV_PERSIST,timer,0); //超时优化性能优化,默认event 用二叉堆存储(完全二叉树) 插入删除O(logn) //优化到双向队列 插入删除O(1) static timeval tv_in = {3,0}; const timeval *t; t = event_base_init_common_timeout(base,&tv_in); event_add(ev3,t3); // 性能优化:插入性能 O(1) // 进入事件主循环 event_base_dispatch(base); event_base_free(base); return 0; }
Ref: https://albert-oma.blogspot.com/
check libraries dependence:
$ arm-linux-gnueabihf-readelf -d ./gst-launch-1.0
Linux内存管理之vmap与vmalloc 圖文並茂 , 針對vmap_area
mmap system call 後, 進kernel 的流程 gitmind 自畫
https://elixir.free-electrons.com/linux/v5.10.230/source/mm/util.c 方便追code, 含各版本
https://blog.csdn.net/m0_65465945/article/details/134202945
1.执行 ssh-keygen -t rsa -C "你的git注册邮箱",在 .ssh 目录下会生成以下3个文件:
(1)id_rsa, (2)id_rsa.pub, (3)known_hosts
2.在浏览器登录github,在Settings界面点击左边的 SSH and GPG keys,然后复制 id_rsa.pub 文件的内容到SSH keys,点击Add SSH key即可。
3. 执行 ssh -T git@github.com,就能看到成功了。
https://chipersonalbranding.blogspot.com/2017/09/english-skills.html
https://chipersonalbranding.blogspot.com/2018/04/english-skills.html
https://www.cnblogs.com/WindSun/p/11441234.html
https://hackmd.io/@sysprog/concurrency-atomics#wait-free-amp-lock-free