<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆-204  評論-90  文章-8  trackbacks-0
      2020年2月29日
    此問題是由于升級 macos sonoma 14.2.1 引起的
    解決辦法,重新安裝xcode  
    rm -rf /Library/Developer/CommandLineTools
    xcode
    -select --install
    posted @ 2024-02-04 13:57 一凡 閱讀(52) | 評論 (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 一凡 閱讀(97) | 評論 (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 一凡 閱讀(203) | 評論 (0)編輯 收藏

    64e696 綠色
    5a97ff 藍色
    ffdb5a 黃色
    ff8b64 橙色
    ff5a65 紅色
    e00b5d 粉紅
    666666 深灰
    3cc7f5 淺藍
    f5863c 淺橙
    b00072 枚紅
    674ea7 紫色
    999999 灰色
    posted @ 2021-06-22 17:46 一凡 閱讀(84) | 評論 (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 一凡 閱讀(163) | 評論 (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 一凡 閱讀(187) | 評論 (0)編輯 收藏
    #!/bin/bash

    for f in "$@"do
        if [ -f "$f" ]; then
            iconv -s -c -f UTF8 -t GBK "$f" > /tmp/$f.tmp
            mv /tmp/$f.tmp "$f"
        fi
    done
    posted @ 2020-04-20 10:03 一凡 閱讀(186) | 評論 (0)編輯 收藏
    # -*- coding: utf-8 -*-
    #
    !/usr/bin/python

    import re
    import io
    import sys

    # obj = re.compile(r'(?P<ip>.*?)- - \[(?P<time>.*?)\] "(?P<request>.*?)" (?P<status>.*?) (?P<bytes>.*?) "(?P<referer>.*?)" "(?P<ua>.*?)"')
    #
     example:xxxx"id":2640914,"orderId":144115188137125591xxxx"state":10xxxxx"
    # 日志整行都需要匹配,需要用的用具體正則匹配,如(\d{7}),不需要的用(.*)匹配,總之所有需要或不需要部分都用()括起來
    obj = re.compile(r'(.*"id":)(\d{7})(.*"orderId":)(\d{18})(.*"state":)(\d{2})(.*)')

    def load_log(path):
    # 讀取文件
        with io.open(path, mode="r", encoding="utf-8") as f:
            for line in f:
                line = line.strip()
                parse(line)

    def stdin():
    # 讀取管道輸入
        for line in sys.stdin:
            parse(line)

    def parse(line):
    # 解析單行nginx日志
        try:
            result = obj.match(line)
            print(result.group(2,4,6))
        except:
            pass

    if __name__ == '__main__':
        # load_log("/tmp/227.log")
        stdin()
    posted @ 2020-02-29 02:10 一凡 閱讀(295) | 評論 (0)編輯 收藏
    主站蜘蛛池模板: 亚洲伦理一二三四| 国产亚洲视频在线| 国产美女无遮挡免费视频网站| 亚洲精品GV天堂无码男同| 亚洲色偷偷综合亚洲AV伊人| 亚洲免费在线视频| 亚洲精品国产摄像头| 亚洲日本一区二区三区在线| 国产乱子精品免费视观看片| 美女视频黄频a免费| 亚洲美女色在线欧洲美女| 免费看小12萝裸体视频国产| 亚洲精品免费视频| 蜜臀亚洲AV无码精品国产午夜.| 亚洲av永久无码精品漫画| 妞干网在线免费视频| 最好免费观看高清在线| 蜜桃传媒一区二区亚洲AV| 久久亚洲精品国产精品| 亚洲第一页日韩专区| 久久国内免费视频| 大地资源中文在线观看免费版| 久久综合久久综合亚洲| 亚洲AV永久精品爱情岛论坛| 日韩免费a级在线观看| 在线免费观看亚洲| 国产免费人成视频尤勿视频 | 久久综合久久综合亚洲| 亚洲国产日韩在线视频| 免费中文字幕在线| 四虎国产精品免费久久| 99精品视频在线观看免费播放| 成人免费夜片在线观看| 亚洲精品无码专区在线播放| 中文字幕亚洲第一在线| 国产亚洲精久久久久久无码AV| 国产成人精品123区免费视频| 9久9久女女免费精品视频在线观看| 久久国产精品免费视频| 中文在线观看国语高清免费| 国产精品亚洲综合一区在线观看 |