/60c0f651d4eb4a8386026734b061a9bd.png

离线安装Docker

背景 有一台CentOS 7.3 的服务器需要安装Docker,但是服务器无法连接公网。 安装方式 下载Docker二进制文件 在本地电脑,或者可以联网的服

ARTS Week 34

1.Algorithm 2.Review O(zero) 我们常会使用大O表示法来衡量一个算法的运算效率,比如O(n^2)就是运算成本较高的,O(n)相对线性一点,O(1)表示极高的效率 但是该

Migrate RAID to new server

background Server: Dell R730xd with H330 RAID Controller Storage: 2x800G SSD configured in RAID 1 Requirement: Migrate the SSDs to a new server while maintaining the RAID 1 configuration and preserving data integrity 将SSD迁移至新的服务器,并保证RAID配置、数据不变 Steps To migrate RAID 1 configuration from the Dell R730xd

ARTS Week 29, 2024

1.Algorithm 2.Review How an empty S3 bucket can make your AWS bill explode 阅读之前的问题: 为什么OSS bucket name泄露可能导致恶意刷流量? 在aws s3上面,会按照请求的次数收费,哪怕不是上传

Postgresql_backup

使用 pg_dump 进行逻辑备份 pg_dump 是 PostgreSQL 自带的工具,用于创建数据库的逻辑备份。它生成一个包含SQL语句的文件,可以用来重建数据库。 示例脚本 #!/bin/bash # Postgre

ARTS Week 28, 2024

1.Algorithm LCR 159. 库存管理 III 方法一:排序 class Solution: def inventoryManagement(self, stock: List[int], cnt: int) -> List[int]: stock = sorted(stock) return(stock[:cnt]) 对原数组从小到大排序后取出前 cnt 个数即可。 方法二:堆 我们用一个大根堆实时维护数组的前 cnt