02 2021 档案

摘要:1. Web Analytics Dashboard for NGINX Required NGINX json log format configuration below. https://grafana.com/grafana/dashboards/12559 log_format json_ 阅读全文
posted @ 2021-02-26 23:08 littlevigra 阅读(1378) 评论(0) 推荐(0) 编辑
摘要:1.根据http://xxxx.com/nginx_status/ 统计 参考:https://www.oschina.net/code/snippet_226718_17879 #/bin/bash 2 3 #nginx_status_url 手动配置项 4 NGINX_STATUS_URL="h 阅读全文
posted @ 2021-02-26 00:33 littlevigra 阅读(2865) 评论(0) 推荐(1) 编辑
摘要:1. nginx的配置 location /jenkinsno { index index.html index.htm; proxy_pass http://127.0.0.1:8081; proxy_connect_timeout 3000s; proxy_send_timeout 3000s; 阅读全文
posted @ 2021-02-20 18:56 littlevigra 阅读(356) 评论(0) 推荐(0) 编辑
摘要:1.脚本的路径 2.代码路径 3.自动生成的Jenkinsfile creating-a-pipeline-in-blue-ocean/Jenkinsfile pipeline { agent { docker { image 'node:6-alpine' args '-p 3000:3000' 阅读全文
posted @ 2021-02-20 11:36 littlevigra 阅读(187) 评论(0) 推荐(0) 编辑
摘要:1.mail As an example of loading variable values from Groovy: mail to: 'devops@acme.com', subject: "Job '${JOB_NAME}' (${BUILD_NUMBER}) is waiting for 阅读全文
posted @ 2021-02-18 23:59 littlevigra 阅读(68) 评论(0) 推荐(0) 编辑
摘要:1. 10秒钟测试ip段所有IP的连通性 (base) [root@wlt-overseas-middleware-master ~]# cat su-asyncio-re-cancel.py import asyncio import time import re # call shell cmd 阅读全文
posted @ 2021-02-13 00:24 littlevigra 阅读(1436) 评论(0) 推荐(0) 编辑
摘要:1. asyncio import time import asyncio # func called as one task async def worker_1(time_sleep): print('worker_1 had been called') await asyncio.sleep( 阅读全文
posted @ 2021-02-12 00:45 littlevigra 阅读(144) 评论(0) 推荐(0) 编辑
摘要:1. 要解决的问题: 想要快速的访问类中的私有属性,但是不想直接暴露出原来类中的属性 @property def tick(self): return self._tick 2. 经典例子 # property decorator make defining and modifying class' 阅读全文
posted @ 2021-02-09 13:29 littlevigra 阅读(101) 评论(0) 推荐(0) 编辑
摘要:1.先定义生成器 2.用next(generator)调用生成器,相加,验证 # todo: define my_generater and be called by next() def my_generater(k): i = 1 while True: yield i ** k i += 1 阅读全文
posted @ 2021-02-02 00:28 littlevigra 阅读(90) 评论(0) 推荐(0) 编辑
摘要:1.问题: 在[1, 2, 3, 4, 5, 6]中,找出满足 x*x > target的最小的数; 2. l r mid array[mid] flag(指针) target 0 5 2 9 -1 15 3 5 4 25 4 15 3 3 3 16 3 15 3.代码 # [1, 2, 3, 4, 阅读全文
posted @ 2021-02-02 00:05 littlevigra 阅读(66) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示