2016年12月27日

etcd-v2第二集

摘要: 参考文章:https://github.com/coreos/etcd/blob/master/Documentation/v2/api.mdhttp://www.cnblogs.com/zhengran/p/4299145.html http://www.cnblogs.com/breg/p/57 阅读全文

posted @ 2016-12-27 11:26 拥剑公子 阅读(325) 评论(0) 推荐(0) 编辑

2016年12月22日

git代理,windows命令行代理,linux命令行代理

摘要: 下载不动设置代理:git config --global http.proxy http://127.0.0.1:1080git config --global https.proxy https://127.0.0.1:1080git config --global http.SSLVERIFY 阅读全文

posted @ 2016-12-22 17:24 拥剑公子 阅读(1206) 评论(0) 推荐(0) 编辑

golang: 根据json生成go源文件

摘要: https://github.com/ChimeraCoder/gojson $ git clone https://github.com/ChimeraCoder/gojson.git$ cd gojson$ go build -o _build/gojson ./gojson$ cp _buil 阅读全文

posted @ 2016-12-22 16:04 拥剑公子 阅读(398) 评论(0) 推荐(0) 编辑

收集一些有用的docker镜像

摘要: https://hub.docker.com/explore/ 是star排名靠前的image 镜像 大小 说明 hopsoft/graphite-statsd 847M kamon/grafana_graphite 1G gogs/gogs 91M library/mongo 402M redis 阅读全文

posted @ 2016-12-22 14:03 拥剑公子 阅读(3071) 评论(0) 推荐(1) 编辑

statsd+graphite

摘要: 一些观点: Statsd:一个nodejs的客户端,用于向graphite的收集器发送数据,使用各类编程语言的客户端响起发送timer,counter等统计数据后,其通过udp定时向graphite发送数据。 Graphite:分为监听器carbon+时序数据库whisper+图形展示django- 阅读全文

posted @ 2016-12-22 11:05 拥剑公子 阅读(4368) 评论(0) 推荐(0) 编辑

2016年12月21日

docker

摘要: 1.Docker是基于Go语言实现的云开源项目,诞生于2013年初,最初发起者是dotCloud公司。Docker自开源后就受到广泛的关注和讨论,目前已有多个相关项目,逐渐形成了围绕Docker的生态体系。dotCloud公司后来也改名为Docker Inc,专注于Docker相关技术和产品的开发。 阅读全文

posted @ 2016-12-21 17:00 拥剑公子 阅读(320) 评论(0) 推荐(0) 编辑

2016年12月20日

redis 3.2.6 on ubuntu 14.04

摘要: 1. official site: https://github.com/antirez/redis/releases 2. compile and setup tar zxf redis-3.2.6.tar.gz cd redis-3.2.6/deps export ARCH= make geoh 阅读全文

posted @ 2016-12-20 12:53 拥剑公子 阅读(286) 评论(0) 推荐(0) 编辑

2016年12月19日

go异常处理

摘要: go的异常处理通过defer,panic,recover这3个流程来达到(defer是关键字,后2者是函数) (1)异常的捕获通常放在函数最末,也就是defer里面 (2)panci抛出异常 (3)recover捕获异常 阅读全文

posted @ 2016-12-19 10:28 拥剑公子 阅读(472) 评论(0) 推荐(0) 编辑

2016年12月15日

go语言的命令行库

摘要: 命令行应用通常很小,程序猿们也不喜欢为它编写注释。所以一些额外的工作,如解析参数有个合理的库来帮忙做就好了。https://github.com/urfave/cli 这个项目因此而生。安装:go get github.com/urfave/cli以下的例子均来自官网: (例1) (例2) (例3) 阅读全文

posted @ 2016-12-15 17:28 拥剑公子 阅读(3942) 评论(0) 推荐(1) 编辑

2016年12月9日

股票大数据分析

该文被密码保护。 阅读全文

posted @ 2016-12-09 16:25 拥剑公子 阅读(0) 评论(0) 推荐(0) 编辑

2016年12月6日

iptables

