- 博客(8)
- 收藏
- 关注
原创 linux 获取&设置鼠标灵敏
#include<stdio.h>#include <X11/extensions/XInput2.h>#include <string.h>static voidprint_property_xi2(Display *dpy, int deviceid, Atom property){ Atom act_type; char *name; int
2021-12-14 15:41:32
1178
原创 ptrace 获取程序实时的堆栈
#!/bin/bashif test $# -ne 1; then echo "Usage: `basename $0 .sh` <process-id>" 1>&2 exit 1fiif test ! -r /proc/$1; then echo "Process $1 not found." 1>&2 exit ...
2018-11-15 15:02:32
1183
原创 Reboot framework 安装说明
Reboot framework 安装说明 一windows平台安装python 1)安装python 以下为在 Window 平台上安装 Python 的简单步骤: 打开 WEB 浏览器访问https://www.python.org/downloads/windows/ 在下载列表中选择Window平台安装包,包格式为:python-XYZ.msi 文件 , XYZ 为你要安装的...
2018-08-30 11:16:43
3054
原创 tcp client epoll 多socket 复用
tcp client epoll 多socket 复用#include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h>#include <...
2018-07-02 14:19:30
1169
原创 HTTPS客户端程序示例
HTTPS客户端程序示例#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/types.h>#include <sys/socket.h>#include <errno.h>#include <unistd.h>
2018-06-19 17:41:22
2709
原创 gitlab和gitlab-runner安装配置以及操作实例
gitlab和gitlab-runner安装配置以及操作实例一、网站资料清华大学yum源:https://mirrors.tuna.tsinghua.edu.cn/ 包含gitlab-ce gitlab-ee gitlab-runnergitlab的中文社区,包括汉化包:https://gitlab.com/xhang/gitlabgitlab官方网站以及包:https://pa...
2018-06-19 17:30:44
11384
1
原创 MongoDB基本命令用法
成功启动MongoDB后,再打开一个命令行窗口输入mongo,就可以进行数据库的一些操作。输入help可以看到基本操作命令:show dbs:显示数据库列表 show collections:显示当前数据库中的集合(类似关系数据库中的表) show users:显示用户use :切换当前数据库,这和MS-SQL里面的意思一样 db.help():显示数据库操作命令,里面有很
2017-11-20 14:52:56
284
原创 MongoDB c 增删改查
1 inster:#include #include #include int main (int argc,char *argv[]){ mongoc_client_t *client; mongoc_collection_t *collection; bson_error_t error; bson_oid_t oid;
2017-11-20 14:48:31
3107
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人