- 博客(50)
- 资源 (2)
- 收藏
- 关注

原创 Git 免登录克隆
简介Git 在使用时,每次克隆,或者更新操作,都需要输入账户、密码,这给我们工作带来了一些不便。比如自动化部署项目,需要服务器自动检出代码,但是账户密码输入带来了一些问题,这里就来处理一下这个账户、密码输入问题。登录gitee个人配置,有个个人公钥,项目管理页面。点击公钥管理,这里添加公钥,我们即可无密码直接检出代码。密钥生成这里使用git 自带bash工具,点击运行输入~/.sshssh-keygen -t rsa -b 0496 -C "123@123.com"
2020-09-14 11:35:44
1023

原创 Python 线程池 队列任务
目标现在又队列长度为N的一个任务队列需要处理,同时处理的任务数目为M,如何处理初识多线程Python3中threading.Thread 线程,通过start() 方法来启动,较为简单的方法就是开始M个任务,M个任务都结束,再执行下一批M个任务,这里就用到了 futures ,其中又Executor.submit() 和 map()方法,分别是有序和无序执行任务。但是这里的问题就出现了...
2019-08-24 11:59:01
983
原创 Mysql Cluster集群配置
wget https://dev.mysql.com/get/mysql-apt-config_0.8.19-1_all.debInstall the components for SQL nodes:sudo apt-get install mysql-cluster-community-serverInstall the executables for management nodes:sudo apt-get install mysql-cluster-community-ma..
2022-06-29 08:49:45
317
原创 nginx 多端口转发 + SSL
Server 1: springboot 端口配置(18080)server: tomcat: uri-encoding: UTF-8 port: 18080Server 2: springboot 端口配置(28080)server: tomcat: uri-encoding: UTF-8 port: 28080Nginx配置:http { log_format main '$remote_addr - $remote_user [$
2022-05-28 10:58:27
4253
原创 windows server sshd安装
下载安装包安装./install-sshd.ps1解除策略限制如遇到“当前策略不允许执行脚本”,则解除策略限制# 获取策略Get-ExecutionPolicy -List# 设置策略set-executionpolicy remotesigned# 恢复策略set-executionpolicy Undefined...
2022-05-18 10:33:06
286
原创 Base 功能更新
更新src/main/java 覆盖该目录源文件 更新resources/static resources/template 覆盖相应文件 运行要更新SQL文件 重启idea 运行
2022-03-14 17:16:53
724
原创 同结构数据库表 查询结果插入 同步
test_b 表数据test_a 表数据同步表a 数据到b中,已有不做更新insert into test_bselect * from test_a where not EXISTS (select * from test_b where test_a.id=test_b.id)
2022-01-02 14:25:44
227
原创 java 读取 excel 科学计数
if(cell.getCellType() == HSSFCell.CELL_TYPE_NUMERIC){ DecimalFormat df = new DecimalFormat("0"); Double v = cell.getNumericCellValue(); cellStr = df.format(v);}
2021-12-20 08:58:04
1020
原创 oracle 迁移 达梦 踩坑
达梦JDBC连接属性hibernate.dialect=org.hibernate.dialect.DmDialectdriverClassName=dm.jdbc.driver.DmDrivervalidationQuery=SELECT 1jdbc_url=jdbc:dm://localhost:5236/db_namejdbc_username=unamejdbc_password=pwd如果使用阿里Durid连接池,需要配置DriverClassName,否则会报错解决.
2021-08-16 16:33:39
559
原创 项目案例模板
项目介绍项目功能介绍开发框架Spring boot 、MyBatis 、Spring MVC环境要求JDK8+、Mysql5.6+运行效果登录信息修改数据字典截图部署运行参见
2021-07-24 09:42:15
170
原创 idea 阿里云自动部署
打包idea 右侧 maven -> lifecycle -> package部署新增阿里运行,选中部署至制定目录并且自动启动
2021-07-22 16:21:39
197
原创 SSL申请实施
腾讯云申请 SSL域名解析页面,解析上面可以选择申请SSL,会自动生产一条SSL验证解析,等一分钟后,在我的SSL中下载 文件,解压后结构如下部署上传证书cd /etc/apache2# 创建目录mkdir ssl# 分别上传ssl证书(本地操作)scp 0c4d.com.crt root@xx.xx.xx.xx:/etc/apache2/ssl# 服务器查看ls -lrt /etc/apache2/ssl# 启用 ssl 模块sudo a2enmod ssl# 修改ssl配置文
2021-07-21 11:03:45
141
原创 CSRF攻防
攻击站点1需要授权访问的内容页面 page2@RequestMapping("page2") @ResponseBody public String page2(){ //需要授权 if(SecurityUtils.getSubject().getSession().getAttribute("user") == null){ return "<h1>没有登录,操作失败</h1>"; }
2021-07-02 10:27:45
157
原创 phpstorm sublime3 xdebug php5.6 php7.4
php5.x xdebug配置[Xdebug]zend_extension = php_xdebug.dllxdebug.profiler_append = 0xdebug.profiler_enable = 1xdebug.profiler_enable_trigger = 0xdebug.profiler_output_dir ="c:\xampp\tmp\xdebug"xdebug.trace_output_dir ="c:\xampp\tmp\xdebug"xdebug.auto_t
2021-06-29 08:57:34
154
原创 group_concat长度限制解决
解决办法执行SQLSET GLOBAL group_concat_max_len=1002400;SET SESSION group_concat_max_len=1002400;重启navicat等查询工具,目的是重新获取链接,注意旧链接配置不生效。所以执行SQL以前如果有TOMCAT启动,那么容器内的SQL链接并没有对新配置生效,需要重启tomcat,放弃以前的MYSQL 链接。...
2021-06-22 08:55:42
352
原创 List 转 Tree
转List对象 => Treeimport java.util.ArrayList;import java.util.List;import java.util.stream.Collectors;/** * author lidl * email 0c4d@163.com * qq 410030710 * date 2021-05-14 * Description a test case for TreeNode.class **/public clas
2021-05-14 11:33:51
107
原创 git分支操作
分支创建分支git branch branch_name切换分支git checkout branch_name切换代码git pull origin branch_name提交分支代码git push origin branch_name删除分支git branch -d branch_name查看所有分支git branch -a工作区、缓存区...
2021-04-27 11:37:38
91
原创 git 切换仓库
git initgit add .git commit -m 'first commit'git remote -v//如果有,则删掉已存在的远程仓库git remote rm origin//如果没有仓库配置,则增加远程仓库地址配置git remote add origin git@gitee:account/repo.git
2021-04-27 10:31:24
397
原创 远程重启springboot JAR包项目
打包上传项目打JAR包,需要指定main-class,在POM.XML文件中配置使用内置工具上传JAR包到指定目录重启项目编辑重启脚本最终结果点击开发工具运行然后自动打包上传至服务器并且重启项目...
2021-04-27 09:21:47
373
原创 Base 框架安装运行
文件上传目录配置mysql 导入启动 Navicat新建连接,设置账户,密码双击 新建好的本地连localhost,打开。鼠标右键点击localhost,新建数据库(New Database)。第一行是数据库名称,找到SQL文件,名称设置成SQL文件名称,例如exam.sql 则数据库名称是exam然后设置编码鼠标双击新建的数据库,打开数据库。数据库名称右键点击,选择执行数据库文件Execute SQL File.然后选择数据库文件。点击开始,执行SQL文
2021-04-19 15:51:27
669
原创 Base框架代码解读
这里写自定义目录标题欢迎使用 Base 框架控制器(Controller)列表(list)新增 (add)新增(do_add)编辑 (edit)编辑保存(update)删除(del)服务层(service)新增 (insert)根据ID查找删除更新分页查询统计共计多少条数据库操作层模型 Model工具类CustomerShiroFileUtilFileDownloadJsonResultsPageUtil配置文件 ConfigCMSCONSTInterceptorConfigShiroConfigUeCon
2021-03-23 10:38:12
861
原创 Python dpkt抓包 IP片段组包
使用pcap或者winpcapy抓包后,对包做处理,使用dpkt工具,数据处理速度较快,但是dpkt大多数都是数据片段,一次交互请求,通常被分为很多片段,通过报文头部的DO_NOT_FRAGMENT(是否分包) MORE_FRAGMENT(有更多片段)俩个字段,也就是(DF,MF)来确定是否有分包,是否是最后一个。因为理论不足,以及没找到现成的代码,所以写了个组包代码ip = eth.data # 取出分片信息 df = bool(ip.off & dpkt.ip.IP
2021-03-05 15:29:57
944
原创 python pip 设置阿里源
[global]index-url = http://mirrors.aliyun.com/pypi/simpletrusted-host = mirrors.aliyun.com
2021-02-25 15:29:57
1118
原创 Spring boot Tomcat 线程相应
默认等待状态截图如下处于NIO模式,新建了10个线程来做响应并发20请求浏览器页面,20个浏览器窗口同时打开页面,访问网址,其中有CSS,JS文件等,线程瞬间飙升到100+请求结束若干秒后,线程数开始掉落,一段时间不访问后,结果如下...
2021-01-28 17:53:11
141
原创 一文读懂logback配置文件
本文主要介绍logback的配置、使用,以及日志记录级别、记录方式。MAVEN 引入依赖<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apa
2021-01-20 09:01:20
326
原创 Maven私服Archiva搭建
为什么选择Archiva同样可以搭建私服的 Nexus下载速度太慢了,数次尝试下载失败,最终选择Archiva。搭建环境Linux(ubuntu)下载官网下载要求JDK1.8安装tar -zxvf xxx.tar.gz切换到目录bin执行 ./archiva start浏览器访问 localhost:端口/端口默认8080,在conf/jetty.xml配置文件中修改port 配置项。使用访问网址localhost;80/点击注册用户...
2020-12-17 15:10:41
290
1
原创 Android ListView ArrayAdapter 加载图片
layout->list_item.xml 由图片,文本域组成<?xml version="1.0" encoding="utf-8"?><androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" x
2020-12-08 15:54:06
459
原创 Android 生成keystore 打包APK 版本号设置
生成keystorekeytool -genkey -alias demo.keystore -keyalg RSA -validity 20000 -keystore demo.keystore打包版本设置结果
2020-12-05 10:00:20
159
原创 Android studio 项目常见问题
1. 找不到类,JAR包导入失败import android.support.v7.app.AppCompatActivity 报错解决办法//compile 'com.android.support:appcompat-v7:30.+' compile 'com.android.support:appcompat-v7:+'2.Build task failed 构建任务失败解决办法settings/compile/command-line options -x app:..
2020-11-20 09:22:58
1499
原创 Thinkphp Ueditor 页面编辑器显示标签问题
ueditor 富文本保存内容,页面展示时显示内容含有标签解决办法:{$company.info|htmlspecialchars_decode}Ueditor 富文本保存后,富文本编辑器内,显示内容是标签,解决办法:<script type="text/plain" id="myEditor" style="width:100%;height:240px;"> {$item.info|html_entity_decode}</script>
2020-08-04 09:42:35
390
原创 win10 pypcap 安装
下载文件pypcap.zip pypcap 安装文件BuildTools.exe VC BUILD工具vc_redist.exe vc++ 2015 /14.0npcap 抓包工具安装 vc_redist安装npcap安装buildtools安装PYPCAP解压目录如下在下面的目录运行python setup.py install结果如下:测试:注意:如果发生这个错误,要安装vc build 然后重启。...
2020-07-10 16:52:56
445
原创 Ubuntu JAVA+TOMCAT安装试用
安装JDKapt-get install openjdk-8-jdkjava -version安装Tomcat#安装命令apt-get install tomcat8#启动TOMCAT8service tomcat8 start#查看状态tomcat8 status# 配置修改 目录再/etc/tomcat8目录下,cd /etc/tomcat8#检查是否成功启动wget localhost:8080#项目部署目录cd /var/li..
2020-06-24 15:33:24
226
原创 Tomcat 项目部署
tomcat8安装设置JAVA_HOME环境变量tomcat8安装目录启动startup.bat,关闭shutdown.bat浏览器访问localhost:8080/即可访问单个项目部署项目直接放到tomcat/webapp目录下即可自定义端口很多时候端口会冲突,比如8080,80端口,如果有其它TOMCAT正在运行,可能8443也会冲突,解决办法如下 :tomcat/conf/server.xml文件中端口批量替换比如8080 替换为18080,8009 替换成
2020-06-23 15:53:31
191
原创 xampp、apache 多项目部署
添加多端口监听(修改http.conf)Listen 80Listen 8080添加权限允许(修改http.conf)<Directory /> #AllowOverride none #Require all denied AllowOverride all Order deny,allow Allow from all&l...
2019-11-25 16:56:07
248
pypcap 全部安装包 python 3.7 解决 Microsoft Visual C++14.0 is required
2020-07-10
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人