![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
编程
liliangcsdn
这就是自己的生活,尽然没办法改变它,就努力让它变的更好。
展开
-
linux: 程序重定向没及时输出到文件
stdbuf -oL ./test>>out其中的参数,o表示输出流,L表示行缓冲。这样主要遇到换行符,就会将缓冲输出到指定对象。参考:https://blog.csdn.net/frank_liuxing/article/details/54017813原创 2021-06-29 16:13:50 · 1390 阅读 · 0 评论 -
diff工具打patch
diff -Naur 旧的目录 新的目录 > patch文件原创 2018-03-23 10:29:40 · 189 阅读 · 0 评论 -
一个好用的在线画图网站
https://www.draw.io/原创 2018-10-16 19:41:24 · 12137 阅读 · 0 评论 -
proxy协议实现信息在nat系统中的透传
应用场景:在多层nat/tcp网络中实现ip地址的透传haproxyhttps://www.haproxy.org/download/1.8/doc/proxy-protocol.txt原创 2018-10-31 18:57:11 · 445 阅读 · 0 评论 -
curl 执行 neo4j HTTP 查询请求
query.json { "statements": [ { "statement": "match (n:学生) where n.name = '李明' return n", "parameters": { "decisionId": "1", &原创 2019-02-14 23:10:09 · 1608 阅读 · 0 评论 -
python 执行 neo4j HTTP 查询请求
Authorization 为 user@passwd 生成的字符串def http_post_test() URL = "http://localhost:7474/db/data/transaction/commit" CYPHER = "match (n:学生) where n.name = '李明' return n" data = { "s...原创 2019-02-14 23:19:44 · 963 阅读 · 0 评论 -
neo4j http api 相比 py2neo driver 运行的更快
neo4j http api:neo4j http requset 速度快1 服务端和客户端仅需一次通信:客户端将cypher命令发送给neo4j 服务端,服务端运行cypher查询,将结果返回给客户端2 cypher执行在服务端:服务端运行cypher,采用直接运行的模式,没有采用stream模式,因此cypher执行没有延迟和等待 py2neo bolt driver:...原创 2019-02-15 09:39:59 · 1096 阅读 · 0 评论 -
如何使用gremlinpython连接JanusGraph
1 JanusGraph设置1) 下载 janusgraph-0.2.2-hadoop2https://github.com/JanusGraph/janusgraph/releases2) 启动Cassadra、ElasticSearch、GremlinServerbin/janusgraph.sh start3)初始化数据打开gremlin终端,运行如下命令gr...原创 2019-02-13 18:05:10 · 3852 阅读 · 0 评论 -
为neo4j的一个边的属性设置多个值 - 数组属性
1 设置边的数组属性CREATE (n:Person { name: 'tom', title: 'Developer' })CREATE (n:Person { name: 'john', title: 'Developer' })create (a:Person{name:"tom"})-[r:RELTYPE{rtype:["r1", "r1"]}]->(b:Person{n...原创 2019-02-14 11:12:42 · 5745 阅读 · 0 评论 -
golang http连接复用
server端golang httpserver 默认开启keepalive连接复用选项handler函数需要完整读body数据,构造返回消息,否则当数据不能一次发送完成时,连接复用就会失效。示例如下package mainimport ( "fmt" "io/ioutil" "log" "net/http" "os" "strconv" "strings&qu原创 2018-02-20 21:35:34 · 8981 阅读 · 1 评论 -
linux dentry 实现机制分析
from:http://hary.wang.blog.163.com/blog/static/11695172820104572038197/ Linux用数据结构dentry来描述fs中与某个文件索引节点相链接的一个目录项(可以是文件,也可以是目录)。 每个dentry对象都属于下列几种状态之一: (1)未使用(unused)状态:该dentry对象的引用计数转载 2018-02-07 13:56:41 · 597 阅读 · 0 评论 -
mysql数据库远程连接
远程连接mysql数据库命令如下 mysql -u root -h ip -P 3306 -p原创 2018-01-22 22:43:28 · 149 阅读 · 0 评论 -
git commit id相关操作收藏
1 git clone指定commit id的版本git clone -b branch git@github/$username/$project.gitgit checkout commitid2 获取commit id获取完成commit id:git rev-parse HEAD获取short commit id: git rev-parse --short HEAD3 查看给定git c...原创 2018-02-02 11:03:40 · 6167 阅读 · 0 评论 -
nc在服务器之间传输文件
首先,接收方10.0.82.196,启动接收, nc -l 9981 > file.tar.gz 其次,发送方启动发送,nc 10.0.82.196 9981 完成传输原创 2018-01-18 16:01:35 · 1054 阅读 · 0 评论 -
删除find 找到的文件命令
今天需要删除find找到的文件,经过查资料发现以下命令很好用,故记录下来。find ./ -name *.log | xargs rm -rf删除在当前目录下及子目录中找到的所有log日志,搞定。原创 2018-01-28 19:12:49 · 3394 阅读 · 0 评论 -
lsof 查看进程fd句柄
isof、grep、wc结合可以监控句柄程序的句柄泄漏情况isof | grep nginx | grep user1 | wc -l 可以监控user1用户启动的nginx持有的句柄数目原创 2018-01-29 13:54:38 · 2449 阅读 · 0 评论 -
查看Centos操作系统版本命令
cat /etc/issue 、cat /etc/redhat-release原创 2018-01-30 12:05:35 · 5048 阅读 · 0 评论 -
git 命令 - 回滚、查看、合并、同步命令收藏
1 git 回滚强制回滚远程分支git push -f origin commit_id:master强制放弃本地修改git reset --hard2 git 合并某一个commit id提交的内容git cherry-pick 62ecb33 git 查看远程仓库地址git remote -v4 Git同步原始仓库和Fork仓库步骤初始化本地仓库mkdir test-repocd test-r...原创 2018-02-07 13:25:36 · 2521 阅读 · 0 评论