[置顶] 分享一些学习资料

摘要: 阿里云盘分享,长期有效,持续更新 「豆瓣Top400 书单」https://www.aliyundrive.com/s/awphYK1n9iA 「点校本二十四史精装版.中华书局.2013【全241册】」https://www.aliyundrive.com/s/GFfxY2eNvQF 「Go 高级工 阅读全文

posted @ 2022-03-25 06:52 lijianbo 阅读(110) 评论(0) 推荐(0) 编辑

[置顶] 一些记录

只有注册用户登录后才能阅读该文。 阅读全文

posted @ 2019-03-27 16:59 lijianbo 阅读(19) 评论(0) 推荐(0) 编辑

2020年6月20日

golang 实现twitter雪花算法

摘要: 1 /* 2 * twitter雪花算法golang实现,生成唯一趋势自增id 3 * 保留位:63位 4 * 毫秒时间戳:[62-20]43位,时间范围[1970-01-01 00:00:00.000,2248-09-26 15:10:22.207] 5 * 机器id:[19-12]8位,十进制范 阅读全文

posted @ 2020-06-20 17:37 lijianbo 阅读(834) 评论(0) 推荐(0) 编辑

2019年3月25日

urlEncoder

摘要: 拷贝自php的源码,url编码 阅读全文

posted @ 2019-03-25 18:17 lijianbo 阅读(412) 评论(0) 推荐(0) 编辑

base64编码

摘要: base64编码,和url安全的base64编码 经过base64编码后的字符串长度(包含结束符):(src_len+2)*4/3 +1 RFC4648:https://tools.ietf.org/html/rfc4648 实现 阅读全文

posted @ 2019-03-25 18:15 lijianbo 阅读(195) 评论(0) 推荐(0) 编辑

2019年3月14日

跨平台字符编码转换GBK、UTF8

摘要: 1 #if (defined _WIN32 || defined _WIN64) 2 # include 3 # include 4 # include 5 #elif defined(__linux__) 6 # include 7 # include 8 # include 9 # includ... 阅读全文

posted @ 2019-03-14 09:19 lijianbo 阅读(1023) 评论(0) 推荐(0) 编辑

2019年3月4日

简单的linux看门狗脚本

摘要: watchdog.sh watchdog_start.sh watchdog_stop.sh 阅读全文

posted @ 2019-03-04 11:10 lijianbo 阅读(464) 评论(0) 推荐(0) 编辑

2019年2月25日

批量删除特定文件脚本

摘要: 代码上传或者转移时,本地生成的临时文件每次都要手动删除耗时耗力,写个bat批量删除 阅读全文

posted @ 2019-02-25 19:25 lijianbo 阅读(321) 评论(0) 推荐(0) 编辑

2019年2月21日

linux 服务脚本

摘要: 1 #!/bin/bash 2 # 3 # chkconfig: 2345 58 74 4 # description: my_SERVICE_NAME is a my Service 5 # 6 7 # common function 8 . /etc/init.d/functions 9 10 # service bash flag 11 IVMS... 阅读全文

posted @ 2019-02-21 14:16 lijianbo 阅读(249) 评论(0) 推荐(0) 编辑

2019年2月19日

linux通用makefile文件

摘要: 1 OUTPUT_DLL := libmy.so 2 LIBS :=-L../public/lib/x64/linux -lzookeeper_mt -lcurl \ 3 -lfreetype -lopencv_core -lopencv_highgui -lopencv_imgproc \ 4 -lsqlite3 -locilib \ 5 ... 阅读全文

posted @ 2019-02-19 14:43 lijianbo 阅读(191) 评论(0) 推荐(0) 编辑

导航