自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(372)
  • 资源 (26)
  • 收藏
  • 关注

原创 Git:上传本地代码到github

以pipe文件夹为例,需要把pipe文件夹及其目录中的文件上传到github。代码:git add pipe/git commit -m "add 无名管道测试文件"git remote add origin https://github.com/rtczza/IPC.gitgit pull origin mastergit push -u origin master如下所...

2019-08-16 20:27:59 206

原创 MarkDown:基本设置(字体、颜色等)(自己看)

为便于理解,使用的代码在代码片中,具体效果在其后展示。---------------------------为便于理解,使用的代码在代码片中,具体效果在其后展示。<font face="楷体" size = 4 color = Blue > MarkDown MarkDown&amp

2019-01-09 20:20:36 10802 1

原创 C语言: 测试程序模板

#include <stdio.h> #include <string.h>typedef unsigned char BYTE;typedef unsigned int DWOR

2018-11-26 13:49:10 1660

原创 Makefile 文件 -只有include和src文件夹 (自己用)

文件目录树结构为:root@ubuntu:/home# tree.├── include│ ├── client.h│ ├── gps_module.h│ └── jt.h├── Makefile└── src ├── client.c ├── gps_module.c └── jt.c2 directories, 7 filesroot@...

2018-11-24 17:29:06 3107

原创 【编译报错】 /usr/include/unistd.h:226:10: fatal error: ‘stddef.h‘ file not found

【代码】【编译报错】 /usr/include/unistd.h:226:10: fatal error: ‘stddef.h‘ file not found。

2023-06-05 10:21:19 579

原创 argc为0的情况

argc设置为0

2023-03-21 18:15:28 284 1

原创 rust 基于Cargo的宏展开

rust 宏展开

2022-08-18 14:00:53 603

原创 c2rust简单使用

C2rust简单使用

2022-08-17 16:03:52 747

转载 Rust命名规范

Rust 命名规范

2022-08-15 20:02:13 666 1

原创 const char* 、char const * 与 char *const的区别

const char*、char const*和 char*const的区别

2022-07-11 11:09:12 170

原创 Rust:反转字符串-Reverse String

题目地址:http://llever.com/exercism-rust-zh/reverse-string/README.zh.html#%E5%8A%A0%E5%88%86参考链接:https://devenum.com/how-to-reverse-a-string-in-rust/反转字符串例如:input: “cool”output: “looc”lib.rs:pub fn reverse(input: &str) -> String { let mut

2022-04-26 14:00:41 1528

原创 spec 文件 autopatch

参考链接:https://rpm.org/wiki/Releases/4.15.0#macros将 -m(in) 和 M(ax) 参数添加到 %autopatch 以应用补丁范围。例如:%autopatch -m200表示合入的补丁号,最小是200。(意思是,不合入"补丁号小于200的"补丁)(比如 200-1000的补丁可以合入)%autopatch -M200表示合入的补丁号,最大是200。(意思是,不合入"补丁号大于200的"补丁)(比如 1-200的补丁可以合入。).

2022-04-19 19:40:02 451

原创 Centos 关闭密码字典检查

设置密码的时候,有的密无法通过字典检查。可以通过修改:/etc/security/pwquality.conf 文件 关闭字典检查。修改完成之后:但是不建议这么修改。建议你换个密码。

2022-01-18 10:49:04 2825

原创 UOS:清空回收站

当清空回收站时,可能会报权限问题使用。此时可以使用root用户执行:gio trash --empty帮助选项:root@adams-PC:~# gio trash --helpgio: 未知选项 --help用法: gio trash [OPTION…] [位置…]将文件或目录移动到回收站。选项: -f, --force 忽略不存在的文件,从不提示 --empty 清空回收站root@adams-PC:~#...

2022-01-13 11:06:07 766

原创 debian:根据文件名称,找到对应的包

安装工具:sudo apt install apt-file然后更新缓存信息:sudo apt-file update查找debuild这个文件属于那个包:apt-file search debuild:adams@adams-PC:~/$ apt-file search debuilddevscripts: /usr/bin/cvs-debuild devscripts: /usr/bin/debuilddevscripts: /usr/share/bash-com

2021-12-15 16:57:44 1323

原创 Centos8 安装仓库中所有软件包

在空目录中使用命令:yum install *肯定会有软件包冲突,需要加上参数:yum install * --skip-broken如果遇到文件冲突,需要去到软件包缓存目录:/var/cache/dnf/使用rpm -ivh xxx.rpm --replacefiles命令安装有文件冲突的两个包。然后再使用yum install * --skip-broken 命令安装仓库中所有软件包。...