摘要: 1.绝大多数发行版有iptables套件,使能 cat /proc/sys/net/ipv4/ip_forward echo 1 > /proc/sys/net/ipv4/ip_forward # 需要root权限 2.概念 iptabels提供四张表,表的处理优先级:raw>mangle>nat> 阅读全文

posted @ 2016-12-06 17:05 拥剑公子 阅读(148) 评论(0) 推荐(0) 编辑

nsq

摘要: 官网:http://nsq.io (1)描述 都是message broker,rabbitmq久经考验,nsq则是后起之秀。rabbitmq是erlang编写,nsq是golang。 安装:https://github.com/nsqio/nsq/releases下载nsq-0.3.8.linux 阅读全文

posted @ 2016-12-06 13:58 拥剑公子 阅读(672) 评论(0) 推荐(0) 编辑

2016年12月5日

etcd-v2第一集

摘要: 网站:https://github.com/coreos/etcd 一些观点:https://yq.aliyun.com/articles/11035 1.etcd是键值存储仓库,配置共享和服务发现2.2379用于客户端通信,2380用于节点通信。3.etcd可以集群使用,也可以单机。不支持密码认证 阅读全文

posted @ 2016-12-05 14:44 拥剑公子 阅读(477) 评论(0) 推荐(0) 编辑

rabbitmq, windows/linux, c/c++/node.js/golang/dotnet

摘要: 官网:http://www.rabbitmq.com/ zeromq 相当于 message backbone,而rabbitmq相当于message broker。有的应用系统中,二者并存。 (1)windows安装 windows下载:rabbitmq-server-3.6.6.exe,需要先安 阅读全文

posted @ 2016-12-05 00:30 拥剑公子 阅读(519) 评论(0) 推荐(0) 编辑

2016年12月2日

zeromq:c,c++,golang及nodejs使用

摘要: 官网:www.zeromq.org 消息队列比较:http://www.cnblogs.com/charlesblc/p/6058799.html zeromq的一些观点:http://www.cnblogs.com/my_life/articles/5293176.html 1.ZeroMQ是一个 阅读全文

posted @ 2016-12-02 16:00 拥剑公子 阅读(2667) 评论(0) 推荐(0) 编辑

golang下的grpc

摘要: facebook的thrift也是开源rpc库,性能高出grpc一倍以上,grpc发展的较晚,期待以后有长足的进步。简单来说thrift = grpc + protobuf gRPC基于HTTP/2标准设计,带来诸如双向流控、头部压缩、单TCP连接上的多复用请求等特性。这些特性使得其在移动设备上表现 阅读全文

posted @ 2016-12-02 08:33 拥剑公子 阅读(542) 评论(2) 推荐(0) 编辑

2016年10月30日

凑单助手1.0

摘要: 花了一晚上搞的,应对双十一扫货:) 下载:http://pan.baidu.com/s/1c1Zs9l2 截图: 阅读全文

posted @ 2016-10-30 23:25 拥剑公子 阅读(290) 评论(0) 推荐(0) 编辑

2016年10月4日

visual studio code

摘要: 偏好设置: 快捷键设置: 安装扩展: 常用快捷键 阅读全文

posted @ 2016-10-04 21:43 拥剑公子 阅读(245) 评论(0) 推荐(0) 编辑

Golang里面使用protobuf(proto3)

摘要: 参考文章:https://developers.google.com/protocol-buffers/docs/gotutorial 1.下载protoc,地址https://github.com/google/protobuf/releases,里面可以找到win/linux/mac的二进制文件 阅读全文

posted @ 2016-10-04 00:09 拥剑公子 阅读(5503) 评论(0) 推荐(0) 编辑

2016年9月20日

linux一些常用配置

摘要: 1.vi编辑退出不清屏 .bashrc最后加: export TERM=linux 2. 阅读全文

posted @ 2016-09-20 11:08 拥剑公子 阅读(154) 评论(0) 推荐(0) 编辑

2016年9月17日

golang开发环境(2016.9.16)

