Swift里Data加解密
其他测试代码 import Foundation import GoogleUtilities import CryptoSwift import SwiftyRSA class DataCryptTool { static func test() { let data = "123456".data(using: .utf8) let data1...
其他测试代码 import Foundation import GoogleUtilities import CryptoSwift import SwiftyRSA class DataCryptTool { static func test() { let data = "123456".data(using: .utf8) let data1...
前言 在发送消息时,如果文字太长会很乱,一些信息主动换行逻辑比较才比较清晰,但是一直没找到方法让文字换行 让文字换行,经过研究有2种方式 方式一,使用URL编码换行符换行符%0A bot_token="xxxxx" chat_id=xxxx # 由于这里是使用curl发送的,所以支持URL编码的%0A msg="name:tom%0Aage:100" curl -s -X POST...
一、使用Telegram机器人发送消息 2.1 生成并创建Telegram机器人 参考: Telegram 机器人的申请和设置图文教程 Telegram:新手指南、使用教程及频道推荐(持续更新中) Telegram Bot 简明教程 I - 注册与发消息 1.1 首先在Telegram 里搜索 https://telegram.me/BotFather 1.2 输入 /...
Caused by: java.io.IOException: Cannot run program "git" (in directory "/Users/xxx/.jenkins/workspace/xxx"): error=0, posix_spawn failed Started by user dev Running as SYSTEM Building on the buil...
https://formulae.brew.sh/formula/qrencode 1、安装生成二维码图片的库 brew install qrencode 在shell脚本里使用生成图片 qrImgPath="xxx/xxx.png" text="hello world" # 将msg生成二维码图片,保存在qrImgPath这个路径 /opt/homebrew/bin/qrencode ...
test
参考: PlistBuddy基本使用方法 https://github.com/CocoaPods/Xcodeproj 本文完整代码:https://github.com/h42330789/testplist/tree/main/ReadWriteXcodeproj 前言,打包过程中,需要读取或修改版本号、bundleId等信息,之前可以使用PlistBuddy读取,现在配置在xc...
参考: Jenkins 内置环境变量 Jenkins 内置全局变量 流水线入门 内置变量列表查看地址: pipline所能访问的内容jenkins主地址/pipeline-syntax/globals#env pipline所能访问的内容jenkins主地址/env-vars.html 比如Jenkins安装在本机,默认端口是8080,则地址如下: http://lo...
参考:Mac上安装Jenkins 前言 之前安装了好几次Jenkins,但是笔记都丢了,现在重新记录 安装brew https://brew.sh/zh-cn/ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" eval "$(/opt/...
一、通过命令行查 # 查看提交记录 git log # -l表示--list本地,-r表示--remotes远端,-a表示--all全部 # 查找本地对应的分支 git branch --contains xxxx git branch --contains xxxx -l git branch --contains xxxx --list # 查找远程的分支 git branch --co...