CSS 实现元素水平和垂直居中


Flexbox 布局 父容器使用 Flexbox 布局实现子元素的水平和垂直居中。 .container { display: flex; align-items: center; /* 实现垂直居中 */ justify-content: center; /* 实现水平居中 */ } 结合 Flexbox 和 margin: auto; 属性实现水平和垂直居中。 .container {…
Read more ⟶

Docker 安装 MySQL


实测环境:Centos 查看可下载镜像 # docker search mysqlINDEX NAME DESCRIPTION STARS OFFICIAL AUTOMATEDdocker.io docker.io/mysql MySQL is a widely used, open-source relati... 5757 [OK]docker.io docker.io/mariadb MariaDB is a community-developed fork of M... 1863 [OK]docker.io docker.io/mysql/mysql-server Optimized MySQL Server Docker images. Crea... 397 [OK]...选择下载官方镜像…
Read more ⟶

我的 Mac常用软件


我使用的一些软件工具. 软件 Raycast - Alfred 替代 Snipaste - 截图 DeepL - 翻译 Bob - mac 平台翻译和 OCR 软件(支持插件) Spark - 邮件 Rectangle - 窗口管理 Stats - iStats menu 替代 Hidden Bar - mac 顶部图标折叠 Sequel…
Read more ⟶

npm国内镜像加速


在使用npm过程中经常会遇到无法下载包的问题,本人在这里整理了几个npm使用国内镜像加速的方法,希望对大家有所帮助。 一、修改成腾讯云镜像源 1…
Read more ⟶

Arch 安装及初始化配


调整控制台字体(可选) 终端字体以大号字体显示 setfont ter-132n 无线连接 iwd: iNet wireless daemon iwctl device list # <name> 为 device list 打印列表你中的名字,如 `station wlan0 scan` station <name> scan station <name> get-networks # <ssid> 为 wifi名称 station…
Read more ⟶

macOS 清除 Launchpad 中的无用图标


首先备份找到的数据库文件, 然后再操作 有些已经卸载的application在MAC launchpad (苹果启动台)无法删除: 方法一:Terminal删除 通过命…
Read more ⟶

如何升级Golang依赖项


无论您是否使用Go modules,通过使用go get 命令升级Go 依赖项都是一项基本的工作。 下面是几个如何升级Go modules的示例。 如何将依赖…
Read more ⟶

FIX - gpg failed to sign the data fatal: failed to write commit object


For MacOS | Mojave | High Sierra | BigSur | Monterey Step 1 - Upgrade current gpg brew upgrade gnupg Step 2 - Install pinentry-mac brew install pinentry-mac Step 3 - Update gpg-agent.conf echo "pinentry-program /usr/local/bin/pinentry-mac" >> ~/.gnupg/gpg-agent.conf Step 4 - Restart gpg-agent killall gpg-agent && gpg-agent --daemon Step 5 - Configure git to use GPG git config --global gpg.program gpg git config --global commit.gpgsign true …
Read more ⟶

golang中var、make、new的使用[转]


一、var、make、new、:=的使用习惯: 1.使用make(),来初始化slice,map 和channel 。 2.大多数场合,类型明确的场…
Read more ⟶

Uninstall nix on MacOS


要在 Mac OS 上卸载 nix,请完成以下步骤:: Step 1: 编辑 /etc/zshrc 和/etc/bashrc 并删除以下行 sourcing nix-daemon.sh #Nix if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' fi # End Nix 如果 zshrc 和 bashrc 这两个文件在安…
Read more ⟶