Compare commits
10 Commits
3a9f062cfe
...
f5bd3f5d07
Author | SHA1 | Date | |
---|---|---|---|
f5bd3f5d07 | |||
3bf87eb49b | |||
33bfe0075e | |||
1d0f82b41b | |||
25a3338c43 | |||
b2a40fc656 | |||
25eb433617 | |||
b2630960cc | |||
da89e56306 | |||
b9702e82cc |
@ -1,8 +1,7 @@
|
||||
---
|
||||
title: {{ title }}
|
||||
date: {{ date }}
|
||||
sitemap: true
|
||||
keywords: []
|
||||
categories: []
|
||||
keywords: []
|
||||
tags: []
|
||||
---
|
||||
|
@ -1,6 +1,5 @@
|
||||
---
|
||||
title: {{ title }}
|
||||
date: {{ date }}
|
||||
sitemap: true
|
||||
keywords: []
|
||||
---
|
||||
|
@ -1,8 +1,7 @@
|
||||
---
|
||||
title: {{ title }}
|
||||
date: {{ date }}
|
||||
sitemap: true
|
||||
keywords: []
|
||||
categories: []
|
||||
keywords: []
|
||||
tags: []
|
||||
---
|
||||
|
@ -1,25 +0,0 @@
|
||||
---
|
||||
title: pacman
|
||||
date: 2022-08-31 14:08:30
|
||||
sitemap: true
|
||||
keywords: [Arch Linux, pacman, mirrorlist]
|
||||
categories: [Arch Linux]
|
||||
tags: [Arch Linux, pacman]
|
||||
---
|
||||
|
||||
``` conf /etc/pacman.d/mirrorlist.china
|
||||
# Server list generated by rankmirrors on 2022-08-31
|
||||
Server = http://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch
|
||||
Server = https://mirrors.aliyun.com/archlinux/$repo/os/$arch
|
||||
Server = http://mirrors.aliyun.com/archlinux/$repo/os/$arch
|
||||
Server = https://mirrors.sjtug.sjtu.edu.cn/archlinux/$repo/os/$arch
|
||||
Server = http://mirrors.shanghaitech.edu.cn/archlinux/$repo/os/$arch
|
||||
Server = https://mirrors.shanghaitech.edu.cn/archlinux/$repo/os/$arch
|
||||
Server = https://mirrors.xjtu.edu.cn/archlinux/$repo/os/$arch
|
||||
Server = http://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch
|
||||
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch
|
||||
```
|
||||
|
||||
``` bash 使用 rankmirrors 将 mirrorlist 中的 mirrors 进行排序
|
||||
rankmirrors /etc/pacman.d/mirrorlist.china > /etc/pacman.d/mirrorlist
|
||||
```
|
@ -1,11 +1,12 @@
|
||||
---
|
||||
title: 'Hello, Hexo!'
|
||||
keywords: [Hexo]
|
||||
categories:
|
||||
- Hexo
|
||||
keywords:
|
||||
- Hexo
|
||||
tags:
|
||||
- Hexo
|
||||
sitemap: true
|
||||
date: 2022-08-29 15:08:08
|
||||
---
|
||||
|
||||
## 命令
|
||||
|
@ -1,9 +1,12 @@
|
||||
---
|
||||
title: Linux 登录时显示的信息是什么
|
||||
sitemap: true
|
||||
keywords: [Linux,mtod]
|
||||
categories: [Arch Linux]
|
||||
tags: [Linux,mtod]
|
||||
keywords:
|
||||
- Linux
|
||||
- mtod
|
||||
categories:
|
||||
- Linux
|
||||
tags:
|
||||
- Linux
|
||||
date: 2022-09-03 12:50:34
|
||||
---
|
||||
|
16
source/_posts/Linux/pacman.md
Normal file
16
source/_posts/Linux/pacman.md
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
title: pacman
|
||||
keywords:
|
||||
- Arch Linux
|
||||
- pacman
|
||||
categories:
|
||||
- Linux
|
||||
tags:
|
||||
- Arch Linux
|
||||
- pacman
|
||||
date: 2022-08-31 14:08:30
|
||||
---
|
||||
|
||||
``` bash 使用 rankmirrors 将 mirrorlist 中的 mirrors 进行排序
|
||||
rankmirrors /etc/pacman.d/mirrorlist.china > /etc/pacman.d/mirrorlist
|
||||
```
|
@ -1,13 +1,10 @@
|
||||
---
|
||||
title: 在树莓派上安装 Arch Linux
|
||||
sitemap: true
|
||||
keywords:
|
||||
- Raspberry Pi
|
||||
- 树莓派
|
||||
- 安装
|
||||
- Arch Linux
|
||||
- Arch Linux ARM
|
||||
categories:
|
||||
- Arch Linux
|
||||
- Linux
|
||||
tags:
|
||||
- Raspberry Pi
|
||||
- Arch Linux
|
121
source/_posts/Linux/软件镜像源.md
Normal file
121
source/_posts/Linux/软件镜像源.md
Normal file
@ -0,0 +1,121 @@
|
||||
---
|
||||
title: 软件镜像源
|
||||
categories:
|
||||
- Linux
|
||||
keywords:
|
||||
- 软件
|
||||
- 镜像源
|
||||
- mirror
|
||||
- Arch Linux
|
||||
- Arch Linux ARM
|
||||
- pacman
|
||||
- Raspberry Pi OS
|
||||
- raspbian
|
||||
- debian
|
||||
- apt
|
||||
- Python
|
||||
- pypi
|
||||
- pip
|
||||
- Node
|
||||
- nodejs
|
||||
- npm
|
||||
tags:
|
||||
- Arch Linux
|
||||
- Arch Linux ARM
|
||||
- Raspberry Pi OS
|
||||
- Raspbian
|
||||
- Debian
|
||||
- Python
|
||||
- Node.js
|
||||
date: 2022-09-03 15:30:47
|
||||
---
|
||||
|
||||
# 国内软件镜像源
|
||||
|
||||
- [中国科学技术大学软件源](https://mirrors.ustc.edu.cn)
|
||||
- [清华大学开源软件镜像站](https://mirrors.tuna.tsinghua.edu.cn)
|
||||
- [上海交通大学软件源](https://mirrors.sjtug.sjtu.edu.cn)
|
||||
- [西安交通大学软件源](https://mirrors.xjtu.edu.cn)
|
||||
- [腾讯软件源](https://mirrors.cloud.tencent.com)
|
||||
- [阿里云软件源](https://mirrors.aliyun.com)
|
||||
|
||||
<!-- more -->
|
||||
|
||||
# Arch Linux
|
||||
|
||||
``` conf /etc/pacman.d/mirrorlist
|
||||
Server = http://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch
|
||||
Server = https://mirrors.aliyun.com/archlinux/$repo/os/$arch
|
||||
Server = http://mirrors.aliyun.com/archlinux/$repo/os/$arch
|
||||
Server = https://mirrors.sjtug.sjtu.edu.cn/archlinux/$repo/os/$arch
|
||||
Server = https://mirrors.xjtu.edu.cn/archlinux/$repo/os/$arch
|
||||
Server = http://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch
|
||||
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch
|
||||
```
|
||||
|
||||
``` conf /etc/pacman.conf
|
||||
[options]
|
||||
HoldPkg = pacman glibc
|
||||
Architecture = auto
|
||||
IgnorePkg =
|
||||
Color
|
||||
CheckSpace
|
||||
ParallelDownloads = 5
|
||||
SigLevel = Required DatabaseOptional
|
||||
LocalFileSigLevel = Optional
|
||||
[core]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
[extra]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
[community]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
[multilib]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
[archlinuxcn]
|
||||
Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
|
||||
#Server = https://mirrors.cloud.tencent.com/archlinuxcn/$arch
|
||||
#Server = https://repo.archlinuxcn.org/$arch
|
||||
```
|
||||
|
||||
# Arch Linux ARM
|
||||
|
||||
以下是 Arch Linux for Raspberry Pi 3,4,400 的配置,注意架构是 aarch64
|
||||
|
||||
``` conf /etc/pacman.d/mirrorlist
|
||||
Server = https://mirrors.ustc.edu.cn/archlinuxarm/$arch/$repo
|
||||
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxarm/$arch/$repo
|
||||
```
|
||||
|
||||
``` conf /etc/pacman.conf
|
||||
[options]
|
||||
HoldPkg = pacman glibc
|
||||
Architecture = aarch64
|
||||
Color
|
||||
CheckSpace
|
||||
ParallelDownloads = 5
|
||||
SigLevel = Required DatabaseOptional
|
||||
LocalFileSigLevel = Optional
|
||||
[core]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
[extra]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
[community]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
[alarm]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
[aur]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
```
|
||||
|
||||
# Raspberry Pi OS
|
||||
|
||||
以下是 debian 衍生版 Raspberry Pi OS 64-Bit 的配置文件
|
||||
|
||||
``` conf /etc/apt/sources.list
|
||||
deb https://mirrors.ustc.edu.cn/debian/ bullseye main contrib non-free
|
||||
# deb-src http://mirrors.ustc.edu.cn/debian bullseye main contrib non-free
|
||||
deb https://mirrors.ustc.edu.cn/debian/ bullseye-updates main contrib non-free
|
||||
# deb-src http://mirrors.ustc.edu.cn/debian bullseye-updates main contrib non-free
|
||||
deb https://mirrors.ustc.edu.cn/debian-security bullseye-security main contrib non-free
|
||||
# deb-src http://mirrors.ustc.edu.cn/debian-security/ bullseye-security main non-free contrib
|
||||
```
|
@ -1,9 +1,14 @@
|
||||
---
|
||||
title: Pyhton 环境搭建
|
||||
sitemap: true
|
||||
keywords: [Python]
|
||||
categories: [Python]
|
||||
tags: [Python]
|
||||
categories:
|
||||
- Python
|
||||
keywords:
|
||||
- Python
|
||||
- pip
|
||||
- pypi
|
||||
- pipenv
|
||||
tags:
|
||||
- Python
|
||||
date: 2022-09-03 12:13:10
|
||||
---
|
||||
|
||||
|
@ -1,10 +1,12 @@
|
||||
---
|
||||
title: Python 捕获 Ctrl+C 手工终止程序的方法
|
||||
date: 2022-08-31 15:13:08
|
||||
sitemap: true
|
||||
keywords: [Python]
|
||||
categories: [Python]
|
||||
tags: [Python]
|
||||
categories:
|
||||
- Python
|
||||
keywords:
|
||||
- Python
|
||||
tags:
|
||||
- Python
|
||||
---
|
||||
|
||||
日常编写调试运行程序过程中,难免需要手动终止程序。可以使用以下的方法捕获 KeyboardInterrupt,从而优雅地终止程序的运行。
|
||||
|
@ -1,10 +1,13 @@
|
||||
---
|
||||
title: 如何为系统选择默认的 Python 版本
|
||||
categories:
|
||||
- Python
|
||||
keywords:
|
||||
- Python
|
||||
- 版本
|
||||
tags:
|
||||
- Python
|
||||
date: 2022-08-31 15:08:08
|
||||
sitemap: true
|
||||
keywords: [Python,默认,版本]
|
||||
categories: [Python]
|
||||
tags: [Python]
|
||||
---
|
||||
|
||||
# 对于 Debian, Ubuntu 等系统
|
||||
|
@ -1,10 +1,9 @@
|
||||
---
|
||||
title: 《那年那兔那些事》 第一季
|
||||
sitemap: true
|
||||
keywords:
|
||||
- 那年那兔那些事
|
||||
categories:
|
||||
- YouTube
|
||||
keywords:
|
||||
- 那年那兔那些事
|
||||
tags:
|
||||
- YouTube
|
||||
- 视频
|
||||
|
@ -1,10 +1,9 @@
|
||||
---
|
||||
title: 《那年那兔那些事》 第三季
|
||||
sitemap: true
|
||||
keywords:
|
||||
- 那年那兔那些事
|
||||
categories:
|
||||
- YouTube
|
||||
keywords:
|
||||
- 那年那兔那些事
|
||||
tags:
|
||||
- YouTube
|
||||
- 视频
|
||||
|
@ -1,10 +1,9 @@
|
||||
---
|
||||
title: 《那年那兔那些事》 第二季
|
||||
sitemap: true
|
||||
keywords:
|
||||
- 那年那兔那些事
|
||||
categories:
|
||||
- YouTube
|
||||
keywords:
|
||||
- 那年那兔那些事
|
||||
tags:
|
||||
- YouTube
|
||||
- 视频
|
||||
|
@ -1,10 +1,9 @@
|
||||
---
|
||||
title: 《那年那兔那些事》 第五季
|
||||
sitemap: true
|
||||
keywords:
|
||||
- 那年那兔那些事
|
||||
categories:
|
||||
- YouTube
|
||||
keywords:
|
||||
- 那年那兔那些事
|
||||
tags:
|
||||
- YouTube
|
||||
- 视频
|
||||
|
@ -1,10 +1,9 @@
|
||||
---
|
||||
title: 《那年那兔那些事》 第四季
|
||||
sitemap: true
|
||||
keywords:
|
||||
- 那年那兔那些事
|
||||
categories:
|
||||
- YouTube
|
||||
keywords:
|
||||
- 那年那兔那些事
|
||||
tags:
|
||||
- YouTube
|
||||
- 视频
|
||||
|
@ -1,21 +1,19 @@
|
||||
---
|
||||
title: 身体质量指数
|
||||
keywords:
|
||||
- 网页
|
||||
- 工具
|
||||
categories:
|
||||
- 作品
|
||||
- 工具
|
||||
keywords:
|
||||
- 健康
|
||||
tags:
|
||||
- JavaScript
|
||||
sitemap: true
|
||||
date: 2022-09-02 17:12:35
|
||||
mathjax: true
|
||||
---
|
||||
|
||||
身体质量指数(Body Mass Index,简称BMI),简称体质指数,是由一个人的质量(体重)和身高计算出的一个数值。BMI的定义是体重除以身高的平方,以千克/平方米为单位表示,由质量(千克)和身高(米)得出:
|
||||
|
||||
$$ BMI = { 体重 \over 身高 ^ {2} } \tag {身体质量指数计算公式} $$
|
||||
$$ BMI = { 体重 \over 身高 ^ {2} } $$
|
||||
|
||||
身体质量指数是国际上衡量人体胖瘦程度以及是否健康的一个常用指标,BMI正常值在20至25之间,超过25为超重,30以上则属肥胖。
|
||||
|
||||
|
@ -1,15 +1,13 @@
|
||||
---
|
||||
title: 记忆游戏
|
||||
keywords:
|
||||
- 网页
|
||||
- 游戏
|
||||
categories:
|
||||
- 作品
|
||||
- 游戏
|
||||
keywords:
|
||||
- 网页游戏
|
||||
tags:
|
||||
- JavaScript
|
||||
- CSS
|
||||
sitemap: true
|
||||
date: 2022-08-30 17:31:35
|
||||
---
|
||||
|
||||
|
@ -1,16 +1,13 @@
|
||||
---
|
||||
title: 社会主义核心价值观
|
||||
keywords:
|
||||
- 网页
|
||||
- 鼠标
|
||||
- 特效
|
||||
categories:
|
||||
- 作品
|
||||
- 特效
|
||||
keywords:
|
||||
- 鼠标特效
|
||||
tags:
|
||||
- JavaScript
|
||||
- CSS
|
||||
sitemap: true
|
||||
date: 2022-08-30 10:31:35
|
||||
---
|
||||
|
||||
|
@ -1,7 +1,5 @@
|
||||
---
|
||||
title: 收藏夹
|
||||
sitemap: true
|
||||
keywords: []
|
||||
date: 2022-08-30 18:53:13
|
||||
---
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user