2021-12-15 16:49:46 1434

原创 SELinux:避免 dontaudit 规则隐藏

参考链接:https://wiki.centos.org/zh/HowTos/SELinux由于 dontaudit 可防止审计记录出现于日志内,有可能部份 AVC 或 USER_AVC 不获显示。若是要避免 dontaudit 规则隐藏这些讯息,管理员可执行 semodule -DB 来重建不包含 dontaudit 规则的 SELinux 政策。重建后,日志内将会有更多讯息,还有一些与问题无关的记录(noatsecure、rlimitinh 及 siginh 是执行程式时循例必检查的,因此一般可忽

2021-07-27 20:22:42 1962

原创 报错:Can‘t locate Debian/Debhelper/Dh_Lib.pm in @INC

执行:dh_quilt_patch 后报错:Can't locate Debian/Debhelper/Dh_Lib.pm in @INC (you may need to install the Debian::Debhelper::Dh_Lib module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-g

2021-06-29 15:25:35 767

原创 复杂密码随机生成工具

参考链接:https://www.cnblogs.com/klb561/p/9236360.html命令:pwgen1、安装:sudo yum install pwgen2、使用示例:[root@localhost ~]# pwgen zez6Kuoy Phohgee3 ahBa3aew Xiedee2E bae8Ahji Eighida3 Cha9heeD iY0aetaiohghee4I dooth7Wu shaiX3ae ooJoon8p Oewosie1 Iw8meiGh mey5i

2021-06-20 14:58:40 745

原创 从rpm中抽取文件

参考链接:https://blog.csdn.net/hshl1214/article/details/104493331 提取源码包以lsof-4.87-6.el7.src.rpm为例,进行说明:[root@localhost test]# lslsof-4.87-6.el7.src.rpm[root@localhost test]# rpm2cpio lsof-4.87-6.el7.src.rpm Error: refusing to output cpio data to a ter

2021-06-20 11:12:42 1064

原创 Centos:下载远程仓库中的全部软件包

reposync[root@localhost ~]# reposync --helpCommand: reposync reposync --help Installroot: /Releasever: 8.0cachedir: /var/cache/dnfBase command: reposyncExtra commands: ['reposync', '--help']usage: dnf reposync [-c [config file]] [-q] [-v] [--versi

2021-06-16 20:53:29 594

原创 bzip2格式文件解压

有cil文件:[test@localhost test]$ file cil cil: bzip2 compressed data, block size = 500k[test@localhost test]$可以查看到,文件属于bzip2压缩格式。此时直接查看cil文件,会是乱码形式:因为不经常操作bzip2格式的文件,所以查看下有没有相关解压缩命令:[test@localhost test]$ ls /usr/bin/*zip*/usr/bin/bunzip2 /usr

2021-05-27 11:34:32 1477

原创 deb:只打patch不编译

在编译打包rpm包时使用 rpmbuild -bp可以实现 解压源码包,打补丁的操作。在编译打包deb包中,可以使用dh_quilt_patch命令实现类似操作。如果报错:No series file found需要检查下

2021-05-12 20:06:25 528

原创 vim-宏录制及其使用

参考链接:https://zhuanlan.zhihu.com/p/68111471需求假设有如下文件目录结构,a中是修改好之后的文件,b中是需要修改的文件。[adams@localhost test]$ lsa b[adams@localhost test]$ tree.├── a│ └── qqq│ └── www│ └── eee│ ├── asdf.ww│ ├── dfdfeyg.

2021-04-28 20:13:39 2239

原创 Go:go: go.mod file not found in current directory or any parent directory; see ‘go help modules‘

参考链接:https://blog.golang.org/go116-module-changes报错信息:go: go.mod file not found in current directory or any parent directory; see 'go help modules'解决方法:go env -w GO111MODULE=auto

2021-04-17 23:24:52 7251 4

原创 Linux:调试,log中增加时间戳、pid 和ppid

增加时间戳:#include <sys/time.h>struct timeval tv;gettimeofday(&tv,NULL);//毫秒级时间戳g_debug ("tv.tv_sec:%ld, tv.tv_usec:%ld, millisecond:%ld\n", tv.tv_sec, tv.tv_usec, tv.tv_sec*1000+tv.tv_usec/1000); 增加pid ppid:g_debug ("== test == [%s]_[%d] p

2021-02-19 20:28:21 782

原创 spec文件:%systemd_post()

