摘要: -- 使用postgresql 语言写一个函数,实现以下功能: -- 1 有管理权限用户数组、列表权限用户数组、查看权限用户数组、无权限用户数组四个用户数组 -- 2 当无权限用户数组存在用户数据时,如果管理权限用户数组,列表权限用户数组,查看权限用户数组中存在相同的用户数据,并且和无权限用户数组的 阅读全文
posted @ 2024-03-29 19:00 ysloong 阅读(1) 评论(0) 推荐(0) 编辑
摘要: CREATE OR REPLACE FUNCTION array_difference( arr1 text[], arr2 text[] ) RETURNS text[] AS $$ DECLARE result_arr text[]; BEGIN -- 初始化结果数组为一个空数组 result_ 阅读全文
posted @ 2024-03-29 18:56 ysloong 阅读(1) 评论(0) 推荐(0) 编辑
摘要: -- 修改用户名 git config user.name "xxx" -- 查看用户名 git config user.name -- 全局修改 git config --global user.name "xxx" -- 修改邮箱 git config user.email "xxx@seabo 阅读全文
posted @ 2024-03-27 09:39 ysloong 阅读(57) 评论(0) 推荐(0) 编辑
摘要: -- 创建sequence CREATE SEQUENCE seq_1765319714616074242 INCREMENT 1 MINVALUE 3 MAXVALUE 9999 START 3 NO CYCLE NOCACHE ; -- 变更sequence ALTER SEQUENCE seq 阅读全文
posted @ 2024-03-07 09:22 ysloong 阅读(2) 评论(0) 推荐(0) 编辑
摘要: convert_to_txt.py import docx doc = docx.Document('/work/sourcedir/output0951.docx') text = '' for paragraph in doc.paragraphs: text += paragraph.text 阅读全文
posted @ 2024-02-28 11:39 ysloong 阅读(1) 评论(0) 推荐(0) 编辑
摘要: JavaToWord.py import os import re from docx import Document # 定义函数,读取指定路径下的Java文件并返回其内容列表 def remove_comments(text): # 正则表达式匹配单行注释(#开头)或多行注释('''或"""包裹 阅读全文
posted @ 2024-02-28 11:32 ysloong 阅读(7) 评论(0) 推荐(0) 编辑
摘要: copyJavaFilesFromSrcToDes.sh #!/bin/bash source_folder="/work/sourcedir" # 源文件夹路径 target_folder="/work/destination" # 目标文件夹路径 file_extension=".java" # 阅读全文
posted @ 2024-02-28 11:23 ysloong 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 下载 docker pull elasticsearch:7.12.1 docker pull kibana:7.12.1 docker pull logstash:7.12.1 创建网络 docker network create -d bridge es-net 启动elasticsearch 阅读全文
posted @ 2023-05-11 15:39 ysloong 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 查看宿主时间 date -R 进入容器,查看docker 容器时间 date -R 如果系统时间准确,在宿主机执行如下命令,查看/etc/localtime软连接的源文件路径 ls -l /etc/localtime 可以看出/etc/localtime的源文件路径为/usr/share/zonei 阅读全文
posted @ 2023-03-13 09:56 ysloong 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 为何3DES 密钥长度为128位/192位 DES全称为Data Encryption Standard,即数据加密标准,是一种对称分组秘钥算法。 3DES是三重数据加密算法(TDEA,Triple Data Encryption Algorithm)块密码的通称。它相当于是对每个数据块应用三次DE 阅读全文
posted @ 2022-09-23 13:07 ysloong 阅读(2718) 评论(0) 推荐(0) 编辑