🌓

王朔

初高中痴迷韩寒的杂文很长一段时间后,几乎再也看不进去任何别的虚构文学,一些我感兴趣名人的散文杂文也很难读下去。大学之后买的书几乎90%都是小说,到现在一本都没看完,应该是我感受力低下,又很容易质疑,很难沉浸到情节里。最近两年女权意识觉醒,男作家的书更难看进去了,很容易生理不适。直到今天开始看王朔,才找当年看韩寒的酣畅淋漓的感觉:锋利、直接、诚实、精炼巧妙。

Read More

Personal Bill Tracker

背景:最近在网上找了一个很好用notion的记账模板,也坚持记账了一个月。但这个模板不方便分析,也没有预算管理的功能。所以我提了两个业务需求: 按照支出的category结算总额,并更新到budget table 为了可视化当前预算的支出状态,我要把notion里的budget table里的数据同步到了google sheet,在google sheet...

Read More

Finally recovered my blog

It’s been a long time since I wrote something here. Becuase I lost my local markdown files, and I have to recover those from static html files.Actually this issue has bothor...

Read More

parallel-ssh

execute commands simultaneously on multiple servers1parallel-ssh -h deploy/servers.txt -t 0 -i "bash /data/shared/nemo/tools/kill_containers.sh"` /data/shared is the sha...

Read More

一些想法

一直想有一个记录的空间,最好是在一个开放的地方,最好不要有认识的人。 搭博客最近有各种奇奇怪怪的想法。想记录下来又一直挑剔各种记录形式。比如日程本,周计划本,都已经买了,但又担心现在用本子记了,后面出去旅行的时候因为不方便携带,导致漏记。因为这个原因一直拖延拖延拖到现在才开始。23年年初的两个月我几乎是很wlb的,一直在研究别的事情。不过总算还是把博客搭好了...

Read More

pandas使用记录

Read More

stress test http interface with wrk

最近要压一个接口,要找到latency 50ms内的最大qps。因为locust不是很方便调节qps,所以打算用wrk试一下。wrk其实是github上的一个轮子,官方README对它的描述是:”a HTTP benchmarking tool“

Read More

用gotest benchmark测试代码块的性能

压测一个函数(Calculate)压测该函数前,需要准备测试数据,即被压函数的参数.准备测试数据的这部分时间应该被剔除。 cmd如下 1go test -test.bench 'CalculateScore' -benchtime=10s 函数实现 123456789func BenchmarkCalculateScore(b *test...

Read More

hdfs

Basic Usage of HDFS1234hdfs dfs -ls [hdfs dir] # List Files:hdfs dfs -get [hdfs file_path] # Download a Filehdfs dfs -put [file need upload] [hdfs file_path] # Upload a Filehdfs df...

Read More

docker_compose

docker compose是什么?用于定义和运行多容器docker应用程序的工具。通过compose,用yml文件来配置应用程序需要的所有服务,用一个命令,可以从yml文件配置中创建并启动所有服务。使用docker compose的方式: 使用Dockerfile来定义应用程序的环境 使用docker-compose.yml定义应用程序的,这样应用程序们...

Read More