1 Star 2 Fork 1

ldsink / toolbox

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.47 KB
一键复制 编辑 原始数据 按行查看 历史
ldsink 提交于 2023-12-08 11:16 . chore: use version params (#6)

Toolbox

  • some useful scripts.
  • some configuration files.

scripts / commands

Based on Debian, for deepin, ubuntu etc.

Description Usage
设置中国时区(Asia/Shanghai) sudo timedatectl set-timezone Asia/Shanghai
选择默认编辑器 sudo update-alternatives --config editor
debian 系升级系统 sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y
Ubuntu 开启 universe 仓库 sudo add-apt-repository universe

shell command lines

Changing your Git author identity ref

git filter-branch --env-filter '
WRONG_EMAIL="cheng@macos.local"
NEW_NAME="ZHOU Cheng"
NEW_EMAIL="c.zhou@live.com"

if [ "$GIT_COMMITTER_EMAIL" = "$WRONG_EMAIL" ]
then
    export GIT_COMMITTER_NAME="$NEW_NAME"
    export GIT_COMMITTER_EMAIL="$NEW_EMAIL"
fi
if [ "$GIT_AUTHOR_EMAIL" = "$WRONG_EMAIL" ]
then
    export GIT_AUTHOR_NAME="$NEW_NAME"
    export GIT_AUTHOR_EMAIL="$NEW_EMAIL"
fi
' --tag-name-filter cat -- --branches --tags

images

docker compose

  • Redis Standalone
  • PostgreSQL Standalone
  • Jenkins LTS
  • Sentry
  • ClickHouse
1
https://gitee.com/ldsink/toolbox.git
git@gitee.com:ldsink/toolbox.git
ldsink
toolbox
toolbox
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891