摘要: 一.windows下安装 1.下载go1.7.3.windows-amd64.msi,建议默认安装到‘C:\Go\’ 2.环境变量 变量 值 说明 Path C:\Go\bin 安装程序默认会设置,如果用zip方式安装则手动设置 GOROOT C:\Go\ 安装程序默认会设置,如果用zip方式安装则 阅读全文

posted @ 2016-09-17 09:24 拥剑公子 阅读(371) 评论(2) 推荐(0) 编辑

2016年9月2日

mongo安全:增加用户名密码

摘要: 0.简述:在非auth下创建账户,然后重启 1.以不需要用户名密码的方式启动mongodb 2.运行客户端mongo,输入以下指令 show dbs;use admin;db.createRole({role:'sysadmin',roles:[], privileges:[{resource:{a 阅读全文

posted @ 2016-09-02 15:09 拥剑公子 阅读(3057) 评论(0) 推荐(0) 编辑

linux开机启动mongodb

摘要: 方式一(不推荐) ubuntu编辑/etc/rc.local /home/wyt/bin/mongodb-linux-x86_64-ubuntu1404-3.2.8/bin/mongod --dbpath=/home/wyt/bin/mongodb/data --logpath=/home/wyt/ 阅读全文

posted @ 2016-09-02 15:07 拥剑公子 阅读(9551) 评论(0) 推荐(0) 编辑

node.js环境安装,及连接mongodb测试

摘要: 1.node.js环境安装 npm config set python python2.7npm config set msvs_version 2013npm config set registry https://registry.npm.taobao.orgnpm config list 2. 阅读全文

posted @ 2016-09-02 00:41 拥剑公子 阅读(584) 评论(0) 推荐(0) 编辑

2016年7月13日

ChartDirector 6.0在MFC下乱码问题

摘要: UnicodeToUtf8()函数实现如下: 阅读全文

posted @ 2016-07-13 17:01 拥剑公子 阅读(450) 评论(0) 推荐(0) 编辑

2016年7月12日

windows环境下搭建react native环境

摘要: 一、基础软件1.安装jdk-1.8.0_922.安装android studio-2.x.x3.安装node.js(目前最新是6.x.x)4.安装genymotion-2.8.x 二、react native环境配置1.node安装react nativenpm config set registr 阅读全文

posted @ 2016-07-12 09:45 拥剑公子 阅读(528) 评论(0) 推荐(0) 编辑

2016年7月8日

2016---7,8,9,10月任务

该文被密码保护。 阅读全文

posted @ 2016-07-08 10:31 拥剑公子 阅读(2) 评论(0) 推荐(0) 编辑

MFC resizer封装

摘要: 用法: #include "resizer.h" 在mfc对话框头文件里面添加成员: CResizer m_Resizer; mydialog.cpp里面: OnInitDialog() { ...... // TODO: 在此添加额外的初始化代码 m_Resizer.Initialize(*thi 阅读全文

posted @ 2016-07-08 09:29 拥剑公子 阅读(396) 评论(0) 推荐(0) 编辑

2016年6月20日

protobuf 数据解析的2种方法

摘要: 方法1: message person{required int32 age = 1;required int32 userid = 2;optional string name = 3;} message test{required int32 time = 1;required int32 us 阅读全文

posted @ 2016-06-20 16:57 拥剑公子 阅读(21558) 评论(0) 推荐(1) 编辑

2016年6月7日

linux cpu性能测试

摘要: sysbench --test=cpu --cpu-max-prime=20000000 run --num-threads=4 mpstat -P ALL 1 1000000 阅读全文

posted @ 2016-06-07 15:29 拥剑公子 阅读(638) 评论(0) 推荐(0) 编辑

2016年4月18日

windows github 命令行使用

摘要: 1.下载git客户端工具,以下2个网站一样的https://git-for-windows.github.io/https://git-scm.com/download/win/ 2.初始化ssh-keygen -t rsa -C "weiqi5@qq.com" 有输入的全部回车 3.网站配置转到g 阅读全文

posted @ 2016-04-18 11:40 拥剑公子 阅读(457) 评论(0) 推荐(0) 编辑

2016年4月9日

VC_MFC水波纹控件,开源

摘要: 代码和效果图: https://github.com/wjx0912/MfcWaterEffect 集成以下5个文件即可: watereffect\DIB.hwatereffect\DIB.cppwatereffect\stdex_vector.hwatereffect\WaterEffect.hw 阅读全文

posted @ 2016-04-09 11:12 拥剑公子 阅读(371) 评论(0) 推荐(0) 编辑

2015年10月17日

lua的栈

摘要: lua的栈是从栈底到栈顶:lua_pushstring(L, "test1");lua_pushstring(L, "test2");lua_pushstring(L, "test3");lua_pushstring(L, "test4");栈如下: 阅读全文

posted @ 2015-10-17 22:13 拥剑公子 阅读(156) 评论(0) 推荐(0) 编辑

2015年9月30日

杂记

摘要: apache和visualsvn冲突,修过httpd.conf,注掉:#Include conf/extra/httpd-ssl.conf 阅读全文

posted @ 2015-09-30 21:39 拥剑公子 阅读(173) 评论(3) 推荐(0) 编辑

2015年9月29日

python笔记集合

摘要: 1.win_64下编译pyd(编译器用的tdm-gcc-5.1) gcc test.c -shared -Ic:\Python27\include -Lc:\Python27\libs -lpython27 -o test.pyd -D MS_WIN64如果没有-D MS_WIN64就会出现错误:u... 阅读全文

posted @ 2015-09-29 16:35 拥剑公子 阅读(379) 评论(0) 推荐(0) 编辑

2015年9月28日

trace工具,c++/c#/python

摘要: 下载地址: http://files.cnblogs.com/files/wjx0912/xtrace.rar 很方便的调试工具,已在c#, vc2015, python2.7.10环境下测试。 闭源免费。无商业限制。 阅读全文

posted @ 2015-09-28 23:48 拥剑公子 阅读(237) 评论(0) 推荐(0) 编辑

2015年9月24日

libtcc使用问题一二

摘要: 问题来由:powersniff(参考博客的文章,在qq群下载最新版本)目前使用lua作为分析插件,但熟练lua的人不多。所以,移植python和tcc两类语言作为插件。tcc(即tiny c),http://bellard.org/tcc/,网站上的资料很丰富将c语言作为脚本给程序调用是个不错的思路... 阅读全文

posted @ 2015-09-24 17:47 拥剑公子 阅读(575) 评论(1) 推荐(0) 编辑

2015年9月15日

pclint vc6/linux 工程,测试正常

摘要: 下载:http://www.gimpel.compojie版搜索一下很好找 里面有vc6 和linux工程的lnt文件,实际使用可能要修改。 http://files.cnblogs.com/files/wjx0912/pc_lint_example.rar 阅读全文

posted @ 2015-09-15 17:13 拥剑公子 阅读(214) 评论(0) 推荐(0) 编辑

抓包工具PowerSniff-0.1

摘要: 做这个程序的意图是wireshark插件编写复杂(虽然也支持lua),而轻量级的工具如smartsniff,minisniff不支持插件化数据分析,各种工具用下来或多或少不顺手。以前写的外挂也都是手工+写代码的方式分析数据,过程非常痛苦。因而诞生了这个抓包后可lua脚本分析的工具。希望对做网络数据分 阅读全文

posted @ 2015-09-15 17:06 拥剑公子 阅读(2046) 评论(3) 推荐(3) 编辑

2015年9月5日

ubnt+ros 接入无线

摘要: ubnt+ros 接入无线一、ubnt配置(UBNT NanoStation LOCOM2 LOCO M2)1.ubnt接poe,转lan接到pc2.ubnt默认ip是192.168.1.20,用户名密码改为ubnt/as...4,本机以太网设置为192.168.1.22;services里面的ht... 阅读全文

posted @ 2015-09-05 21:25 拥剑公子 阅读(1441) 评论(2) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示