TODO

// TODO 看这些是什么,真理整理 1118整理 图片策略方案: 七牛云加GitHub,学习用七牛云,整理用GitHub。 平时自己用的话 用minio整理。 用ctrl+shift+0上传。 trello大的方向,便签笔记是小的方向 HttpservletResponse post请求 请求行 请求方式 post 请求的资源路径(+?+请求参数) 请求的……

阅读全文

Postgraduate

1026 高数 收敛数列的极限的 唯一性 发散 有界 保号 反三角函数 Redis的主从复制没有完成 docker两个机子之间怎么可以ping通过 docker命令 查看 容器ip……

阅读全文

Pdfjs

在线预览pdf // 进入源码文件夹 cd pdf.js // 安装gulp脚手架 npm install -g gulp-cli // 安装项目依赖 npm install // 编译es6版本 gulp generic // 编译es5版本 gulp generic-es5……

阅读全文

Redis事务

redis redis事务 命令具有原子行,把命令进行序列化保证部分 multi 开启事务: ps -ef | grep redis 开启一个事务 multi set k1 v1 set k2 v2 set k3 v3 set k4 v4 set k5 v5 set k6 v6 exec redis事务只能保证部分原子性。 discard: 放弃队列中的事务 multi set k1 k2 discard watch unwach subscribe : 消息订阅 subscribe ch1 ch2 ch3 publish : 将消息发布到指定频到 publish ch1 hello 消息中间件:activeMQ psubscribe: re……

阅读全文

frp内网穿透

frp_ssh内网穿透 frps.ini文件 [common] bind_port = 7000 docker run -d -v /home/frp:/conf --name frp-server-dashboard --net=host cloverzrg/frps-docker frpc.ini文件 [common] server_addr = x.x.x.x server_port = 7000 [ssh] type = tcp local_ip = 127.0.0.1 local_port = 22 remote_port = 6000 ssh远程连接 ssh -oPort=6000 test@x.x.x.x //指定端口号登录……

阅读全文

python笔记

python笔记 杨辉三角 只能用奇妙来形容了 :smile: def triangle(): L =[1] while True: b=L.copy() yield b L.append(0) L=[L[i]+L[i-1] for i in range(len(L))] 1012 翻转字符串 >>> def reverseWords(input): ... inputWords = input.split(" ") ... inputWords = inputWords[-1::-1] ... output = ' '.join(inputWords) ... return output ... >>> input = 'I like runnob' >>> rw = reverseWords(input) >>> rw 'runnob like I' 集合的使用 #!/usr/bin/python3 sites = {'Google', 'Taobao', 'Runoob', 'Facebook', 'Zhihu', 'Baidu'} print(sites) # 输出集合,重复的元素被自动去掉 # 成员测试 if 'Runoob' in sites : print('Runoob 在集合中') else : print('Runoob 不在集合中') # se……

阅读全文

爬虫的ip代理池

IP代理池 更新时间: 2024/7/19 github 上的爬虫ip池,使用python 很好用 名称 地址 描述 Python ProxyPool for web spider https://github.com/jhao104/proxy_pool 21K stars An Efficient ProxyPool with Getter, Tester and Server https://github.com/Python3WebSpider/ProxyPool 5.6K stars……

阅读全文

docker安装nginx

搭建nginx 查看状态:nginx -t 重启:systemctl restart nginx 查看80进程:netstat -antlp | grep 80 杀死进程:kill -9 ID nginx 全站 https Linux 系统上 Nginx 默认站点配置文件是/etc/nginx/conf.d/目录下的default.conf,我们对网站进行全站 https 配置,以下为实例内容: server { listen 80; server_name……

阅读全文

TG代理的搭建

docker搭建tg代理 docker run -d -p 443:443 --name=mtproto-proxy --restart=always -v proxy-config:/data telegrammessenger/proxy:latest docker logs ID……

阅读全文

github加速地址

jsdelivr 加速GitHub图床 有时间更新: 比如 GitHub 官方仓库 github/explore 下话题 github 图片原始路径是:https://github.com/github/explore/blob/master/topics/github/github.png 访问起来贼慢。 使用 jsDelivr 加速后的地址:https://cdn.jsde……

阅读全文