Deployment learning of Nginx + Docker multi-stage construction

A website was deployed a few days ago. It turns out that I have been uploading files through ftp after publishing. Several tycoons told me about multi-stage construction. At this time, I don't need to publish any more. I will directly add docker support to the project. #See https://aka.ms/containerfastmode to understand how Visual Studio uses ...

Posted on Mon, 25 May 2020 11:01:36 -0400 by kotun

php form form validation + submit to database

Verification details of php forms First of all, we process all the data submitted by the user through the htmlspecialchars() function of PHP. Converts special characters to HTML entities. This means that HTML characters such as < and > are replaced with & lt; and & gt. This prevents attackers from injecting HTML or JavaScript Code ...

Posted on Sun, 24 May 2020 22:02:21 -0400 by sgiandhu

When you buy a new ubuntu server

Install various server software nginx sudo apt-get install nginx Once the installation is complete, use the ip address directly to access the server and you will see the default welcome page for nginx. If installation errors, such as port 80 occupancy, indicate that other network servers have been installed before, it is recommended that you ...

Posted on Mon, 11 May 2020 20:53:43 -0400 by WeAnswer.IT

An example of multi-user FTP program based on gevent cooperation and select IO multiplexing

Original multithreaded FTP program: http://www.cnblogs.com/linzetong/p/8290378.html It only needs to be slightly modified based on the original code: 1, gevent collaboration version 1. Import gevent module import gevent from gevent import monkey 2. python's asynchronous library gevent is patched with monkey patch. Its purpose is to let you easi ...

Posted on Fri, 01 May 2020 11:08:17 -0400 by jbloom

Command line program development of golang

Today, I need to write a simple command-line gadget in Golang. Although the standard library's flag package can also be implemented, it's a bit cumbersome to implement, and it's not supported for multi-level subcommands. So I found these spf13, cobra and urfave/cli on the Internet. I don't need to be too complex anyway. I think cli looks relati ...

Posted on Tue, 28 Apr 2020 10:32:40 -0400 by shayman

Linux Kernel Firewall Selinux

Status view and modification of selinux getenforce ###View Status setenforce 0|1 ###0:permissive warning mode 1:enforcing forced mode vim /etc/sysconfig/selinux SELINUX= enforcing ###Force mode ...

Posted on Tue, 21 Apr 2020 13:06:04 -0400 by casey_00

freecplus framework ftp client

1, Source code description Freecplus is a C/C + + open source framework under Linux system. Please go to the C language technology network (www.freecplus.net) to download the source code. This article introduces the ftp client Cftp class of freecplus framework. The declaration file of the Cftp class is freecplus / ﹐ FTP. H. The definition fil ...

Posted on Mon, 20 Apr 2020 10:42:09 -0400 by vinaip

[2020Python cultivation] object oriented programming reflection

[directory] 1. What is reflex 2. Why use reflection 3. How to realize reflection 1. What is reflex python is a dynamic language, and reflection mechanism is regarded as the key of dynamic language. Reflection mechanism refers to the operation state of the program For any class, you can know all the properties and methods of this c ...

Posted on Wed, 15 Apr 2020 10:21:19 -0400 by Salkcin

python learning file operation

(1) File reading and writing • Python has built-in functions for reading and writing files, and the usage is compatible with C. The operating system does not allow ordinary programs to operate the disk directly, so reading and writing files is a request operation Open a file object (also known as a file descript ...

Posted on Fri, 03 Apr 2020 15:06:42 -0400 by rajmohan

libcurl get FTP directory information

libcurl get FTP directory information If you need to reprint, please indicate the source: http://blog.csdn.net/itas109 QQ technology exchange group: 12951803 FileZilla version: FileZilla server-0 9 60 2 libcurl version: curl-7.56.0 Demand: You can obtain the file information under the specified directory of FTP, such as file name, fil ...

Posted on Thu, 02 Apr 2020 01:46:14 -0400 by harkonenn