%systemd_post() 的使用是在spec文件中的%post部分:%systemd_post xxx.service%systemd_post() 定义为:%systemd_post() \if [ $1 -eq 1 ] ; then \ # Initial installation \ systemctl --no-reload preset %{?*} &>/dev/null || : \ fi \%{nil}其中的if判断,

2021-01-18 15:50:42 1855

原创 ERROR: Cannot find Ninja

解决方法:yum install ninja-build

2021-01-13 16:56:38 12953

原创 rpmbuild 忽略成功的部分

参考链接:https://www.cnblogs.com/jing99/p/9672295.html–short-circuit 选项来忽略成功的阶段。例如,若想要(略过更早的阶段)重新从 %install 阶段开始,请执行:rpmbuild -bi --short-circuit program.spec当然,-ba和--short-circuit 一起使用就没有什么意义了。...

2021-01-13 14:03:45 401

原创 Linux:Vim一行显示所有内容

参考链接:vi的时候一行特别长,一行内显示不下,怎么办一行显示所有内容:set nowrap

2021-01-11 14:17:37 1998 1

原创 Linux:rpm 不编译debug包

%define debug_package %{nil}

2021-01-07 13:39:48 1074

原创 SELinux学习:label相关

参考链接:SELinux 安全策略解析Understanding SELinux File Labelling and SELinux ContextPractical SELinux for the beginner: Contexts and labelsSecurity-Enhanced LinuxSELinux/LabelsSELinux/EnforcePolicySELinux AVC denies at bootSELinux 及 permision denied 问题SELi

2021-01-04 13:35:45 1114

原创 mock init 初始化报错

mock init 初始化报错:# /usr/bin/systemd-nspawn -q -M 5b5a27d894604d53a5869ffa4094a7f3 -D /var/lib/mock/test/troot \-a --console=pipe --setenv=TERM=vt100 \--setenv=SHELL=/bin/bash \--setenv=HOME=/builddir --setenv=HOSTNAME=mock \--setenv=PATH=/usr/bin:/bin:

2020-12-30 09:21:51 975

原创 Linux:刻录u盘,格式化u盘

格式化u盘:mkfs.ext4 /dev/sdb[root@localhost tmp]# mkfs.ext4 /dev/sdb mke2fs 1.45.4 (23-Sep-2019)创建含有 7554686 个块(每块 4k)和 1892352 个inode的文件系统文件系统UUID:5bcc6615-fffb-4d2b-a007-2a9c87bdefbe超级块的备份存储于下列块: 32768, 98304, 163840, 229376, 294912, 819200, 884736,

2020-12-29 09:05:21 412

原创 Linux:RPM文件触发器

参考链接:File triggershttps://pagure.io/packaging-committee/issue/566https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/第5章RHEL 8中的新功能Wiki » RPM filetriggers本人对文件触发器的理解:File triggers是一种RPM脚本,在程序包的SPEC文件中定义。 当设定的目录中文件有改动(增加或删除)时,可以运行设定的

2020-12-22 11:19:43 642

原创 Linux:关机方式

参考链接:Systemd 入门教程:实战篇只列出笔者本人自己知道的方式。 欢迎大家补充。1、鼠标 点击电源关机键2、init 03、poweroff4、halt5、shutdown -h -now6、sudo systemctl isolate shutdown.target...

2020-12-20 22:06:18 104

