06 2023 档案

摘要:首先实现讲本地流量转发远程指定的网段 将本地的子网 192.168.3.1/24 和 10.172.0.12/24 转发到远程主机 172.16.37.208 的端口 5004。 远程主机必须是访问通过的主机 IP 实现方式 sshuttle -r root@172.16.37.208:5004 1 阅读全文
posted @ 2023-06-29 11:15 vx_guanchaoguo0 阅读(173) 评论(0) 推荐(0) 编辑
摘要:##### STM32 * ST 是指意法半导体公司主要设计芯片 * M Cortex-M 内核 包含M0、M0+、M3、M4 或 M7 内核 * 另外还有 Cortex-M 主要用于移动设备 例如手机平板 #### 番外篇 * 很多觉得华为很厉害其实不然 * 顶层是 类似ST的芯片设置厂商 只是设 阅读全文
posted @ 2023-06-28 17:38 vx_guanchaoguo0 阅读(16) 评论(0) 推荐(0) 编辑
摘要:### 使用 m2 开启 orbstack 的的 docker 远程 API (docker/damon.json) ``` { "hosts": [ "tcp://0.0.0.0:2375", "unix:///var/run/docker.sock" ], "registry-mirrors": 阅读全文
posted @ 2023-06-28 16:16 vx_guanchaoguo0 阅读(103) 评论(0) 推荐(0) 编辑
摘要:### 更改 镜像 ``` mv /etc/apt/sources.list /etc/apt/sources.list.bak && \ echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-fr 阅读全文
posted @ 2023-06-27 15:52 vx_guanchaoguo0 阅读(247) 评论(0) 推荐(0) 编辑
摘要:#### 单独设置 ![](https://img2023.cnblogs.com/blog/2697130/202306/2697130-20230625175534601-762648533.png) ### 全局设置 * 设置 .kettle/shared.xml ``` qdsjzx_dat 阅读全文
posted @ 2023-06-25 17:58 vx_guanchaoguo0 阅读(496) 评论(0) 推荐(0) 编辑
摘要:#### dockerfile ``` FROM openjdk:8-jdk-alpine as TEMP_BUILD_IMAGE WORKDIR /apps/ RUN set -eux && sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/ 阅读全文
posted @ 2023-06-25 10:10 vx_guanchaoguo0 阅读(12) 评论(0) 推荐(0) 编辑
摘要:#### docker 构建中会限制容器日志的总大小 * 当一个步骤的日志记录速度超过 40 MB/s 时 BuildKit 会暂停并等待某些日志被写入磁盘。 * 当一个步骤输出超过 16 MB 的日志时,BuildKit 会将它截断并创建一个新的日志文件。 ### 修改参数 * env.BUILD 阅读全文
posted @ 2023-06-21 17:40 vx_guanchaoguo0 阅读(594) 评论(0) 推荐(0) 编辑
摘要:### 系统架构 * 树莓派:基于ARM Cortex-A系列处理器(如Cortex-A53)的Linux操作系统。 * PS4:基于x86-64架构的FreeBSD操作系统。 * Switch:基于ARMv8-A架构的Nvidia Custom操作系统,也被称为“Horizon OS”。 * ST 阅读全文
posted @ 2023-06-20 09:30 vx_guanchaoguo0 阅读(147) 评论(0) 推荐(0) 编辑
摘要:### 完整配置 直接引用官方仓库 点击查看代码 ``` 4.0.0 org.mule.app gsb 1.0.0-SNAPSHOT mule Mule gsb Application UTF-8 UTF-8 3.9.0 1.3.2 3.9.0 1.1 5.3.3 1.7.12 3.11.0 org 阅读全文
posted @ 2023-06-20 08:53 vx_guanchaoguo0 阅读(34) 评论(0) 推荐(0) 编辑
摘要:##### 在对接接口返回的是 latin 控台乱码 ![](https://img2023.cnblogs.com/blog/2697130/202306/2697130-20230616170312233-1585360181.png) ### 可是只用 HTTP Client脚本打印输出 `` 阅读全文
posted @ 2023-06-16 17:05 vx_guanchaoguo0 阅读(74) 评论(0) 推荐(0) 编辑
摘要:#### 不知道了点了啥 成这样 ![](https://img2023.cnblogs.com/blog/2697130/202306/2697130-20230616161822745-24662228.png) ### 点击右侧设置 取消分组即可 ![](https://img2023.cnb 阅读全文
posted @ 2023-06-16 16:19 vx_guanchaoguo0 阅读(38) 评论(0) 推荐(0) 编辑
摘要:### 利用浏览器的打印函数 ``` var aa = { 'method': 'yczmlsxkzcx', 'UserId': 'QXZSPJ', 'apiSecret': 'eyJhbGciOiJIUzI1NiJ9.eyJtZXRob2QiOiJ5Y3ptbHN4a3pjeCIsImV4cCI6 阅读全文
posted @ 2023-06-16 15:03 vx_guanchaoguo0 阅读(166) 评论(0) 推荐(0) 编辑
摘要:``` UPDATE adqm_data_source t1 JOIN source_info t2 ON t1.`source_name` = t2.`name` SET t1.`password` = t2.`password`; ``` 阅读全文
posted @ 2023-06-16 12:08 vx_guanchaoguo0 阅读(7) 评论(0) 推荐(0) 编辑
摘要:#### 限制必须是 长度必须是2的指数 * 直接取指数的低位长度算法 #### 演示 * 长度为8 * 0b000(0) * 0b001(1) * 0b010(2) * 0b011(3) * 0b100(4) * 0b101(5) * 0b110(6) * 0b11(7) * 13 二进制 0x1 阅读全文
posted @ 2023-06-15 08:57 vx_guanchaoguo0 阅读(261) 评论(0) 推荐(0) 编辑
摘要:以下是一些常用的 HTTP Client API: . .setHeader("Header-Name", "Header-Value"): 设置请求头 . .addQueryParam("param-name", "param-value"): 添加查询参数 .setBody("{"key":"v 阅读全文
posted @ 2023-06-14 14:57 vx_guanchaoguo0 阅读(119) 评论(0) 推荐(0) 编辑
摘要:#### 返回拉丁编码 ![](https://img2023.cnblogs.com/blog/2697130/202306/2697130-20230614145138580-163937630.png) #### python 处理方式 ``` text.encode('latin').dec 阅读全文
posted @ 2023-06-14 14:54 vx_guanchaoguo0 阅读(67) 评论(0) 推荐(0) 编辑
摘要:``` ### Check response status, headers, and content-type GET https://httpbin.org/get > {% client.test("Request executed successfully", function() { cl 阅读全文
posted @ 2023-06-14 11:34 vx_guanchaoguo0 阅读(162) 评论(0) 推荐(0) 编辑
摘要:#### oh-my-zsh ``` sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" ``` ### 修改背景颜色 * 打开终端 右键背景-》检查显示器-》双击喜欢的背景-》设置 阅读全文
posted @ 2023-06-14 08:50 vx_guanchaoguo0 阅读(50) 评论(0) 推荐(0) 编辑
摘要:#### 三个插件都是是用干啥的 #### maven-compiler-plugin * 进行源代码的编译 #### build-helper-maven-plugin * 项目中添加额外的资源、源代码、构建输出目录和依赖项等 #### Maven-assembly-plugin * 生成可执行 阅读全文
posted @ 2023-06-13 16:18 vx_guanchaoguo0 阅读(91) 评论(0) 推荐(0) 编辑
摘要:### 在springboot 2.4.5之后的 变成了jinut5 * 直接引用即可 不需要排除 org.junit.jupiter.api.Test ``` org.springframework.boot:spring-boot-starter-test ``` #### 测试数据 H2 `` 阅读全文
posted @ 2023-06-13 11:45 vx_guanchaoguo0 阅读(103) 评论(0) 推荐(0) 编辑
摘要:#### 目前xdebug你不支持arm 只能自编译 ### pecel 安装是arm64 ``` arch -arm64 sudo pecl install xdebug ``` ### 编译 * 下载 https://xdebug.org/download * 编译 ``` git clone 阅读全文
posted @ 2023-06-13 11:29 vx_guanchaoguo0 阅读(104) 评论(0) 推荐(0) 编辑
摘要:#### 第一种直接用插件 spring-boot-gradle-plugin * 无需写入 版本 ``` buildscript { repositories { maven { url 'https://maven.aliyun.com/repository/public' } } depend 阅读全文
posted @ 2023-06-12 18:07 vx_guanchaoguo0 阅读(633) 评论(0) 推荐(0) 编辑
摘要:### dockerfile ``` FROM openjdk:8-jdk-alpine AS TEMP_BUILD_IMAGE ENV ENVREFRESH_DATE 2023-06-12 15:00 RUN set -eux && sed -i 's/dl-cdn.alpinelinux.org 阅读全文
posted @ 2023-06-12 15:10 vx_guanchaoguo0 阅读(40) 评论(0) 推荐(0) 编辑
摘要:#### 如果 JSON 数据中包含了 PHP 的关键字,如 true、false 或者 null,则 json_decode() 函数将无法成功解析该数据。 #### 因此可以使用单独判断的方式 ``` $v = $v true ? 'true' : $v; $v = $v false ? 'fa 阅读全文
posted @ 2023-06-12 14:05 vx_guanchaoguo0 阅读(67) 评论(0) 推荐(0) 编辑
摘要:#### 很多时候我们看到 .pem .cert .ras .pub ### 例如我们经常的免密的登录 ![](https://img2023.cnblogs.com/blog/2697130/202306/2697130-20230612110357790-163625745.png) #### 阅读全文
posted @ 2023-06-12 11:10 vx_guanchaoguo0 阅读(147) 评论(0) 推荐(0) 编辑
摘要:### 更新后地址 * 原来地址 *http://nexus.pentaho.org/content/groups/omni/ * 新地址: * https://repo.orl.eng.hitachivantara.com/artifactory/pnt-mvn * github: * https 阅读全文
posted @ 2023-06-09 15:26 vx_guanchaoguo0 阅读(589) 评论(0) 推荐(0) 编辑
摘要:#### 原来的excel ![](https://img2023.cnblogs.com/blog/2697130/202306/2697130-20230608105703375-1122037012.png) #### 更换底色后的 ![](https://img2023.cnblogs.co 阅读全文
posted @ 2023-06-08 11:00 vx_guanchaoguo0 阅读(18) 评论(0) 推荐(0) 编辑
摘要:### 可以application 处理 也可以在nginx 上处理 #### nginx ``` server { listen 80; server_name localhost; location / { add_header Access-Control-Allow-Origin 'http 阅读全文
posted @ 2023-06-08 09:01 vx_guanchaoguo0 阅读(21) 评论(0) 推荐(0) 编辑
摘要:#### jinkens shell ``` make all IMG_NS=hygov ``` ### 项目makefile ``` IMG_NS?=MUST_SPECIFIED IMG_TAG?=latest SERVICE=kettle IMG=data-exchange-platform-k 阅读全文
posted @ 2023-06-07 15:32 vx_guanchaoguo0 阅读(9) 评论(0) 推荐(0) 编辑
摘要:### 由于gitlab 限制 导致413 * 文件太大了分批次提交 * 撤销太大的提交 ``` git reset --soft HEAD^ ``` 阅读全文
posted @ 2023-06-07 09:22 vx_guanchaoguo0 阅读(36) 评论(0) 推荐(0) 编辑
摘要:#### 不是使用 dependencyManagement ``` org.springframework.boot spring-boot-starter-parent 2.1.6.RELEASE ``` ### 引入 systemPath ``` org.pentaho pentaho-enc 阅读全文
posted @ 2023-06-06 14:47 vx_guanchaoguo0 阅读(451) 评论(0) 推荐(0) 编辑
摘要:#### 一般网上说进入通过screen * screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty * 实际上没有 /tty ### 通过镜像进入 ``` /opt/homebrew/bin/docker run -it --pri 阅读全文
posted @ 2023-06-06 09:57 vx_guanchaoguo0 阅读(64) 评论(0) 推荐(0) 编辑
摘要:### 利用 QEMU 启动 lima 虚拟机 在通过colima 包装成docker * 配置文件 ~/.lima/colima * 默认目录 ~/ * 9p 文件挂载会存在权限问题需要处理 * 默认还在家目录 * mac -> lima -> docker 三层转发 * 在mac 上是 staf 阅读全文
posted @ 2023-06-06 09:01 vx_guanchaoguo0 阅读(804) 评论(0) 推荐(0) 编辑
摘要:``` /path/to/local/repo --> true --> false --> com.your.plugins --> optional true http proxyuser proxypass proxy.host.net 80 local.net|some.host.com - 阅读全文
posted @ 2023-06-05 15:32 vx_guanchaoguo0 阅读(9) 评论(0) 推荐(0) 编辑
摘要:##### 由于 gitlab 限制了上传大小 * 只能使用 dockerfile 构建jar * 在docker build 中打包 #### 直接构建 * 容器内部存在 java 源码 容易泄露 * 使用多阶段构建 构建出jar会后丢弃基础镜像 #### mvnw 使用mvn * 固定版本 * 阅读全文
posted @ 2023-06-05 14:24 vx_guanchaoguo0 阅读(30) 评论(0) 推荐(0) 编辑
摘要:#### build.gradle ``` apply(plugin: 'java') apply(plugin: 'idea') apply(plugin: 'maven') ``` #### 开始转换 * grable-> others -> install ### 查看文件 * build/p 阅读全文
posted @ 2023-06-05 13:38 vx_guanchaoguo0 阅读(197) 评论(0) 推荐(0) 编辑
摘要:### 安装 ``` distributionBase=GRADLE_USER_HOME ``` ### 替换 apline 源 ``` set -eux && sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repo 阅读全文
posted @ 2023-06-05 11:25 vx_guanchaoguo0 阅读(8) 评论(0) 推荐(0) 编辑
摘要:#### 警告 Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically reg 阅读全文
posted @ 2023-06-02 18:04 vx_guanchaoguo0 阅读(56) 评论(0) 推荐(0) 编辑
摘要:### 本地打包 ``` FROM openjdk:8-jdk-alpine RUN set -eux && sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories RUN mkdir /app CO 阅读全文
posted @ 2023-06-02 14:05 vx_guanchaoguo0 阅读(6) 评论(0) 推荐(0) 编辑
摘要:#### mule3.9.0 企业版本只能一个月 社区版本不兼容arm64 #### mule3.9.0 是使用java wraper service 包装起来的 * 因此需要替换为mac版本 wrapper-macosx-universal-64-3.5.53.tar.gz * 下载地址 http 阅读全文
posted @ 2023-06-01 13:17 vx_guanchaoguo0 阅读(55) 评论(0) 推荐(0) 编辑

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