- 博客(35)
- 资源 (73)
- 收藏
- 关注
原创 Ubuntu 21.04取消鼠标移动即选中窗体功能
1/ 启动Tweaks -> Actitites -> Tweaks2/ 在启动后的Tweaks窗体中,选择 Click to Focus -> Tweaks -> Windows -> Window Focus -> Click to Focus...
2021-07-04 11:37:46 295
原创 Failed to start XMind 8 on Ubuntu1804
# vim XMind.ini to editXMind.iniand add these lines belowto the top:-vm/usr/lib/jvm/java-8-openjdk-amd64/bin
2020-04-05 20:36:48 299
转载 socat 使用
转原文链接: http://www.wenquan.name/?p=1158用socat试几个netcat常用的用法,对比如下:1. 听tcp 12345端口# nc -l 127.0.0.1 12345# socat tcp-listen:12345 -2. 向远处tcp 12345端口发点字# echo “test” | nc 127.0.0.1 12345# echo “t...
2019-03-15 03:40:10 1210
原创 centos 编译gdb发生错误 missing: line 81: makeinfo: command not found
问题: missing: line 81: makeinfo: command not found方法:sudo yum -y install texinfo编译过程:wget http://ftp.gnu.org/gnu/gdb/gdb-8.2.tar.gztar xvf gdb-8.2.tar.gzcd gdb-8.2./configure --with-pyth...
2019-03-14 01:44:21 7495
原创 安装pgAdmin4 AttributeError: 'module' object has no attribute 'GSSException'
出现问题:File "/usr/lib/python2.7/site-packages/paramiko/ssh_gss.py", line 55, in <module>GSS_EXCEPTIONS = (gssapi.GSSException,)AttributeError: 'module' object has no attribute 'GSSException'...
2019-03-09 11:56:02 1966 1
原创 kscope: cannot connect to X server
解决方法:su - rootxhost local:rootsudo DISPLAY=$DISPLAY gedit /etc/profileexitkscope
2019-03-03 21:36:18 456
转载 How to Install Visual Studio Code on CentOS 7
sudo rpm --import https://packages.microsoft.com/keys/microsoft.ascsudo vim /etc/yum.repos.d/vscode.repo[code]name=Visual Studio Codebaseurl=https://packages.microsoft.com/yumrepos/vscodeenabl...
2019-03-03 21:30:44 294
转载 GUN/linux(ubuntu)下修改电池充电阈值
原文地址:Thinkpad在GUN/linux(ubuntu)下修改电池充电阈值作者:星海拾贝者详见 http://www.thinkwiki.org/wiki/Tp_smapiref:https://www.2daygeek.com/check-laptop-battery-status-and-charging-state-in-linux-terminal/ 设置电池...
2019-03-02 16:07:39 3654 1
转载 ubuntu 1604源码安装postgresql11.1
# << A Tour of PostgreSQL Internals >># 下载postgresql11.1wget https://ftp.postgresql.org/pub/source/v11.1/postgresql-11.1.tar.gz# 源码安装 tar zxvf postgresql-11.1.tar.gzmv postgresql-11....
2019-02-26 21:14:26 481
转载 ubuntu 16.04禁止开机自启动
1) sudo sysv-rc-conf2)systemctlsystemctl is-enabled servicename.service #查询服务是否开机启动systemctl enable *.service #开机运行服务systemctl disable *.service #取消开机运行systemctl start *.service #启动服务systemctl...
2019-02-26 21:10:40 2975
转载 命令sed替换文本
文本格式为 key=value用sed替换例如:mode=LOW(mode不一定为等于LOW),要替换成mode=HIGH可以用 sed -i "s/mode=\S*/\1HIGH/" test.conf-i 直接修改文件将不变的部分放入带反斜杠的一对括号 \( \) 中并在替换时用 \1 引用。\S用于匹配除单个空格符之外的所有字符。原文:https://blog....
2019-02-13 16:14:24 538
转载 gdb scripting
Let's get started...The GDB configuration file is located in the user's home directory: ${HOME}/.gdbinit. When GDB starts, it sources this file -- if it exists -- meaning that it evaluates al...
2018-11-15 16:07:39 145
原创 gdb调试python
ref:https://blog.csdn.net/liangzhao_jay/article/details/47807183环境构建:Fedora: #sudo yum install gdb python-debuginfoubuntu: #sudo apt-get install gdb python3.5-dbg使用gdb: #gdb python ...
2018-08-28 11:43:47 2018
原创 ubuntu 1604安装pycharm
#sudo apt-get install python3#sudo apt-get install python3-pip#sudo snap install pycharm-community --classic若安装专业版#sudo snap install pycharm-professional --classic
2018-08-28 09:21:16 589
原创 串口minicom使用
ref: https://blog.csdn.net/huang_jinjin/article/details/74751881) 识别串口# ls /dev/ttyUSB* 2) 使用串口# sudo minicom s13) 设置串口#sudo minicom -s
2018-08-27 14:41:08 225
转载 条件变量唤醒图
ref:https://segmentfault.com/q/1010000010421523/a-1020000010457503
2018-08-22 19:24:55 312
转载 EOS实际操作
参考: https://bihu.com/article/179190ref: https://www.jianshu.com/p/3f18aa973f7cref: http://www.cnblogs.com/think8848/p/9215439.html 准备构建环境 依赖包与工具#sudo apt-get install clang-4.0 lldb-4.0 ...
2018-08-19 12:43:07 357
原创 ubuntu1604 lua读取json文件
创建环境#sudo aptitude install lua-cjson实现1)实现test.json{ "str":"hello world", "configs":[{ "user":"ubuntu", "password":"123456", "ip":".
2018-08-18 16:43:33 1838
转载 Git 基础 - 撤消操作
ref: https://git-scm.com/book/zh/v1/Git-%E5%9F%BA%E7%A1%80-%E6%92%A4%E6%B6%88%E6%93%8D%E4%BD%9CGit 基础 - 撤消操作撤消操作任何时候,你都有可能需要撤消刚才所做的某些操作。接下来,我们会介绍一些基本的撤消操作相关的命令。请注意,有些撤销操作是不可逆的,所以请务必谨慎小心,一旦失误,就有可...
2018-08-16 15:48:38 125
原创 warning: project ‘repo‘ branch ‘master‘ is not signed -- ubuntu1604
问题:warning: project 'repo' branch 'master' is not signedwarning: Skipped upgrade to unverified version假设工作目录为:/work/code#rm .repo -rf#rm * -rf#sudo apt-ge install gpgv2#repo init -u gi...
2018-08-16 15:12:37 6439 1
转载 How to push only one commit with Git
ref: http://blog.dennisrobinson.name/push-only-one-commit-with-git/The other day at work I needed to push only one commit out of several I had made locally to the remote server, for a release build...
2018-08-16 11:10:27 229
原创 linux查看当前系统线程运行时间与耗时等
1)查看线程情况:#ps -T -A -o pid,ppid,pgid,etime,nice,rgroup,ruser,time,vsz,rss,args2)查看进程情况:#ps -A -o pid,ppid,pgid,etime,nice,rgroup,ruser,time,vsz,rss,args
2018-08-10 10:31:46 6646
原创 lua使用zmq和bson实现跨进程通信
下载bson-lua到本地https://github.com/tcoram/bson-lua参考:http://zeromq.org/bindings:luasudo apt-get install luasudo apt-get install luarockssudo luarocks install lzmqsudo luarocks install lua-llthreads2...
2018-08-09 19:36:50 1198
原创 python使用zeromq实现多进程简单poll复用
参考:https://learning-0mq-with-pyzmq.readthedocs.io/en/latest/pyzmq/multisocket/zmqpoller.html实现zmqpolling.py.pyimport zmqimport timeimport sysimport randomfrom multiprocessing import Process...
2018-08-08 20:59:47 1404
原创 python使用zeromq多进程简单交互
参考:https://learning-0mq-with-pyzmq.readthedocs.io/en/latest/pyzmq/multiprocess/multiprocess.html#实现request_reply_processes.pyimport zmqimport timeimport sysfrom multiprocessing import Process...
2018-08-08 20:46:04 1268
原创 lua使用zeromq实现 rep/req
参考:http://zeromq.org/bindings:lua安装环境sudo apt-get install luasudo apt-get install luarockssudo luarocks install lzmqsudo luarocks install lua-llthreads21) 实现rep.lua--require "zhelpers"local...
2018-08-08 20:37:40 476
转载 linux 高级测试性能工具
转自: http://blog.chinaunix.net/uid-28744904-id-5787513.html出于对Linux操作系统的兴趣,以及对底层知识的强烈欲望,因此整理了这篇文章。本文也可以作为检验基础知识的指标,另外文章涵盖了一个系统的方方面面。如果没有完善的计算机系统知识,网络知识和操作系统知识,文档中的工具,是不可能完全掌握的,另外对系统性能分析和优化是一个长期的系列。 ...
2018-08-08 19:18:51 7956
原创 zeromq4.2.3内存部分堆栈
回调zmq_free_fn堆栈#0 zmq_free_fn (data=0x1d64f610, hint=0x404538) at ×.cpp:742#1 0x0000007f954a77f8 in zmq::msg_t::close (this=0x1d2372b0) at src/msg.cpp:237#2 0x0000007f954d38e0 in zmq::encoder_ba...
2018-08-08 12:01:16 702
原创 zeromq4.2.3发送堆栈
主线程发送堆栈1:#0 zmq::mailbox_t::send (this=0x3a439b90, cmd_=...) at src/mailbox.cpp:62#1 0x0000007f97d01de4 in send_command (cmd_=..., this=<optimized out>) at src/object.cpp:474#2 zmq::object...
2018-08-08 10:48:58 412
转载 zeromq架构图--网络取得
引用: http://www.cnblogs.com/zengzy/p/5122634.html #0 push (this=<optimized out>) at src/yqueue.hpp:113#1 write (incomplete_=false, value_=..., this=0x42ca88) at src/ypipe.hpp:86...
2018-08-07 20:27:34 1155
原创 linux测试网络带宽 iftop nload bmon iptraf
#sudo apt-get intall iftop#sudo apt-get intall nload#sudo apt-get intall bmon#sudo apt-get intall iptraf记忆:nethogs: 按进程查看流量占用iptraf: 按连接/端口查看流量ifstat: 按设备查看流量ethtool: 诊断工具tcpdump: 抓包...
2018-08-06 21:16:57 221
原创 AttributeError: module 'bson' has no attribute 'encode_document'
解决方法:#pip3 uninstall bson#pip3 install pymongo --user
2018-08-04 16:40:04 2139
原创 python3 安装bson 出现 Could not install packages due to an EnvironmentError: [Errno 13] 权限不够
#pip3 install bsonCould not install packages due to an EnvironmentError: [Errno 13] 权限不够: '/usr/local/lib/python3.5/dist-packages/dateutil解决方法:(能够解决的原因未知,方法如下)#pip3 install bson --user...
2018-08-04 15:44:55 3523 1
原创 makefile多条件写法
TARGET_ARCH ?= x86ifeq ($(TARGET_ARCH), arm) LOCAL_SRC_FILES += ...else ifeq ($(TARGET_ARCH), x86) LOCAL_SRC_FILES += ...else ifeq ($(TARGET_ARCH), mips) LOCAL_SRC_FILES += ...else ...
2018-08-02 17:25:34 1885 1
原创 opencv学习示例网站--Features2D+Homography查找已知对象
代码源自:https://www.w3cschool.cn/opencv/opencv-t1v62e9p.htmlhttps://www.w3cschool.cn/opencv/opencv-2gnx28u3.html #include <stdio.h>#include <iostream>#include "opencv2/core.hpp"#i...
2018-07-20 15:22:19 268
寒江独钓-Windows内核安全编程(清晰完整版).part3.rar
2013-09-24
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人