- 博客(67)
- 资源 (4)
- 收藏
- 关注
原创 Spring Data Elasticsearch 与ES版本对应关系记录
参考:Versions :: Spring Data Elasticsearch
2024-03-26 15:56:13
700
原创 logstash grok解析Java log实践
-5level:级别从左显示5个字符宽度。%logger{50}包名缩写,%thread表示线程名,%msg:日志消息,
2023-07-08 01:23:58
518
原创 mac电脑使用杂记
技巧通过nfs在局域网内共享文件配置参考 mac 开启nfs配置.MAC中配置nfs server.nfs server启动成功后通过:showmount -e命令查看可被其他客户端挂载的目录列表。客户端通过以下命令挂着server端目录: sudo mount -t nfs -o nolock,nfsvers=3,vers=3 192.168.99.1:/Users/my-name/Documents/Projects /mnt/Projects/...
2021-02-06 19:17:36
148
原创 gdb使用技巧收集
gdb使用问题https://sourceware.org/gdb/wiki/FAQ10. GDB does not see any threads besides the one in which crash occurred; or SIGTRAP kills my program when I set a breakpoint.This frequently happen on Linux, especially on embedded targets. There are two ...
2020-10-03 16:08:26
159
原创 EE问题相关资料摘记
1.问题定义一个赌徒,要去摇老虎机,走进赌场一看,一排老虎机,外表一模一样,但是每个老虎机吐钱的概率可不一样,他不知道每个老虎机吐钱的概率分布是什么,那么每次该选择哪个老虎机可以做到最大化收益呢?这就是多臂赌博机问题(Multi-armed bandit problem, K-armed bandit problem, MAB)。这个经典问题一个核心的权衡问题:我们是应该 探索(explora...
2020-02-02 18:25:34
214
转载 Build in the Cloud: How the Build System works
This is the second in a four part series describing how we use the cloud to scale building and testing of software at Google. This series elaborates on a presentation given during the Pre-GTAC 2010 ev...
2020-01-22 11:16:15
372
原创 ssh端口转发-堡垒机/跳板机
端口转发命令格式ssh -Lf localport:remotehost:remotehostport -p sshserver_port -l sshserver_user sshservereg: ssh -L 2210:10.222.333.5:22 -l ussera -p 80 xxx.host.comssh admin@localhost -p 2210 # 可以直...
2019-09-15 10:22:33
4101
转载 FUSE-用户空间的文件系统
FUSE 的全称是“Filesystem in Userspace”,即“用户空间的文件系统”,这是一个内核模块,能够让用户在用户空间实现文件系统并且挂载到某个目录,就像在内核实现的文件系统一样。使用 FUSE 有几个好处:一是因为在用户空间实现,开发和调试都比较方便;二是可以把一些常用的服务以文件系统的形式展现,方便操作,如 ftpfs,sshfs,mailfs 等;另外可以避免一些版权问题,如...
2019-07-24 15:32:02
673
原创 ycm 安装手记
1.通过vundle安装并下载ycm源码2.下载clang-llvm http://releases.llvm.org/ eg:clang+llvm-3.9.0-x86_64-opensuse13.2.tar3.编译mkdir ycm_buildcd ycm_build#指定clangcmake -G "Unix Makefiles" -DUSE_SYSTEM_BOOS...
2018-10-07 19:12:43
1858
原创 C语言获取本机ip
阅读redis客户端代码,发现一种获取本机IP的方式,摘记记录。#include <stdio.h>#include <stdint.h>#include <stdlib.h>#include <stdarg.h>#include <time.h>#include <sys/time.h>#include <...
2018-04-03 20:23:46
5392
原创 remote gdb
参考官方手册https://sourceware.org/gdb/onlinedocs/gdb/gdbserver-man.htmlgdbserver comm prog [args…]gdbserver –attach comm pidgdbserver –multi comm通过TCP方式启动远程调试gdbserver./gdbserver :2212 aa -flagfile=ser...
2018-03-01 21:08:06
663
原创 nginx 调试指南资源收集
1.官方guidehttps://www.nginx.com/resources/admin-guide/debug/https://www.nginx.com/blog/new-debugging-features-probe-nginx-internals/2.tenginehttp://tengine.taobao.org/book/chapter_02.ht
2017-10-25 21:43:36
257
原创 使用GDlib在图片上绘制文本
使用GDlib在图片上绘制文本GDlib安装在ubuntu 17.04下选择从源码编译安装环境准备: - libpng,png格式支持; 执行apt install libpng-dev - libjpeg - libfreetype,字体支持 - zlib - cmakeclone源代码并切换到目的tag,cd到源码根目录,执行以下命令:cmake -DBUILD_TEST=1 -DEN
2017-10-06 22:41:04
1601
原创 GIT配置
1.window下的CRLF与Linux下的LF提交时转换为LF,检出时转换为CRLF git config --global core.autocrlf true提交时转换为LF,检出时不转换 git config --global core.autocrlf input提交检出均不转换 git config --global core.autocrlf false拒绝提交包含混合换
2017-09-22 21:39:55
253
原创 prometheus+grafana实现筛选项关联查询
配置grafana连接prometheus后,使用prometheus的模板可以实现对图表的筛选,但如何通过前面选择条件关联查询后边的查询条件呢? 想到模板变量,是否可以在查询产生模板变量值时使用前边设定的模板变量? 答案是可以的。 不过在使用过程中发现变量值有空值导致grafana的JavaScript报错,获取不到数据,于是使用了正则...
2017-09-16 19:40:34
13835
1
转载 非root用于绑定小于1024的端口
setcap 'cap_net_bind_service=+ep' /usr/sbin/grafana-server
2017-09-09 19:15:12
994
原创 rapidjson使用问题小计
rapidjson::StringBuffer buffer;rapidjson::Writer<rapidjson::StringBuffer> writer(buffer); rapidjson::Document bid_response;bid_response.SetObject();...... 对多个json value或document ...
2017-08-30 21:09:13
2372
2
原创 rapidjson中string使用的一点小坑
\u00000\u0004T_\u0000\u0000E html><html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">使用rapidjson时出现以上问题,1.不是完整的内容,2.多次转义\bid.AddMem...
2017-07-31 21:58:10
14848
8
原创 通过对日志中UA进行统计分析用户大致的浏览器分布
背景需求:点击日志中记录了浏览器UA信息,现在需要对UA进行分析,大致统计用在各个浏览器中的分布,给前端同学参考兼容性测试。采用的方法:第一步,从Hadoop集群中获取各个UA出现的频次,通过hive语句轻松实现。第二步,使用awk脚本进行分析。awk脚本内容:#操作系统标示#加密标示#浏览器使用的主流渲染引擎有:Gecko、WebKit、KHTML、P
2017-07-09 17:01:46
1787
原创 jenkins执行shell脚本时邮件模板使用手记
在工作中,需要用Jenkins调度执行shell脚本,同时需要发送邮件通知执行情况。其中比较特殊的一个需求是邮件中显示shell脚本执行结果。前提条件:jinkens集成工具已安装了邮件插件,https://plugins.jenkins.io/email-ext GitHub地址:https://github.com/jenkinsci/email-ext-plugin
2017-07-09 16:42:57
1927
原创 safai中ifram使用JS吊起app中的一点小坑
safari对于iframe里的_blank”>的链接无法呼起App(呼起方式为到达页面JS调用特定schema的url)修改成_top”>就可以了
2017-05-15 10:37:15
627
原创 openresty用AES/ECB/NoPadding 128位解密
--ECB 方式无需iv,传递一个16字节的iv以便用原始key进行EVP_DecryptInit_ex初始化local price_decode = aes:new(dspkey,nil,aes.cipher(128,"ecb"),{iv=dspkey})local base_decode_bytes = ngx.decode_base64(ad_base_decode)ngx.log(ng
2016-12-21 21:57:37
8162
转载 boost 资源收集
asio示例:Unicomm is a multiplatform C++ framework that allows to create custom network protocols over TCP transport. Unicomm takes care about communication details to make focus on business logic. It
2016-12-04 00:52:35
446
转载 velocity中对邮件模板使用自定义工具
参考资源:http://www.sergiy.ca/how-to-create-custom-tools-for-apache-velocity/http://stackoverflow.com/questions/14237862/how-get-velocityengine-with-velocity-tools-in-spring-3
2016-10-11 18:48:53
893
转载 商业智能与可视化报告开源软件
收集备用:1.Jaspersoft 是一个基于商业智能的顶级开源软件供应商。包括可视化数据,报表分析一直到4月才被 Tibco Software 发布2.. Pentaho 提供了一款免费的包括业务分析以及数据集成、报表设计器和市场开发插件,以及帮助Pentaho社区扩展功能的平台的社区版的业务分析套件。3.SpagoBI 是100%开源的商业智能套件。它的这种
2016-09-24 20:57:35
767
转载 linux系统分析工具续-SystemTap和火焰图(Flame Graph)
本文为网上各位大神文章的综合简单实践篇,参考文章较多,有些总结性东西,自认暂无法详细写出,建议读文中列出的参考文档,相信会受益颇多。下面开始吧(本文出自 “cclo的博客” 博客,请务必保留此出处http://xuclv.blog.51cto.com/5503169/1184517)SystemTap简介: SystemTap provides free software (GPL) i
2016-08-06 17:56:05
6480
原创 嵌入式开发资源收集
http://blog.gitter.im/The next-generation integrated development environment for IoThttps://community.platformio.org/
2016-07-26 13:25:43
420
转载 lua+nginx 单元测试覆盖资源收集
测试库:https://github.com/membphis/lua-resty-test OpenResty最佳实践 使用https://moonbingbing.gitbooks.io/openresty-best-practices/content/test/unittest.htmllua代码覆盖https://keplerproject.g
2016-07-24 21:01:39
1188
转载 动态库的查找路径
LD_LIBRARY_PATH: 动态库的查找路径设置:方法一: export LD_LIBRARY_PATH=LD_LIBRARY_PATH:/XXX 但是登出后就失效方法二: 修改~/.bashrc或~/.bash_profile或系统级别的/etc/profile 1. 在其中添加例如export PATH=/opt/ActiveP/lib:$LD_LIBR
2016-07-11 17:26:58
2873
转载 awk 参考
〇、前言 意见反馈,请mailto:datouwang...at...gmail.com。一、AWK简介 AWK名字来源于三位创造者Aho、Weinberger和Kernighan统称。 AWK擅长处理文本数据。二、AWK的调用方式 awk [-Ffs] [-v var=value] [program | -f
2016-05-12 20:54:33
305
原创 大数据相关资源收集
hue 开源的Apache Hadoop UI系统 http://gethue.com/oozie 一种框架,它让我们可以把多个Map/Reduce作业组合到一个逻辑工作单元中 http://oozie.apache.org/
2016-04-26 11:27:26
368
转载 Device and Viewport Size In JavaScript
Viewport: How to get viewport size.jQuery(window).width() uses document.documentElement.clientWidth and is regarded as cross-browser compatible. Directly using .clientWidth is faster and equ
2016-04-06 16:31:52
595
多格式的1D/2D条码图像处理库(Zxing-2.2)
2013-10-12
基于android平台的图片上绘制字符串演示程序
2013-10-12
基于8086的竞赛六路抢答器(汇编)
2011-03-26
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人