Python serializable 42 asynchronous co function

I. asyncio 1. Python 3.4 has been introduced into the standard library, with built-in support for asynchronous io 2.asyncio itself is a message loop The 3. step: (1) create message loop (2) import the cooperation process (3) close 4., for example: import threading #Introducing asynchronous io package import asyncio #Usin ...

Posted on Tue, 15 Oct 2019 13:42:10 -0700 by gangsterwanster1

Send QQ Email Notification after ping communicates with Google

Preface During the National Day, it is said that in order to prevent people from making improper comments on major festivals, many of the IPS that can be kxsw are blocked, but when will the blockade be unlocked? You can't go ping without doing anything, so I wrote a regular task, timing ping Google server, if ping is general, send an email noti ...

Posted on Wed, 09 Oct 2019 22:04:41 -0700 by Spitfire

Java Web Sending Mail

We can use a third-party mailbox server to send mail.   There are two commonly used mail transfer protocols: POP3/SMTP and IMAP/SMTP. The difference between POP and IMAP: Operations on the mailbox client, such as mobile mail, tags read, will not be synchronized to the mailbox server if POP is used; if IMAP is used, these operations will be s ...

Posted on Mon, 07 Oct 2019 20:00:43 -0700 by mortimerdude

# How to deploy nginx and tomcat simultaneously on the same server

A recent problem java deployment usually uses tomcat But python deployment requires nginx + uwsgi But there is only one server. How to turn on nginx and tomcat at the same time on the server? First, look at the network ports. The same server can open different services through different ports I configur ...

Posted on Fri, 04 Oct 2019 10:33:21 -0700 by witty

curl ignores ssl certificates for https requests

When debugging a device to connect to a business platform, errors are detected: * SSLv3, TLS handshake, Client hello (1): * SSLv3, TLS handshake, Server hello (2): * SSLv3, TLS handshake, CERT (11): * SSLv3, TLS alert, Server hello (2): * SSL certificate problem: certificate has expired curl: (60) SSL c ...

Posted on Wed, 02 Oct 2019 17:29:56 -0700 by parka

Nginx configuration record

Nginx configuration record Anti-theft chain location ~* \.(gif|jpg|png)$ { # Only 192.168.0.1 requests for resources are allowed valid_referers none blocked 192.168.0.1; if ($invalid_referer) { rewrite ^/ http://$host/logo.png; } } Set expiration time based on file type location ~.*\.css$ { expires 1d; break; } lo ...

Posted on Wed, 02 Oct 2019 06:10:47 -0700 by therealairness

In just three steps, upgrade koa's node service to https

We start writing a bunch of unnecessary content that is a hooligan, so we start talking about upgrading steps. Installation of necessary packages yarn add https fs koa-sslify perhaps npm i -S https fs koa-sslify https is used to start https services fs is used to obtain read certificate files koa-sslify is used to force http requests into htt ...

Posted on Tue, 01 Oct 2019 23:46:45 -0700 by xphoenixx

gitlab Change Start Port

svn has been installed on the disaster preparedness test server, and apache has occupied 80 ports. To deploy gitlab here, the port can only be changed. Modify nginx configuration file on gitlab: port changed from 80 to 801 [root@bogon ~]# head -47 /var/opt/gitlab/nginx/conf/gitlab-http.conf # This file is managed by gitlab-ctl. Manual changes  ...

Posted on Tue, 01 Oct 2019 08:26:26 -0700 by khushbush

SpringCloud Microservice Notes-Nginx Implement Gateway Reverse Proxy

background Under the SpringCloud micro-service architecture, gateways are particularly important as gateways to services. In order to ensure high availability of gateways, the reverse proxy function of Nginx can be used to achieve high availability of gateways in the event of a single point of failure of the gateway which will paralyze the enti ...

Posted on Mon, 23 Sep 2019 19:13:11 -0700 by clearstatcache

Java Socket Reads Data Posture Correctly

Preface Usually, Http communication is the most commonly used in daily development, interface debugging is relatively simple, and there is also a relatively strong framework support (OkHttp). The place where people usually use socket communication ...

Posted on Thu, 12 Sep 2019 03:03:36 -0700 by denzlite