2019年2月26日

docker实践

摘要: Docker — 从入门到实践 https://yeasy.gitbooks.io/docker_practice/content/https://www.cnblogs.com/51kata/category/789766.html 51kata docker博客园学习笔记 https://git 阅读全文

posted @ 2019-02-26 20:45 csuyangpeng 阅读(217) 评论(0) 推荐(0) 编辑

2019年2月21日

realtime guard stock

摘要: 1 import tushare 2 import time 3 import os 4 5 while 1: 6 df=tushare.get_realtime_quotes('600536') 7 print df['price'] 8 if df['price'].agg('max') > " 阅读全文

posted @ 2019-02-21 11:00 csuyangpeng 阅读(133) 评论(0) 推荐(0) 编辑

2019年2月16日

ci_guard

摘要: 1 #!/bin/bash 2 # ./ci_guard.sh 3 4 ERRORSTATUS=10 5 TESTSTATUS=0 6 USER="moonx" 7 IPs="192.168.1.102 " # add host ip like "xx.xx.xx.xx xx.xx.xx.xx", 阅读全文

posted @ 2019-02-16 12:00 csuyangpeng 阅读(152) 评论(0) 推荐(0) 编辑

2019年1月19日

protobuf practice

摘要: https://www.ibm.com/developerworks/cn/linux/l-cn-gpb/三点: 1. 编写proto文件2. 编译proto生成对应语言的实现3. 在需求代码中引入2中的实现1. 编写proto文件清单 1. lm.helloworld.proto 文件 packa 阅读全文

posted @ 2019-01-19 17:10 csuyangpeng 阅读(332) 评论(0) 推荐(0) 编辑

2019年1月9日

shell 骚操作

摘要: for /L %i in (1,3,200) do ping -n 2 -w 60 192.168.1.%i https://www.xuebuyuan.com/730125.html for history show time and userhttps://www.cnblogs.com/xio 阅读全文

posted @ 2019-01-09 10:46 csuyangpeng 阅读(521) 评论(1) 推荐(0) 编辑

2019年1月7日

ubuntu install software Q&A

摘要: 1.按照网上指导sudo apt install wine出现如下问题:在用sudo apt-get install kmymoney2安装软件kmymoney2时,由于速度太慢,想换个软件源,直接关闭了终端,apt-get但进程没有结束,结果终端提示 :“E: 无法获得锁 /var/lib/dpk 阅读全文

posted @ 2019-01-07 12:59 csuyangpeng 阅读(116) 评论(0) 推荐(0) 编辑

2018年12月29日

redis源码阅读

摘要: 服务器启动过程1、初始化服务器状态结构在启动服务器时,设置服务器运行ID、默认运行频率、默认配置文件路径、默认端口号等属性。initServerConfig(); 2、载入配置选项在启动服务器时,用户可以通过命令行给定配置参数或指定配置文件来修改服务器的默认配置。loadServerConfig(configfile,options);3、初始化服务器数据结构在启动服务器时,载入配置选项后,服务... 阅读全文

posted @ 2018-12-29 15:54 csuyangpeng 阅读(178) 评论(0) 推荐(0) 编辑

log

摘要: log记录梳理规则 需要增加的日志: 1、异常分支需要记录(例如:内存申请不到,参数非法等); 2、外部接口调用,记录返回值成功/失败,失败时相关参数记录,例如错误码; 3、功能的入口、出口、关键流程需要记录日志; 4、关键消息收发记录; 5、上电时间,状态跳转,加载数据成功等记录; 6、正确的使用 阅读全文

posted @ 2018-12-29 09:56 csuyangpeng 阅读(239) 评论(0) 推荐(0) 编辑

2018年12月20日

useful command

摘要: pw 1aA? nohup command >/dev/null 2>&1 # doesn't create nohup.outnohup ./a.out & tail -f nohup.out -f, --follow[={name|descriptor}] output appended dat 阅读全文

posted @ 2018-12-20 17:18 csuyangpeng 阅读(507) 评论(0) 推荐(1) 编辑

2018年12月18日

redis调试--backtrace

摘要: [yangpeng@yangpeng src]>make [yangpeng@yangpeng src]>sudo make installredis.confloglevel debuggdb redis-server redis-cli #include <execinfo.h> int bac 阅读全文

posted @ 2018-12-18 12:43 csuyangpeng 阅读(559) 评论(0) 推荐(0) 编辑

导航

//替换成自己路径的js文件