随笔-204  评论-90  文章-8  trackbacks-0
  2020年9月10日
此问题是由于升级 macos sonoma 14.2.1 引起的
解决办法,重新安装xcode  
rm -rf /Library/Developer/CommandLineTools
xcode
-select --install
posted @ 2024-02-04 13:57 一凡 阅读(26) | 评论 (0)编辑 收藏
# Springboot整合activiti
源代码:https://gitee.com/yifan88899/acttest

## 版本说明
- springboot 2.4.2
- activiti 7.1.0.M6
- mysql 8.0.28
## 插件安装
- Activiti BPMN visualizer
## Bpmn流程图位置
- 流程图xmlpng需放在resources/processes
## Test
- Test Case 都可执行,包括:
- 流程查询
- 流程部署
- 流程启动
- 流程拾取、完成操作
## Mysql
- 需要启动Mysql8
- 数据库名Activiti7
- activiti会版建表

posted @ 2023-11-10 15:56 一凡 阅读(70) | 评论 (0)编辑 收藏
1、打开my.cnf 加入 skip-grant-tables
2、mysql.service stop && mysql.service start
3、清空root密码 并 退出
    update mysql.user set authentication_string='' where user='root';  
4、mysql.service stop && mysql.service start
5、mysql -root   免密登录并修改root密码
    alter user 'root'@'%' identified by 'pass$123';
    alter user 'root'@'localhost' identified by 'pass$123';

确定是否支持远程登录,host中有%的记录即支持
select host, user, authentication_string, plugin from user;
posted @ 2021-08-05 18:06 一凡 阅读(173) | 评论 (0)编辑 收藏

64e696 绿色
5a97ff 蓝色
ffdb5a 黄色
ff8b64 橙色
ff5a65 红色
e00b5d 粉红
666666 深灰
3cc7f5 浅蓝
f5863c 浅橙
b00072 枚红
674ea7 紫色
999999 灰色
posted @ 2021-06-22 17:46 一凡 阅读(62) | 评论 (0)编辑 收藏
#!/usr/bin/expect
####################
set pass xxxx
set user yyyy
####################
spawn ssh -p 35000 -o StrictHostKeyChecking=no "${user}@xgrelay.xxxx.com"
expect {
  -re ".*Dkey.*" { gets stdin dkey; send "$dkey\r"; exp_continue}
  -re "Option>:"  { send "1\r" ;}
  -re "Password>:" { send "$pass\r" ; exp_continue }
  -re "password:" { send "$pass\r" ; exp_continue }
}
posted @ 2021-01-18 11:35 一凡 阅读(127) | 评论 (0)编辑 收藏
-- data export csv   其中 $1=$1 如果不加指定分隔符不生效
mysql -uadmin -ptest -h127.0.0.1 -P3306 -e "select * from test where create_time > unix_timestamp('2020-09-10 00:00:00'and status = 99| awk '{OFS=","}{$1=$1;print $0}'

#csv中文转码
tmpfn="exempt-update-3.30.csv";iconv -c -s -f UTF-8 -t GBK $tmpfn > /tmp/$tmpfn && mv /tmp/$tmpfn .
posted @ 2020-09-10 22:08 一凡 阅读(163) | 评论 (0)编辑 收藏