Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment
ubuntu22.04国内源
ubuntu22.04国内源阿里源12345678910deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu...
hexo用法
Create a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server -p 80 More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment
ubuntu安装gitlab
更新你的系统:12sudo apt updatesudo apt upgrade 添加GitLab仓库:1curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash 安装GitLab:1sudo EXTERNAL_URL="https://gitlab.example.com" apt install gitlab-ee 配置和启动GitLab:123Copy Codesudo gitlab-ctl reconfiguresudo gitlab-ctl start 访问GitLab:在浏览器中访问https://gitlab.example.com。
GitLab的IP地址发生变更导致Runner掉线
当GitLab的IP地址发生变更导致Runner掉线时,需同步更新GitLab配置并重启服务。以下是具体解决方案: 1、修改配置文件进入目录 /opt/gitlab/embedded/service/gitlab-rails/config,编辑gitlab.yml文件,将host字段的值更新为新的IP地址。 2、编辑/etc/gitlab/gitlab.rb文件,在配置中添加或修改以下行: external_url “https://新IP地址:端口号”例如: 3、重启服务执行以下命令使配置生效: 12sudo gitlab-ctl reconfiguresudo gitlab-ctl restart
GitLab Yaml
cat > /etc/apt/sources.list << EOFdeb https://mirrors.ustc.edu.cn/ubuntu/ jammy main restricted universe multiversedeb https://mirrors.ustc.edu.cn/ubuntu/ jammy-security main restricted universe multiversedeb https://mirrors.ustc.edu.cn/ubuntu/ jammy-updates main restricted universe multiversedeb https://mirrors.ustc.edu.cn/ubuntu/ jammy-backports main restricted universe multiverseEOFcurl https://sh.rustup.rs -sSf | sh -s – -y –default-toolchain 1.75wget https://stora...
Ubuntu上安装Docker
在Ubuntu上安装Docker。 更新包索引首先,确保你的包列表是最新的。打开终端并输入以下命令: 1sudo apt-get update 安装依赖包安装Docker之前,需要先安装一些依赖包: 1sudo apt-get install apt-transport-https ca-certificates curl software-properties-common 添加Docker的官方GPG密钥为了确保下载的包是安全的,你需要添加Docker的官方GPG密钥: 1curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - 或者使用以下命令: 12sudo mkdir -p /etc/apt/keyringscurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg 设置稳定版仓库添加Docker仓库到...
阿里云镜像仓库
123docker login --username=615973808@qq.com registry.cn-hangzhou.aliyuncs.comdocker tag IDXX registry.cn-hangzhou.aliyuncs.com/lyfch/oslock:python3.10.14docker push registry.cn-hangzhou.aliyuncs.com/lyfch/oslock:python3.10.14
摄影
感光度又称为ISO,是指相机对光线的敏感程度。ISO值越大,感光度越高,拍出来的照片就会越亮,反之就会越暗。但是ISO过高会使照片噪点也随之变高。
django Dockerfile
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051# 使用debian Linux作为基础镜像#FROM python:3.10.14-bullseyeFROM registry.cn-hangzhou.aliyuncs.com/lyfch/oslock:python3.10.14# # 备份原有的sources.list文件RUN rm -f /etc/apt/sources.listRUN rm -fr /etc/apt/sources.list.d/ # 添加软件源RUN echo \"deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main \" >> /etc/apt/sources.listRUN echo \"deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bulls...