07 2022 档案
摘要:代码 find . -name "*.c" -o -name "*.h" -name -not "*test*"| xargs cat | grep -v ^$ | wc -l 解读 find: 字面意思 -name: 是find的一个参数,过滤出文件名符合条件的文件 -not: 排除 -o: sh
阅读全文
摘要:getopt解析 主要由以下三个函数组成 getopt() getopt_long() getopt_long_only() optarg——指向当前选项参数(如果有)的指针。 optind——再次调用 getopt() 时的下一个 argv 指针的索引。 optopt——最后一个未知选项。 功能
阅读全文
摘要:#define MAX(a, b) ((a > b) ? (a):(b)) static int cycle = 0; int a[] = { 9, 3, 5, 2, 1, 0, 8, 7, 6, 4 }; int MAX2(int a, int b) { return a > b ? a : b;
阅读全文
摘要:LLDB | 命令 | 描述 | | | | | thread backtrace(bt) | 查看各级函数调用及参数 | | thread step-out(finish) | 连续运行到当前函数返回为止,然后停下来等待命令 | | frame(或f) 帧编号 | 选择栈帧 | | info(或i
阅读全文
摘要:frp配置教程在这里(https://www.cnblogs.com/INnoVationv2/p/16442967.html) 1.如果是最小化安装ubuntu,可能没有屏幕共享,需要先安装,如果有,那就略过 sudo apt-get install vino 2.配置 1. sudo apt-g
阅读全文
摘要:1. sudo apt-get install dconf-tools 2. dconf write /org/gnome/desktop/remote-access/require-encryption false 3. /usr/lib/vino/vino-server --sm-disable
阅读全文
摘要:我这边是frp开机启动每次都失败,需要手动重启 错误代码 2022/07/04 15:58:16 [W] [service.go:128] > 7月 04 15:58:16 innovation frpc[717]: dial tcp 81.68.87.95:7000: connect: netwo
阅读全文
摘要:零、原理简介 因为内网服务器没有公网ip,因此无法直接从外部访问,需使用内网穿透 整体分为公网路由端和内网服务端,公网路由端运行在具有公网ip的服务器上,负责转发命令和结果,内网服务端负责实际执行用户命令。 先配置公网路由端,使其运行在某个端口等待内网服务端连接, 再配置内网服务端,使其连接到路由端
阅读全文
摘要:1.安装 sudo apt-get install ccache 2.使用 ccache -s # 显示状态参数 (s是英语status的缩写,表示《状态》) ccache -C # 清除缓存(C是大写的,是英语Clear的缩写,表示《清除》) 3.配置 vim ~/.bashrc export N
阅读全文
摘要:配置SSH 环境: Ubuntu 20.04 1.安装ssh-server sudo apt-get install openssh-server 2.配置 主要有两个配置文件,分别是 /etc/ssh/ssh_config /etc/ssh/sshd_config
阅读全文