WeChat generates two-dimensional code, scanning code concern about the official account PHP

Use to wechat interface is“ Generate QR code with parameters ”Two kinds of QR codes can be generated, one is temporary QR code, which will expire with a large amount of generation. It is mainly used in business scenarios such as account binding, where the QR code is not required to be permanently saved; the other is permanent QR cod ...

Added by Riparian on Fri, 17 Apr 2020 19:13:17 +0300

Adjust parameters to hide the information number of Nginx software version

Reference material [1] . learn Linux operation and maintenance from the old boy: Web Cluster practice, old boy setup script View native information [root@www ~]# curl -I 127.0.0.1 server_tokens In the http tag section of Nginx configuration file nginx.conf, add the parameter "server" tokens off http ...

Added by bschultz on Sun, 05 Apr 2020 19:50:47 +0300

micrometer custom metrics

order This paper mainly studies how to use metrics of custom micrometer Example DemoMetrics public class DemoMetrics implements MeterBinder { AtomicInteger count = new AtomicInteger(0); @Override public void bindTo(MeterRegistry meterRegistry) { Gauge.builder("demo.count", count, c -> c.incrementAndGet()) ...

Added by Octave91 on Sun, 05 Apr 2020 19:04:01 +0300

How to check the parameters of webplus

order This paper mainly studies how to verify the parameters of webplus Using javax.validation domain import javax.validation.constraints.Min; import javax.validation.constraints.NotEmpty; public class User { @Min(1) private long id; @NotEmpty private String name; @Min(20) private int age; //... } Handling e ...

Added by koolswans on Sun, 05 Apr 2020 13:39:34 +0300

The whole process of building php7 and nginx running environment with docker

Since we used to use docker image to enter the container and use yum to install nginx or php, we found that the whole image is larger and faster by 2G. Large documents will affect the environmental shift value, and there is no technical content. Today, I found a sub environment installation on the Internet to separate nginx and php into two ima ...

Added by luxe on Fri, 03 Apr 2020 12:00:19 +0300

PHP FFI Details - A new way to extend PHP

This article address: https://www.laruence.com/2020/03/11/5475.html Please indicate the source for reprinting With PHP 7.4 comes an extension that I think is very useful: PHP FFI (Foreign Function interface), which refers to a description in a PHP FFI RFC: For PHP, FFI provides a way to write PHP extensions and bindings to C li ...

Added by $SuperString on Mon, 30 Mar 2020 06:00:01 +0300

Filebeat Quick Start

Notes are organized in https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-installation.html Only for personal learning summary.Filebeat is a lightweight log collection tool that is often used in conjunction with ELK as a data collection source. filebeat Usage Diagram Install Deployment Centos7 (used by authors) Bec ...

Added by flyersman on Sun, 29 Mar 2020 22:21:44 +0300

Can I create a remote warehouse on GitHub from CLI without opening a browser?

I created a new local Git Repository: ~$ mkdir projectname ~$ cd projectname ~$ git init ~$ touch file1 ~$ git add file1 ~$ git commit -m 'first commit' Is there any git command to create a new remote warehouse and push my submission to GitHub from there? I know to launch the browser and turn to Create a new repository It's no big deal, b ...

Added by info@ipfaces.org on Sun, 08 Mar 2020 12:19:42 +0200

k8s data persistence statefulset data persistence and automatic creation of PV and PVC

One: Statefulset StatefulSet is designed to solve the problem of stateless services. The corresponding Deployment and ReplicaSet are designed for stateless services, and their scenarios include:1. Stable persistent storage, i.e. access to the same persistent data after Pod rescheduling, based on PVC2. Stable network flags, i.e. PodName and Ho ...

Added by wshost on Tue, 25 Feb 2020 05:09:26 +0200

[blockchain] Fabric v1.4.0 installation and deployment

Fabric v1.4.0 installation deployment 1, Preliminary preparation number tool Version number 1 cURL Latest version (7.63.0) 2 Docker 17.06.2-ce and above 3 Docker Compose 1.14.0 and above 4 Go 1.11.x cURL latest installation The default curl does not support https. You need to config ...

Added by angus930 on Sun, 23 Feb 2020 08:01:02 +0200