CentOS 相关笔记

CentOS 8 更新下载源

备份现有源

设置新的yum目录

安装wget

下载配置。此处一定要注意,很多教程都是CentOS7的教程,所以贴的CentOS7的下载源,对于CentOS8一定要改为CentOS8的下载源,否则还是不行

清除文件并重建元数据缓存

最后更新软件包,稍等软件安装包安装完就可以了

CentOS 8 安装 FFmpeg

FFmpeg在默认的CentOS 8源仓库中没有提供。你可以选择通过源文件编译安装 FFmpeg,或者使用dnf工具从Negativo17源仓库中安装。我们将会使用第二个选项。

Negativo17软件源依赖EPEL 和 PowerTools 软件源。以root或者其他有sudo权限的用户身份运行下面的命令,启用必须的软件源:

想当初博主栽在了源上,最后在清华大学镜像站手撸好久才找到合适的。

安装FFmpeg

通过检测版本号,验证FFmpeg安装

在写这篇文章的时候,FFmpeg在Negativo17软件源中的当前版本是2.8.15

1
2
3
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8 (GCC)
...

这个命令同时会打印出 FFmpeg 的配置选项。

CentOS 8 安装 Node NPM

开发工具

安装16lts

安装n模块

升级到最新稳定版

升级npm到最新版(可选)

重启

Node.js 相关问题

查看当前的源:

官方源:

淘宝源:

我的反代

https://fastly.i5res.com/ -> https://cdn.jsdelivr.net/

Disco Diffusion

https://zhuanlan.zhihu.com/p/499979636
https://www.zhihu.com/question/533924893
https://www.techbang.com/posts/96034-can-you-draw-a-world-famous-painting-by-hitting-three
https://weirdwonderfulai.art/resources/disco-diffusion-70-plus-artist-studies/
https://colab.research.google.com/github/PluginsKers/disco-diffusion/blob/main/Disco_Diffusion.ipynb#scrollTo=SettingsTop
https://drive.google.com/drive/folders/1-g7ZAFdro_uqdqEBw4bpp-BpPhi-Lkex

记录如何重置submodule

1
2
3
4
5
cd .git
vim config
rm ./modules/*
git rm --cached modules
rm ../gitmodules

Minecraft

数据包/指令包 模板下载
数据包/指令包 模板下载

https://fastly.i5res.com/gh/PluginsKers/cdn/2023/index-2023-01-07-13-06-49.zip

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
└─data
├─example_pack
│ ├─advancements
│ ├─functions
│ ├─loot_tables
│ ├─recipes
│ ├─structures
│ └─tags
│ ├─blocks
│ ├─fluids
│ ├─functions
│ └─items
└─minecraft
└─tags
└─functions

选择器

@s自身 @a全部 @p最近的一个玩家 @e所有实体 @r随机一个玩家

execute as @a[gamemode=survival] at @s ...选择所有生存模式的玩家,并且作为他们执行命令。其中at @s是选中玩家以后使用其坐标位置。

Sound Sources

Spitfire - LABS:https://labs.spitfireaudio.com/
UJAM - Finisher Micro:https://www.ujam.com/micro/
TDR - Nova:https://www.tokyodawn.net/tdr-nova/
Valhalla - supermassive:https://valhalladsp.com/shop/reverb/valhalla-supermassive/
Melda Production - Free Bundle:https://www.meldaproduction.com/MFreeFXBundle
W.A.Production - Outlaw Lite:https://www.waproduction.com/plugins/view/outlaw-lite
Waves的CLA EchoSphere:https://www.waves.com/lpn/black-friday-2020/free-plugin-signup Delay+Reverb的组合插件,没什么特别的,一般
Slate Digital的Fresh Air:https://slatedigital.com/#bfHomeFreshAir 增加空气感,增加明亮度,可以一试