1949

Windows10 git-bash 安装 zsh 和 oh_my_zsh 或 prezto

安装git-bash for windows

https://gitforwindows.org/
下载安装一直下一步即可

下载zsh

https://dotatong.cn/tools/zsh-5.8-3-x86_64.pkg.tar

下载后解压到 Git 安装的根目录,相当于对git bash做一个补充包。

安装oh_my_zsh

安装oh_my_zsh(MacOS也可使用该步骤安装oh_my_zsh)

sh -c "$(curl -fsSL https://dotatong.cn/tools/oh_my_zsh.sh)"
2301

腾讯云Centos8更换源

备份官方源

cd /etc/yum.repos.d
mkdir backup
mv ./CentOS-* ./backup/

使用腾讯源

在目录/etc/yum.repos.d下,创建 CentOS-Base.repo 文件

vi /etc/yum.repos.d/CentOS-Base.repo

写入如下内容

4229

Cesium修改源码增加多区域挖除功能

前言

该方法仅支持挖出凸多边形。想要挖凹多边形,需要把凹多边形分拆成多个凸多边形分别进行开挖。

修改文件

补丁文件来源官方issu
https://github.com/CesiumGS/cesium/issues/8751

补丁文件点此链接下载
https://dotatong.cn/tools/cesium_multi_clipping.zip

此份代码是在cesium1.74基础上修改而来的,我已经尝试过集成到1.91版本。理论上1.74以上版本都是可以支持的。

⚠️请不要直接用补丁文件替换原来的文件,请按本文标明的行数替换官方版本的文件,以下是各个文件需要替换的行号

2207

Centos8 安装 Nginx+PHP+MySQL+Redis

前言

本文针对之前Centos7的安装方法,在Centos8下安装有些变化,故重新整理一遍新的安装方法。本文实际操作系统为:Centos8.5

安装Nginx

centos8下的nginx版本比较新,直接安装即可

yum install -y nginx

安装PHP

通常安装remi源时会自动安装依赖epel源,也可手动安装

yum install https://mirrors.tuna.tsinghua.edu.cn/epel/epel-release-latest-8.noarch.rpm
2405

Centos7 yum安装chrome

创建google-chrome源

vi /etc/yum.repos.d/google-chrome.repo

输入如下内容

[google-chrome]
name=google-chrome - \$basearch
baseurl=http://dl.google.com/linux/chrome/rpm/stable/\$basearch
enabled=1
gpgcheck=0

执行安装