个人随笔
@myz
他山之玉可以攻石
展开
-
一次下载的小说txt章节优化记录
遵循规则并根据规则改成自己想要的样子原创 2023-11-04 21:17:14 · 166 阅读 · 0 评论 -
贴吧自动签到
【代码】贴吧签到。原创 2023-09-19 18:21:05 · 165 阅读 · 0 评论 -
定时器
一、java环境 =================================== Ubuntu1.1.1、使用ppa/源方式安装 sudo add-apt-repository ppa:webupd8team/java sudo apt-get update1.1.2、安装oracle-java-installer sudo apt-get i...原创 2021-04-02 18:03:14 · 137 阅读 · 0 评论 -
文件hash值处理
es 插件安装 ====================================== Ubuntu ik中文分词安装 ./bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v6.3.1/elasticsear...原创 2021-03-25 15:34:47 · 392 阅读 · 0 评论 -
错误打印格式参考
xxx.gopackage mainimport ("fmt")func G() { var a,b int c := Eq(a,b) fmt.Println(c)}func Eq(a,b int) int { return a+b}xxx_test.gopackage mainimport "testing"func TestEq(...原创 2021-03-18 22:21:00 · 190 阅读 · 0 评论 -
rpc 调用测试
服务器安装es过程ubuntu 系统条件:联网条件下安装git(远程控制)创建新的文件夹安装java 环境避免下载之后无法解压wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.c...原创 2021-03-14 18:20:04 · 781 阅读 · 0 评论 -
只言片语
1. 萌新云https://www.mxyssr.fun/auth/register?code=MHNRhttps://www.mxyssr.fun/auth/registerhttps://www.xiaoxiaoyun.icu/auth/register2.原创 2021-03-07 23:11:42 · 142 阅读 · 0 评论 -
doc/docx/xls/xlsx 转PDF
使用语言 python使用版本 python3部分文档不能编辑不能解析文档损坏无法处理,运行前需在本地安装Office参考链接:https://www.cnblogs.com/lzhc/p/10893846.html# -*- coding:utf-8 -*-import osfrom win32com.client import Dispatch, constants, gencache, DispatchExclass PDFConverter: def __init_翻译 2020-11-04 17:22:37 · 422 阅读 · 0 评论 -
发送短信
操作步骤:1. 批量处理;获取当前文件夹及下属文件夹文件路径2. 文本格式判断;(chardet 包)3. 逐行读取文本内容4. 文本格式转换(mahonia)5. 写入缓存;保存(unidoc 包)代码参考批量获取文件(.txt)func getCurrentFileName(dirPath string) []string { // 遍历指定目录下所有文件 pdfList := []string{} err := filepath.Walk(dirPath, fu翻译 2020-11-17 11:58:20 · 1595 阅读 · 0 评论 -
获取豆瓣电影
package mainimport ( "encoding/json" "fmt" "golang.org/x/text/encoding/simplifiedchinese" "golang.org/x/text/transform" "io/ioutil" "net/http" "os" "strin转载 2021-03-07 20:57:28 · 132 阅读 · 0 评论 -
数据结构乱序比对指定值正确性
package mainimport ( "encoding/json" "errors" "fmt" "github.com/tealeg/xlsx" "strings" "time")type ReplaceStruct struct { SourceStr string `json:"source_str"` DestinationStr string `json:"destination_str"`}type SortStruct struct { So.原创 2020-09-23 16:38:18 · 154 阅读 · 0 评论 -
父子级关系处理可用于人员权限 文件权限等
1. 阿里云服务器初始密码设置及登录重置实例密码xxx,重启服务器 (可以跳过)输入账号root密码xxx登录打开passwordAuthentication权限 (可以跳过 目前该配置默认已开启)vi /etc/ssh/sshd_config; PasswordAuthenication yes systemctl restart sshd 2. ssh登录参考步骤:查看当前用户公钥把公钥拷贝到目标服务器 ssh-copy-id -i id_rsa.pub原创 2020-10-26 18:09:33 · 296 阅读 · 0 评论 -
解析cookie/session 路由中间件基础
package mainimport ( "bytes" "github.com/gorilla/mux" "github.com/tealeg/xlsx" "log" "net/http" "os" "reflect")type ExcelClient struct { File *xlsx.File `json:"file"` Title string `json:"title"` Sheet *xlsx.Sheet `json:"sheet"` Row .原创 2020-05-14 16:54:49 · 315 阅读 · 0 评论 -
PDF添加文字及水印
1. docker file FROM nginx:stable COPY deploy/default.conf /etc/nginx/conf.d/ COPY dist /usr/share/nginx/html VOLUME /usr/share/nginx/html VOLUME /etc/nginx docker file 中的default.confserver { listen 80; # gzip config gzip...原创 2020-10-26 11:22:21 · 330 阅读 · 0 评论 -
go 环境配置
Go 环境安装:Windows:https://www.jianshu.com/p/53b3bee780bbMac :https://www.cnblogs.com/guanyu-go/p/10883107.htmlps:推荐安装1.13.+版本GO MOD 操作:使用前配置:set/export GO111MODULE=on 开启go mod 模式...翻译 2020-02-18 16:33:37 · 156 阅读 · 0 评论 -
工具安装
安装harbor1. 安装docker及docker-compose (https://blog.csdn.net/nickDaDa/article/details/87615607)2. 安装harbor (https://blog.csdn.net/nickDaDa/article/details/87615607)下载压缩包到本地;拷贝到服务器解压缩3. 安装证书https://blog.csdn.net/weixin_44208042/article/details/104898259.翻译 2020-10-26 18:21:00 · 88 阅读 · 0 评论 -
配置前端域名及nginx反向代理
exe软件安装采用的是 parallels desktop 虚拟机软件 与 windows 7.iso 镜像 组合windows系统下载软件pd: https://www.dalipan.com/detail/a67ed46fa72a1891906f682adf985c5d?keyword=Parallels%20Desktop%2015(版本 v15.1.2 需要其它格式可在网盘搜索工具中搜索下载,获取临时会员可找pdd) w7: ed2k://|file|cn_windows_7_enterp翻译 2020-10-29 16:23:35 · 1199 阅读 · 0 评论 -
数据库 基础操作
package mainimport ( "fmt" "strings")// 简单排序func main() { intArray := []int{2, 1, 44, 9, 7, 6, 3, 22, 4, 5} //bi := bubbleSort(intArray, "asc") //fmt.Println("bi: ", bi) //qi := quickSort(intArray, "asc") //fmt.Println("qi: ", qi) ii := Inse.翻译 2020-09-25 11:01:21 · 79 阅读 · 0 评论 -
并发压缩文件
package mainimport ( "archive/zip" "bytes" "fmt" "github.com/nahid/gohttp" "io" "io/ioutil" "log" "os")type FileInfo struct { Name string `json:"name"` Path string `json:"path"` Url string `json:"url"`}func main() { var fis []FileInfo.原创 2020-05-14 12:30:10 · 268 阅读 · 0 评论 -
Golang oss基础操作
package mainimport ( "fmt" "time")func main() { t := time.Now() // 具体操作1 ts := time.Since(t) fmt.Println("具体操作1: ", ts) t = time.Now() // 具体操作2 ts = time.Since(t) fmt.Println("具体操作2:...翻译 2020-02-18 16:45:46 · 1290 阅读 · 2 评论 -
office online 查看及编辑
官方文档:https://docs.microsoft.com/zh-cn/officeonlineserver/deploy-office-online-servertable of contents目录服务器购买域控及转换器配置应用安装wopi使用Buy Server服务器购买镜像选择 window server 2016保证两台服务在同一安全组 可建立域关系Server Config域控及转换器配置参考链接 创建域: https://help.aliyun.c翻译 2020-06-22 19:47:28 · 1144 阅读 · 0 评论