/images/avatar.png

Schaepher's Blog

发展的世界观

为什么宇宙大爆炸后,太阳系上所有星球没有在一瞬间形成?为什么地球形成后要经过很长的时间才出现生物?为什么拥有像人类这样智慧的生物不是第一种出

Postman

使用 Pre-request Script 修改 POST Body 内容 在 body 里面添加变量: 1 2 3 4 { "name": "{{name}}", "value": {{value}} } 然后在脚本里设置变量的值: 1 2 pm.variables.set("name", "timestamp") pm.variables.set("value", Math.round(new Date()/1000)) 设置的值会被简单地填充到 Body 中,不会根据值的

Promethues Windows 温度监控

https://github.com/openhardwaremonitor/openhardwaremonitor https://stackoverflow.com/questions/3262603/accessing-cpu-temperature-in-python collector/coretemp.go 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67

分布式的几个要点

过载保护 http://sharecore.net/post/%E8%BF%87%E8%BD%BD%E4%BF%9D%E6%8A%A4%E7%AE%97%E6%B3%95%E6%B5%85%E6%9E%90/ 令牌桶算法 按一定速率往桶里放令牌,收到请求的时候从桶里取出。如果取不到令牌,则拒绝处理请求。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19