原创 Error: invalid operands (*UND* and *UND* sections) for `*‘

参考链接:https://www.cnblogs.com/wangjq19920210/p/11347916.htmlhttps://bbs.huaweicloud.com/forum/thread-23178-1-1.html在arm上编译PhantomJS报错:g++ -c -include .pch/Qt5Gui -pipe -O3 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions

2020-12-18 22:05:27 2209 1

原创 Linux:更新 /usr/share/glib-2.0/schemas 目录

参考链接:http://lfsbookja.osdn.jp/BLFS/svn-ja/gnome/gsettings-desktop-schemas.html更新 gsettings 配置文件 命令:glib-compile-schemas /usr/share/glib-2.0/schemas设置 gsettings 的工具:dconf-editor

2020-12-18 21:46:57 631

原创 RPM:spec文件:指定平台架构

参考链接:https://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch09s03.html规范文件可以宣布一个程序包可以在多个操作系统上运行,或者绑定到特定操作系统的特定版本。Excludearch:Excludearch:指令指出不应在给定的体系结构上构建程序包。ExcludeArch:SPARC S390 S390X本示例不包括SPARC和S390大型机体系结构。您可以在指

2020-12-14 14:23:17 1498

原创 %ldconfig_scriptlets 替换

参考链接:https://fedoraproject.org/wiki/Changes/Removing_ldconfig_scriptlets%ldconfig_scriptlets替换为:%post -p /sbin/ldconfig%postun -p /sbin/ldconfigspec文件应该使用%ldconfig_post,%ldconfig_postun或优选%ldconfig_scriptlets。%post -p /sbin/ldconfig → %ldconfig

2020-12-09 18:20:01 860

0905_build_no_gcc_ser.log

build-build-0905-编译日志-2020-0905-编译日志,仅供参考。编译日志-2020-0905-编译日志,仅供参考

2020-09-06

0905_build.log

build-build-0905-编译日志-2020-0905-编译日志,仅供参考。编译日志-2020-0905-编译日志,仅供参考

2020-09-06

gmp-5.0.1.tar.bz2

官方下载地址:ftp://ftp.gnu.org/gnu/gmp/ 其中,aaaaaaaaaa文件是为了解决csdn上传文件,不影响使用。

2020-07-30

mpfr-3.1.5.tar.gz

官方下载地址:https://ftp.gnu.org/gnu/mpfr/ 其中aaaaaaaaaaa文件是为了解决csdn上传问题,不影响使用。

2020-07-30

mpc-0.9.tar.gz

官方下载地址:http://www.multiprecision.org/downloads/ 其中aaaaaaaaa文件是为了解决csdn不让上传的问题。不影响使用。

2020-07-30

translations_ts.tar.gz

translations-qt翻译-ts文件。qt库中自带的翻译文件,可以直接加载使用。来源于qt-everywhere-src-5.13.1

2019-12-06

translations_qm.tar.gz

translations-qt翻译-二进制文件。qt库中自带的翻译文件,可以直接加载使用。来源于qt-everywhere-src-5.13.1

2019-12-06

meld-1.3.3.tar.bz2

meld-1.3.3.tar.bz2 meld 是优秀的代码比较工具,可以配合git 以及SVN使用。

2019-10-16

ppp-2.4.7.tar.gz

ppp-2.4.7.tar.gz 拨号工具,包含编译好的pppd和chat文件。

2019-04-11

dhcpcd-6.0.1_arm_install.tar

dhcpcd-6.0.1_arm_install.tar。源码以及编译生成的文件。

2019-04-09

JT//T 1076——2016

道路运输车辆卫星定位系统车载视频终端技术要求 GNSS system for operating vehicles ——Technical specifications for vehicle video terminal

2019-02-21

JT//T 1078——2016

道路运输车辆卫星定位系统视频通信协议 GNSS system for operating vehicles-Video communication protocol

2019-02-21

JT / T 794—2011

道路运输车辆卫星定位系统 车载终端技术要求 GNSS system for operating vehicles —Technical specification for vehicle terminals

2019-02-21

超级终端--可下载应用程序

超级终端,可以给uboot发送文件。进行loadb命令下载应用程序。

2019-01-12

汽车行驶记录仪

汽车行驶记录仪 GB/T 19056—2012 本标准按照GB/T 1.1-2009给出的规则起草。

2019-01-09

Using.SQLite.2010

Using.SQLite.2010 数据库资料。一共528页,大家放心下载。

2019-01-09

Linux C 编程 程序员书库 李玉波

Linux C 编程 程序员书库 李玉波 1-8章的内容。 书中有些任内容是抄袭的,所以写的特别好。

2019-01-09

WinHex18.rar

本工具用于查看二进制文件,方便使用。 是一款功能强大的文件编辑器与磁盘编辑软件。

2018-12-20

NppAStyle和CoolFormat

NppAStyle和CoolFormat的一些资源集合,有很多版本,可以自己酌情下载,亲测有效。

2018-12-17

TortoiseSVN-1.8.12.26645-x64-svn-1.8.14

TortoiseSVN-1.8.12.26645-x64-svn-1.8.14 软件包和中文包。配套使用。

2018-11-28

批量获取文件名

该.bat文件用于批量获取文件名。Windows系统下,放到要批量获取的文件同一目录,双击即可。

2018-03-17

arm开发板-linux-ssh移植工具文件

linux最小系统移植ssh功能所需要的工具,可以直接使用。

2017-12-25

busybox工具

使用android系统时,有时候会出现命令找不到的情况。该工具用于移植命令。

2017-12-23

SecureCRT_7.0.0_x64

串口助手

2017-08-24

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除