JueLuo's Blog


  • Home

  • Categories

  • Archives

  • Tags

  • Search

移除 VScode 中 autopep8 的最大行长度限制

Posted on 2022-03-30 | In Python

方法一

在 settings.json 中加入以下设置:

1
2
3
4
"python.formatting.provider": "autopep8",
"python.formatting.autopep8Args": [
    "--max-line-length=200"
],

方法二

  1. 按 Ctrl + , 打开设置
  2. 搜索 python.formatting.autopep8Args
  3. 点击 Add Item
  4. 写入 --max-line-length=200
Read more »

禁止 Edge 浏览器自动使用 HTTPS

Posted on 2022-03-04 | In Windows

Edge 浏览器会自动套用 HTTPS,但这对开发者来说是不友好的。

禁用步骤如下:

在地址栏输入 edge://net-internals/#hsts 并访问

找到 Delete domain security policies 输入不想自动使用 HTTPS 的域名,并点击 Delete

Android 版的 Edge 浏览器也可以使用这个方法

Read more »

中小型企业网络组建实验

Posted on 2022-03-01 | In 网络

使用华为 eNSP 尝试了一次中小型企业网络组建实验

Read more »

解决“发生系统错误 67。 找不到网络名。”

Posted on 2022-02-26 | In Windows

在使用文件管理器或命令行的 net use 命令挂载网络路径时,可能会出现这样的报错:

发生系统错误 67。

找不到网络名。

在排除域名解析问题后,可以尝试手动启动 WebClient 服务以解决此问题

Read more »

在 Windows 上挂载非标准端口的 WebDAV

Posted on 2022-02-25 | In Windows

无法在可视化的界面上完成此操作

可以在命令行里使用以下命令实现

1
net use * https://example.com:9001/dav.php

挂载成功后,可以至“我的电脑”中修改其显示的名称

以此法挂载的 WebDAV 服务不能正确显示容量

Read more »

备份 Docker 中的 MySQL 数据库

Posted on 2022-02-23 | In Docker

备份全部数据库

1
$ docker exec some-mysql-docker sh -c 'exec mysqldump --all-databases -uroot -p"$MYSQL_ROOT_PASSWORD"' > /some/path/on/your/host/all-databases.sql

备份指定的某个数据库

1
$ docker exec some-mysql-docker sh -c 'exec mysqldump --databases db_name -uroot -p"$MYSQL_ROOT_PASSWORD"' > /some/path/on/your/host/db1.sql
Read more »

华为网络设备部分命令速查

Posted on 2022-02-15 | In 网络

关于 eNSP 的一些吐槽

  1. VirtualBox 版本必须为 eNSP 安装时提示的对应版本,否则在主程序启动时会有个错误提示,且设备不能正常启动
  2. ping 命令展示的耗时远比思科模拟器或现实环境要长,原因未知
Read more »

在 Linux 上查看硬盘 Smart 信息

Posted on 2022-02-13 | In Linux

本文将简单介绍如何在 Linux 上使用命令查看硬盘的 SMART 信息。

安装

Debian 系

1
apt install smartmontools

Red Hat 系

1
yum install smartmontools

简单使用

查看全部硬盘 smartctl --scan
查看硬盘的标识信息 sudo smartctl --info /dev/sdx
查看硬盘的 SMART 信息 sudo smartctl -a /dev/sdx

SMART 信息中的 TYPE

Pre-fail :SMART 认为硬盘即将发生故障。 Old_age :SMART 认为这是一个正常的磨损。

Read more »

如何在 Jekyll 文章中设置「阅读全文」?

Posted on 2022-02-06 | In Jekyll

在首页显示文章的摘要内容,并提供跳转到全文页面的链接是一个常见的需求

Read more »

WS-RP2040-Zero 的简单使用

Posted on 2022-01-13 | In 硬件
Read more »
1 2 3 … 7
JueLuo

JueLuo

The better we get at getting better, the faster we will get better.

65 posts
21 categories
86 tags
GitHub Weibo Steam
© 2015 - 2024 JueLuo
Powered by Jekyll
Theme - NexT.Pisces