摘要: 下载msys2 在msys2安装目录下创建文件 msys2_ffmpeg.bat call "D:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" set MSYS2_PAT 阅读全文
posted @ 2022-08-24 20:24 菩提树~今生 阅读(221) 评论(0) 推荐(0) 编辑
摘要: gin + "golang.org/x/net/websocket" package main import ( "github.com/gin-gonic/gin" "golang.org/x/net/websocket" "log" "time" ) func main() { log.SetF 阅读全文
posted @ 2020-07-02 16:33 菩提树~今生 阅读(2531) 评论(0) 推荐(0) 编辑
摘要: GoLang实现HmacSHA1 阅读全文
posted @ 2020-02-18 17:42 菩提树~今生 阅读(2378) 评论(0) 推荐(0) 编辑
摘要: Windows 下 GoLang 获取当前线程ID 阅读全文
posted @ 2019-07-16 17:07 菩提树~今生 阅读(2783) 评论(0) 推荐(0) 编辑
摘要: tg_rsa.h // 注意: 编译mbedtls时, 添加宏 MBEDTLS_RSA_NO_CRT (基于 mbedtls 2.16.1) #ifndef _BVR_OPENSSL_H_ #define _BVR_OPENSSL_H_ #include <iostream> #include <s 阅读全文
posted @ 2019-04-18 17:57 菩提树~今生 阅读(6988) 评论(0) 推荐(0) 编辑
摘要: 使用注意事项 JdbcHelper.h #pragma once #include <iostream> #include <string> #include <functional> //#include <mysql_driver.h> //#include <mysql_connection. 阅读全文
posted @ 2018-12-21 15:18 菩提树~今生 阅读(1414) 评论(0) 推荐(0) 编辑
摘要: 有时同步app models时,新的修改, 无法通道到数据库中。 No migrations to apply. 方案1: 将数据库表全部删除, 重新同步。[略] 方案2: 修改your_app_name/migrations/0001_initial.py 或其它文件 将其中与新的修改相关的代码删 阅读全文
posted @ 2018-12-13 16:55 菩提树~今生 阅读(1526) 评论(2) 推荐(1) 编辑
摘要: # rsa 加密 def rsa_encrypt_bytes(bytes_str, n, e): if not isinstance(bytes_str, bytes): return None # 导入rsa库 import rsa.common pubkey = rsa.PublicKey(n, e) key_length = rs... 阅读全文
posted @ 2018-10-26 21:47 菩提树~今生 阅读(4292) 评论(1) 推荐(0) 编辑
摘要: # 分解模数n def rsa_moder(n): base = 2 while base < n: if n % base == 0: return base, n // base base += 1 # 求欧拉函数f(n) def rsa_get_euler(prime1, prime2): retu... 阅读全文
posted @ 2018-10-26 18:33 菩提树~今生 阅读(10255) 评论(0) 推荐(0) 编辑
摘要: \033[ Param {;Param;...}m 或 \e[ Param {;Param;...}m 参考: 通过printf设置Linux终端输出的颜色和显示方式 https://www.cnblogs.com/clover-toeic/p/4031618.html 阅读全文
posted @ 2018-08-16 12:14 菩提树~今生 阅读(170) 评论(0) 推荐(0) 编辑