随笔分类 -  开发环境

摘要:SwitchResX不保存我的设置 除了可能已过期的10天试用期外,如果SwitchResX保存其设置的首选项文件以任何方式损坏,有时会出现此症状。通过删除首选项文件,您可以在大多数情况下解决此问题。只需将名为fr.madrau.switchresx.daemon.plist的文件放入垃圾箱即可。该 阅读全文
posted @ 2019-02-20 09:26 gavinhe 阅读(1552) 评论(0) 推荐(0)
摘要:1.Linux下增加一下三行: 给你的ls一点颜色 alias ls='/bin/ls --color=auto' 给你的grep一点颜色alias grep='grep --color' 给你的vi一点颜色alias vi='vim' 2.Mac下 增加一下三行: 给你的ls一点颜色 alias 阅读全文
posted @ 2019-02-17 14:41 gavinhe 阅读(1141) 评论(0) 推荐(0)
摘要:docker run -d -p 9091:8080 -v /home/xuhaixing/docker/tomcat/webapps/:/usr/local/tomcat/webapps/ --name managertomcat xuhaixing/mytomcat 挂载路径后,进入容器 roo 阅读全文
posted @ 2019-01-14 12:56 gavinhe 阅读(1571) 评论(0) 推荐(0)
摘要:查看镜像列表:docker image ls 查看容器列表:docker ps 启动/创建容器:docker run [-itd] xxx [/bin/bash] -i:允许我们对容器内的 (STDIN) 进行交互-t:在新容器内指定一个伪终端或终端-d:后台运行-v:是挂在宿机目录, /docke 阅读全文
posted @ 2018-11-16 19:26 gavinhe 阅读(179) 评论(0) 推荐(0)
摘要:git submodule update --init 阅读全文
posted @ 2018-11-07 22:17 gavinhe 阅读(726) 评论(0) 推荐(0)
摘要:默认安装gcc-c++不包含静态库yum install -y libstdc++-static 阅读全文
posted @ 2018-11-07 16:26 gavinhe 阅读(1018) 评论(0) 推荐(0)
摘要:一、安装开发必备环境: 二、编译安装gcc-5.4.0 你可以到官网下载gcc,也可以直接在这里下载:http://ftp.tsukuba.wide.ad.jp/software/gcc/releases/ 下载好后进行编译安装: 其中执行./contrib/download_prerequisit 阅读全文
posted @ 2018-11-05 20:03 gavinhe 阅读(6336) 评论(0) 推荐(0)
摘要:1. wget -c https://cmake.org/files/v3.11/cmake-3.11.2.tar.gz 2.https://github.com/Microsoft/cpprestsdk/wiki/How-to-build-for-Linux submodule update -- 阅读全文
posted @ 2018-11-03 18:42 gavinhe 阅读(2119) 评论(0) 推荐(0)
摘要:[root@locallhost ~]# pvs PV VG Fmt Attr PSize PFree /dev/hda2 VolGroup00 lvm2 a- 74.41G 0 /dev/sda2 VolGroup00 lvm2 a- 232.78G 0 hda2是新系统盘74G多,sda2是老数 阅读全文
posted @ 2018-11-01 10:33 gavinhe 阅读(869) 评论(0) 推荐(0)
摘要:相关工具 下载源码 编译安装protobuf autogen.sh里需要下载Google Code的代码,需要保障其能被访问 编译安装grpc 问题: 解决办法: 测试C++ Demo 问题: 解决办法: /usr/local/bin/protoc --cpp_out=./ examples.pro 阅读全文
posted @ 2018-10-31 19:46 gavinhe 阅读(2165) 评论(0) 推荐(0)
摘要:1. perf record -e cycles -a -p 21028perf report 2. perf top 3. perf top -p 21028 4. 以线程维度查看cpu使用率 top -d 1 -H cmd: perf record -e cpu-clock -g -p 2102 阅读全文
posted @ 2018-10-31 14:46 gavinhe 阅读(175) 评论(0) 推荐(0)
摘要:CMakeList 阅读全文
posted @ 2018-10-07 09:56 gavinhe 阅读(68) 评论(0) 推荐(0)
摘要:初始化git仓库: mkdir test1cd test1git test1 文件到Git仓库,分两步: 使用命令git add <file>,注意,可反复多次使用,添加多个文件;命令git commit -m <message>,完成。 查看状态: git status 查看差异: git dif 阅读全文
posted @ 2018-10-05 15:56 gavinhe 阅读(108) 评论(0) 推荐(0)
摘要:# Install packages $ sudo apt-get update && sudo apt-get install build-essential libssl-dev cmake -y # Install Libevent $ wget https://github.com/libe 阅读全文
posted @ 2018-10-04 16:05 gavinhe 阅读(410) 评论(0) 推荐(0)