doracoin / 构建jackyzha0/quartz项目的镜像到自己的docker仓库中
0 likes
0 forks
3 files
Last active
在git项目文件夹根目录下创建该脚本,然后执行即可
执行 build-docker.sh 之前
先 nano quartz.config.ts,
使用 Ctrl+W 搜索:CustomOgImages,找到这一行将它注释,可以解决文章中包含emoji的情况下,quartz构建报错的问题
emitters: [
Plugin.AliasRedirects(),
Plugin.ComponentResources(),
Plugin.ContentPage(),
Plugin.FolderPage(),doracoin / CentOS更换可用软件源
0 likes
0 forks
1 files
Last active
在CentOS停止支持后,社区上还为它保留了一些可用的软件源,这个脚本就是用来快速配置软件源的
| 1 | #!/bin/bash |
| 2 | |
| 3 | # 如果遇到windows格式污染请执行: |
| 4 | # sed -i 's/\r$//' updatesource.sh |
| 5 | |
| 6 | set -euo pipefail |
| 7 | |
| 8 | REPO_DIR="/etc/yum.repos.d" |
| 9 | BACKUP_DIR="${REPO_DIR}/backup_$(date +%F_%H-%M-%S)" |
| 10 | REPO_FILE="${REPO_DIR}/CentOS-Base.repo" |
doracoin / 批量修改Git历史提交邮箱和名称
0 likes
0 forks
2 files
Last active
| 1 | old_email = b"[email protected]" |
| 2 | new_email = b"[email protected]" |
| 3 | new_name = "newname" |
| 4 | |
| 5 | if commit.author_email == old_email: |
| 6 | commit.author_name = new_name.encode("utf-8") |
| 7 | commit.author_email = new_email |
| 8 | if commit.committer_email == old_email: |
| 9 | commit.committer_name = new_name.encode("utf-8") |
| 10 | commit.committer_email = new_email |
doracoin / Linux系统时间诊断工具
0 likes
0 forks
3 files
Last active
使用chrony进行系统的时间检查功能:其中chrony-doctor.sh是个大而全的脚本
| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | VERSION="3.0" |
| 4 | SERVICE="chronyd" |
| 5 | CONF="/etc/chrony.conf" |
| 6 | LOGFILE="/tmp/chrony_doctor_$(date +%Y%m%d_%H%M%S).log" |
| 7 | |
| 8 | if systemctl list-unit-files | grep -q chrony.service; then |
| 9 | SERVICE="chrony" |
| 10 | fi |
Newer
Older