7643

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

前言

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

修改文件

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

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

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

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

3262

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
3154

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

执行安装

2994

Centos7 yum安装tesseract-ocr 4.1

Tesseract是github上的OCR开源库

使用官方源

yum-config-manager --add-repo https://download.opensuse.org/repositories/home:/Alexander_Pozdnyakov/CentOS_7/

安装密钥

sudo rpm --import https://build.opensuse.org/projects/home:Alexander_Pozdnyakov/public_key

执行安装

25606

Centos7安装配置Trojan-go + Nginx

前言

为了利用现有Nginx服务,本文采用手动搭建安装Trojan-go

申请tls证书

安装acme.sh脚本

(请在root用户下安装)

1、【可选】安装依赖

yum -y install socat

2、安装acme.sh脚本

curl https://get.acme.sh | sh

出现:Install success!表示安装成功

3、让环境变量生效

source ~/.bashrc