07 2023 档案
摘要:### 关联字段查询 ``` _exam_fields = ['add_datetime', 'times', 'start_date', 'end_date', 'uuid', 'name', 'img', 'duration', 'bx_duration'] _alias_fields = {
阅读全文
摘要:#### dockerfile ``` # Compile and install qemu_stm32 from fedora:28 RUN dnf install -y \ arm-none-eabi-gcc\ arm-none-eabi-newlib\ findutils\ gcc\ git\
阅读全文
摘要:#### 上古时期 python 2.6 之前 ``` name = "Alice" age = 25 print("My name is %s and I'm %d years old." % (name, age)) ``` #### 这是 Python 2.6+ 版本 类似 java ```
阅读全文
摘要:#### 将图片平铺到真个页面 ``` package com.example; import org.ofdrw.layout.OFDDoc; import org.ofdrw.layout.PageLayout; import org.ofdrw.layout.VirtualPage; impo
阅读全文
摘要:``` variables: PROJECT_NAME: fuluops_svr stages: - build_push .app_build_push: &app_build_push stage: build_push image: registry.cn-hangzhou.aliyuncs.
阅读全文
摘要:``` apiVersion: extensions/v1beta1 kind: Deployment metadata: name: opssvr-deployment namespace: ops-prod spec: selector: matchLabels: app: opssvr rep
阅读全文
摘要:#### 思路 解压 zip 读取 xml ``` import json from xml.dom.minidom import parse import shutil import zipfile def unzip_file(zip_path, unzip_path=None): """ :p
阅读全文
摘要:使用签名 HTTP Client 的加密库 crypto 获取 token 后 全局变量中 ### 获取 token GET {{host}}/api/getBtzhDocApi?apikey=xxxx&userid=xxxx userid: xxx user-user-agent: JAVA Co
阅读全文
摘要:cmake 路径 /Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake -version CMake 主要配置文件 配置 :CMakeLists.txt 作用 :可以生成适用于多种构建系统的配置文件 构建工具 Ninja make cmak
阅读全文
摘要:### 使用结束减去开始时间 * 批量更新已经超时的记录 ``` ExamRecord.objects.filter( over_time__lt=datetime.datetime.now(), submit=1 ).update( submit=3, use_time=ExpressionWra
阅读全文
摘要:#### 选择Pre-request Scripts,输入脚本 #### md5 ```` var appKey = pm.environment.get("appKey"); var appSecret = pm.environment.get("appSecret"); var queryPar
阅读全文
摘要:### doocker for mac 的虚拟机是基于 linuxkit * 虚拟: HypervisorKit * 网络 : vpnkit * 文件: dataKit * 系统: LinuxKit * 系统工具集 busybox #### 一般的情况的 docker的端口映射 ``` iptabl
阅读全文
摘要:#### 安装 ubuntu23 * orbstack new machines #### 安装 docker ``` sudo apt-get install docker-ce ``` ### 启动测试 ``` docker run alpine:latest "echo" "Hello, Wo
阅读全文
摘要:三个环境存在是会让 docker 命令混乱 colim 真实的路径 sudo ln -s /opt/homebrew/bin/docker -> /opt/homebrew/Cellar/docker/24.0.2/bin/docker docker.sock ~/.colim/run/docker
阅读全文
摘要:#### 默认是socket ``` unix:///var/run/docker.sock ``` ### TCP ``` unix:////Users/jimogangdan/.docker/run/docker.sock tcp://127.0.0.1:3575 ``` ### ssh ```
阅读全文
摘要:#### tips namespace是容器技术的根基 * 查看虚拟机的 8 种 cgroup、ipc、net、pid、pid_for_children、time、time_for_children、user、 uts、mnt ### 利用容器进去 * –rm : 表示在退出的时候就自动删除该容器
阅读全文
摘要:#### 使用环境变量 指定 docker for mac 适用 Rosetta * DOCKER_DEFAULT_PLATFORM=linux/amd64 * 指定后 docker for mac 使用 Rosetta2 ``` version: '3' services: mule-applic
阅读全文
摘要:Debian sed -i 's#http://deb.debian.org#https://mirrors.ustc.edu.cn#g' /etc/apt/sources.list sed -i 's|security.debian.org/debian-security|mirrors.ustc
阅读全文
摘要:#### python3.7 async关键字 * 冲突版本 celery3.x * 方案一: celery3.x+python3.6 * 方案二 : celery4.x+python3.7
阅读全文