上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: 先贴总结: 本机安装ssh,check ssh是否安装成功: ssh 或者 ssh-V 2. vscode安装remote development 插件 3. 配置密钥 (1)在本地机器生成密钥对(公钥+私钥):ssh-keygen (2)私钥放本机,公钥放远程(~/.ssh路径下) (3)在远程机 阅读全文
posted @ 2023-04-18 21:41 MasonLee 阅读(383) 评论(0) 推荐(0) 编辑
摘要: 如何使用openssl生成证书及签名 第一步,生成私钥 $ openssl genrsa -out privatekey.pem 2048 查看生成的私钥内容 $ file privatekey.pem privatekey.pem: PEM RSA private key $ cat privat 阅读全文
posted @ 2023-04-18 20:51 MasonLee 阅读(474) 评论(0) 推荐(0) 编辑
摘要: 这里生成的证书是用来给网站启用https用的 有点麻烦,要自己建一个CA,然后对自己的请求文件进行认证然后生成证书,私钥和证书,一共俩 ubuntu上一般都自带安装了OpenSSL ubuntu:~$ openssl OpenSSL> version OpenSSL 1.1.1 11 Sep 201 阅读全文
posted @ 2023-04-18 20:48 MasonLee 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 了解一些关于HTTPS的基本概念,以及HTTPS中使用到加密方式、数字证书的格式和验证逻辑 1. HTTPS相关基本概念 1.1 HTTP 超文本传输协议(Hyper Text Transfer Protocol,HTTP)是一个简单的请求-响应协议,它通常运行在TCP之上。它指定了客户端可能发送给 阅读全文
posted @ 2023-04-18 19:59 MasonLee 阅读(369) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash # This script creates a .zip backup of gitea running inside docker and copies the backup file to the backup directory echo "Delete older b 阅读全文
posted @ 2023-04-18 13:56 MasonLee 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 简易的命令行入门教程: Git 全局设置: git config --global user.name "Mason" git config --global user.email "xx@qq.com" 创建 git 仓库: mkdir test3 cd test3 git init touch 阅读全文
posted @ 2023-04-18 11:21 MasonLee 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 1. 使用py -版本 py -2 # 运行Python2版本 py -3 # 运行Python3版本 python安装时候在电脑上会安装核心启动py.exe,通过传递参数可识别并对应启动电脑上python版本。而且可极大解决的pip installa安装时候的问题。即 2. 运行py文件,使用不同 阅读全文
posted @ 2023-04-07 11:15 MasonLee 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 打包 python setup.py bdist_wheel 需要进行C++编译,因此在执行上述命令之前请确保已经安装了【Visual Studio(Windows)】、【GCC(Linux)】、【XCode(Mac)】编译器。 发布 先安装一下 twine: python -m pip insta 阅读全文
posted @ 2023-04-06 15:47 MasonLee 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 行情接口分析 QMT行情有两套不同的处理逻辑: 数据查询接口:使用时需要先确保MiniQmt已有所需要的数据,如果不足可以通过补充数据接口补充,再调用数据获取接口获取。适用于少量的实时行情数据和大批量的历史行情数据。 订阅接口:直接设置数据回调,数据到来时会由回调返回。订阅接收到的数据一般会保存下来 阅读全文
posted @ 2023-04-03 14:59 MasonLee 阅读(1676) 评论(0) 推荐(0) 编辑
摘要: 最近发现拉取 crates.io 仓库代码尤其慢,很多次超时导致引用库没法编译。 这里可以切到国内镜像,配置如下: 找到当前用户目录下 /Users/baoyachi/.cargo/ 的**.cargo** 文件夹 进入**.cargo** 当前目录,在当前目下创建 config 文件 见下图,打开 阅读全文
posted @ 2023-03-17 22:51 MasonLee 阅读(502) 评论(0) 推荐(0) 编辑
摘要: 1.摘要 国内从DockerHub拉取镜像有时会遇到困难,此时可以配置镜像加速器。 Docker官方和国内很多云服务商都提供了国内加速器服务,建议根据运行docker的云平台选择对应的镜像加速服务。 下面列出国内常用的加速站点,排名不分先后,总体来说阿里云速度较稳定。 docker中国区官方镜像加速 阅读全文
posted @ 2023-03-17 20:26 MasonLee 阅读(881) 评论(0) 推荐(0) 编辑
摘要: 在安装完WSL后,Windows下的盘符会自动挂载在/mnt/目录下,当U盘或移动硬盘插入电脑后无法自动挂载的时候,需要手动挂载。 1.打开Ubuntu系统,在/mnt/下创建U盘或移动硬盘挂载目录(g) sudo mkdir /mnt/g 2.使用drvfs格式将U盘或移动硬盘插入电脑后的盘符G, 阅读全文
posted @ 2023-03-13 09:12 MasonLee 阅读(1446) 评论(0) 推荐(0) 编辑
摘要: 在自己的服务器上安装了code-server,但是markdown预览和jupyter都无法正常显示。 查了一下,需要在https加密模式下才能在浏览器中正常使用功能。 自己的服务器是用zerotier在虚拟局域网内连接,没有公网ip和域名, 最后用的是本地签名证书。如果有自己的域名以及DNS,可以 阅读全文
posted @ 2023-03-10 11:25 MasonLee 阅读(1197) 评论(0) 推荐(0) 编辑
摘要: 问题说明 当使用Dockerfile构建docker时,执行命令apt-get install -y build-essential 时,会安装tzdata, 但从tzdata 2018版本开始(如2018d),安装过程中默认采用交互式,即要求输入指定的Geographic area和Time zo 阅读全文
posted @ 2023-03-09 15:33 MasonLee 阅读(215) 评论(0) 推荐(0) 编辑
摘要: The Xrdp server is the RDP tool (Microsoft Remote Desktop Protocol) for Linux distributions. You can install it on your Linux system to connect your s 阅读全文
posted @ 2023-03-09 15:13 MasonLee 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 1、查看镜像内部的软件源 root@b09e8f69dc59:/# cat /etc/apt/sources.list deb http://deb.debian.org/debian stretch main deb http://security.debian.org/debian-securi 阅读全文
posted @ 2023-03-09 14:49 MasonLee 阅读(1152) 评论(1) 推荐(1) 编辑
摘要: 版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。 安装指令,xfce4中途有需要选择项目,需要注意: sudo apt update -y && sudo apt upgrade -y && sudo apt install xorg -y & 阅读全文
posted @ 2023-03-09 09:57 MasonLee 阅读(665) 评论(0) 推荐(0) 编辑
摘要: 一、简介 部署环境: | 组件 | 版本 | 备注 | | | | | | docker | 19.03.6 | build 369ce74a3c | | docker-compose | 1.27.4 | build 40524192 | | ubuntu | 18.04 | server版 X8 阅读全文
posted @ 2023-03-08 17:24 MasonLee 阅读(789) 评论(0) 推荐(0) 编辑
摘要: ifconfig sudo vi /etc/netplan/00-installer-config.yaml network: ethernets: eno1: dhcp4: no dhcp6: no addresses: [192.168.1.188/24] optional: true rout 阅读全文
posted @ 2023-03-08 14:34 MasonLee 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 1 错误可能原因 之所以会出现登录微软账户报错,很有可能是因为Clash(你懂得) 2 解决方式 1、下载一个finder(抓包软件)(参考) finder官网下载地址:https://www.telerik.com/download/fiddler 2、直接安装就好,选择左上角的WinConfig 阅读全文
posted @ 2023-03-07 11:12 MasonLee 阅读(1147) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 7 ··· 9 下一页