随笔分类 -  软件工程

软件工程理论及实践
Grafana系列一:使用Grafana画实时曲线
摘要:背景 示例:实时CPU使用率 阅读全文
posted @ 2024-09-06 16:02 ac23 阅读(27) 评论(0) 推荐(0) 编辑
ZeroMQ学习笔记:一
摘要:个人理解的定义 高效、低延迟、可重用的消息传递系统(或消息传递层,有点类型网络协议,但不是消息队列) 基于python3和ZMQ做进程间通信示例: # 本脚本用于从zmq队列中接收订阅的数据 import time import json import zmq def subscriber(code 阅读全文
posted @ 2024-07-24 17:42 ac23 阅读(10) 评论(0) 推荐(0) 编辑
研究一下这个问题
摘要:for code in codes: # Get the data of the stock that corresponds to the current ticker symbol. current_stock = origin_data[code] mask = (current_stock[ 阅读全文
posted @ 2024-04-18 11:01 ac23 阅读(8) 评论(0) 推荐(0) 编辑
crontab定时执行shell脚本失败
摘要:解决办法 要定时执行的shell脚本开头引入你自己有访问权限的环境变量文件: #!/bin/sh . /home/hsy/.profile(这是Ubuntu的,如果是CentOS就改成bash_profile) . /home/hsy/.bashrc # 以下写你脚本的内容 crontab -e要这 阅读全文
posted @ 2024-03-06 14:30 ac23 阅读(15) 评论(0) 推荐(0) 编辑
新版本Kafka(with ZooKeeper)
摘要:命令行创建topic的命令: ./kafka-topics.sh --create --bootstrap-server ip:port --topic TestUseCommand ip和port为Kafka broker服务的ip和端口号 阅读全文
posted @ 2023-09-25 15:16 ac23 阅读(12) 评论(0) 推荐(0) 编辑
更改docker镜像的默认存放位置
摘要:背景:由于生成机器时常出现某个原定目录磁盘空间不足的情况,所以需要更改体积庞大的docker镜像的默认存储位置 参考这篇文章的做法即可: https://evodify.com/change-docker-storage-location/ 阅读全文
posted @ 2023-03-22 14:11 ac23 阅读(43) 评论(0) 推荐(0) 编辑
一个写得很好的gitlab.yml模板(有Windows和Ubuntu)
摘要:出自这个GitHub:https://github.com/nanoporetech/scrappie/blob/master/.gitlab-ci.yml # Yaml CI config for Gitlab See. http://docs.gitlab.com/ce/ci/yaml/READ 阅读全文
posted @ 2023-01-12 09:47 ac23 阅读(146) 评论(0) 推荐(0) 编辑
gitlab-CICD:在gitlab.yml中运行powershell命令
摘要:直接放出gitlab.yml脚本内容 pages: stage: deploy tags: — test-tag script: # run PowerShell Command — powershell -Command "Get-Date" # run PowerShell script — p 阅读全文
posted @ 2023-01-12 09:40 ac23 阅读(148) 评论(0) 推荐(0) 编辑

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