2022年12月22日

linux shell spp2tc CRC计算

摘要: https://www.lammertbies.nl/comm/info/crc-calculation https://github.com/lammertb/libcrc #echo "$#" #echo "$@" #echo "$0" #echo "$1" #echo "$2" curpath 阅读全文

posted @ 2022-12-22 07:38 yanhc 阅读(82) 评论(0) 推荐(0) 编辑

2022年12月9日

linux shell

摘要: frrinit.sh if [ -r "/lib/lsb/init-functions" ]; then . /lib/lsb/init-functions else log_success_msg() { echo "$@" } log_warning_msg() { echo "$@" >&2 阅读全文

posted @ 2022-12-09 22:36 yanhc 阅读(25) 评论(0) 推荐(0) 编辑

2022年11月29日

ubuntu frr

摘要: compile install dependencies: sudo apt update sudo apt-get install \ git autoconf automake libtool make libreadline-dev texinfo \ pkg-config libpam0g- 阅读全文

posted @ 2022-11-29 14:48 yanhc 阅读(93) 评论(0) 推荐(0) 编辑

2022年10月26日

CMAKE笔记

摘要: cmake,自动生成makefile 源代码根目录需要有一个CMakeLists.txt文件 某个cmake的模块,可以通过定义一个配置文件的方式,让其他工程来引用。该配置文件一般命名为CycloneDDSConfig.cmake,或者cyclonedds-config.cmake。其他工程通过该文 阅读全文

posted @ 2022-10-26 20:18 yanhc 阅读(67) 评论(0) 推荐(0) 编辑

2022年10月4日

MediaWiki搭建及迁移

摘要: MediaWiki搭建 MediaWiki迁移 旧服务器, 通过MySQL的网页管理界面,导出.sql文件。 拷贝wiki目录 新服务器 安装xampp 新建一个sql数据库,导入之前导出的.sql文件;如果文件太大,可以压缩为zip。 拷贝wiki目录到新服务器,设置配置文件,指向新的sql数据库 阅读全文

posted @ 2022-10-04 20:15 yanhc 阅读(258) 评论(0) 推荐(0) 编辑

2022年8月22日

Ubuntu python related

摘要: Ubuntu 更新软件源 https://zhuanlan.zhihu.com/p/142014944 拷贝到sources.list文件最开始,这是软件的源网址。不同ubuntu版本有一个codename,比如20.04叫focal,ubuntu 18.04是(bionic),源需要对应安装的版本 阅读全文

posted @ 2022-08-22 23:04 yanhc 阅读(24) 评论(0) 推荐(0) 编辑

2022年7月17日

python计算UDP校验和

摘要: import osbinFileName = input("input bin file name:")# binFileName = "file/1.bin"binFile = open(binFileName, 'rb')fileSize = os.path.getsize(binFileNam 阅读全文

posted @ 2022-07-17 17:56 yanhc 阅读(199) 评论(0) 推荐(0) 编辑

2022年6月28日

python 将二进制文件转为文本文件

摘要: 转换一个文件 import osbinFileName = input("input bin file name:")binFile = open(binFileName, 'rb')txtFileName = binFileName[:-3] + "txt"txtFile = open(txtFi 阅读全文

posted @ 2022-06-28 19:57 yanhc 阅读(2609) 评论(0) 推荐(0) 编辑

2022年6月10日

Northrop Grumman to Build Multi-Level Space Mesh Networking Prototype to Enable DOD’s Vision for Connected Battlespace

摘要: Northrop Grumman to Build Multi-Level Space Mesh Networking Prototype to Enable DOD’s Vision for Connected Battlespace News Releases Space • Cyber • C 阅读全文

posted @ 2022-06-10 21:42 yanhc 阅读(28) 评论(0) 推荐(0) 编辑

2022年6月3日

raspberry pi 4B

摘要: install Google pinyin sudo apt-get install fcitx fcitx-googlepinyin 这样以后,在config处看不到谷歌拼音,需要点左下角的+号,添加,此时,需要先把只显示当前输入法的对勾取消,再拉到最下面选中谷歌拼音。 https://www.j 阅读全文

posted @ 2022-06-03 17:02 yanhc 阅读(127) 评论(0) 推荐(0) 编辑

导航