Wechat GET request method/access_token/access_token storage

Let's take a look at some of the knowledge points of Wechat Public Number. First of all, today we'll learn how to get access_token. As we all know, when we learn PHP, we need to go back and forth between the client and the server, which is enough to make people dizzy. Wechat Public Number here, there is another one, no ...

Posted by adige on Wed, 02 Jan 2019 21:03:09 -0800

Saltstack's api && httpapi

I. Saltstack's api Salt-api has two ways, one is in the form of functions, there are well-defined functions, we can call directly, directly write python code to call functions or classes. The second form is that salt-api has an encapsulated http protocol. We need to start a server. Installation: yum install –y salt-api 1. Load ...

Posted by deft on Tue, 01 Jan 2019 18:42:08 -0800

SpringBook builds RESTful service to complete Get and Post

A basic RESTfule service that provides the most outgoing request Method is Get and Post. In Get, it is common to take parameters on requests, or path parameters. Response to Json. In Post, form data or json data are often submitted as parameters to respond to Json.   1. Get request, url parameter, return json. Prepare a request and then re ...

Posted by whitepony6767 on Tue, 01 Jan 2019 17:51:08 -0800

12.13 Nginx Anti-theft Chain 12.14 Nginx Access Control 12.15 Nginx Resolution php Related Configuration 12.16 Nginx Agent

12.13 Nginx Anti-theft Chain The configuration is as follows, which can be combined with the above configuration The * here represents the case-insensitive parentheses that follow. Beginning of ^ server_names can be omitted location ~* ^.+\.(ico|gif|jpg|png|swf|flv|rar|zip|doc|pdf|gz|bz2|jpeg|bmp|xls)$ { expires 7d; valid_referers none ...

Posted by JimmyD on Tue, 25 Dec 2018 09:33:06 -0800

Core Technology of Progressive Web Apps(PWA) - Push Notification Using Firebase Cloud Messaging

Chrome is currently in use Firebase cloud messaging (FCM) As its push service. FCM recently adopted the Web Push protocol. FCM is a follow-up product of Google Cloud Messaging (GCM), which supports the same and more functions. To use Firebase cloud messaging, you need to set up projects on Firebase (see the VAPID secti ...

Posted by maxsslade on Sun, 16 Dec 2018 14:24:04 -0800

Install SDKMAN (The Software Development Kit Manager)

SDKMAN is a tool for managing parallel versions of multiple software development toolbox based on Unix system. It provides a simple command line interface (CLI) and API for installing, converting, removing and displaying installable lists. Its predecessor is the Groovy enVironment Manager, inspired by RVM and vbenv tools that are mainly used i ...

Posted by jkohns on Sat, 15 Dec 2018 17:21:03 -0800

spring rabbit mq enables publisher confirm

Acknowledgement mechanism When a producer sends a message, one thing to consider is whether the message has been successfully submitted and whether it has reached the queue. This judgment of AMQP protocol itself has also been designed for this purpose, using the transaction mechanism. However, transaction mechanism has two shortcomings: slow ...

Posted by msing on Fri, 14 Dec 2018 19:48:04 -0800

Using ngx_http_image_filter_module of Nginx to make real-time picture thumbnails

You're still using it. ImageMagick Create thumbnails of uploaded pictures on the website? In fact, there are better ways to put one in place, simple and effective. Nowadays, there are many cloud storage services supporting image space, and according to the set rules to generate image thumbnails in the space, such as UpYun, Aliyun OSS support. ...

Posted by skatermike21988 on Wed, 12 Dec 2018 22:36:07 -0800

LNMP architecture (Nginx anti-theft chain, Nginx access control, Nginx parsing php-related configuration, Nginx proxy)

Nginx Anti-theft Chain 1. Edit the virtual host file / usr/local/nginx/conf/vhost/test.com.conf and add the following code location ~* ^.+\.(gif|jpg|png|swf|flv|rar|zip|doc|pdf|gz|bz2|jpeg|bmp|xls)$ { expires 7d; valid_referers none blocked server_names *.test.com ; #Here the server_names configuration can be omitted if ($invalid_r ...

Posted by Drebin on Tue, 11 Dec 2018 05:21:07 -0800