JavaScript Regular Expressions and Their Use

JavaScript Regular Expressions and Their Use 1. Creation and Detection of Regular Expressions (1) Regular expressions are objects that describe character patterns; Example: Two ways to create regular expressions: var re = /136[0-9]{8}/; var re = new RegExp(/136[0-9]{8}/); (2) Writing rules: conten ...

Posted on Mon, 22 Jun 2020 21:48:13 -0400 by Kevin3374

[Linux command] Chapter 12: Learn shell script

Chapter 12 learning shell script Usually, shell script is used to complete the detection of the server, which does not involve a lot of computation. 12.1 introduction to simple shell script 12.2 simple shell script exercise 12.2.1 simple example Example 1: the beginning forever Helloworld cat ...

Posted on Fri, 12 Jun 2020 01:19:28 -0400 by stephfox

Host transfers files to KVM virtual machine via FTP

Machine environment: Host: ubuntu16.04 KVM version: QEMU emulator version 2.5.0 (Debian 1:2.5+dfsg-5ubuntu10.16) Virtual Machine: Ubuntu-Server 16.04.3 LTS Install FTP, File Transfer in ubuntu Server The network is connected.Install openssh server $sudo apt-get install openssh-server $sudo apt-get install openssh-sftp-server Install ...

Posted on Sun, 07 Jun 2020 12:48:28 -0400 by Profector

You can use Postman or cURL. Come in and see the unique tricks of cURL

Articles have been included in Github.com/niumoo/JavaNotes Welcome to Star and Instructions. Welcome to my attention Public Number , articles are updated weekly. cURL It is an open source free project, mainly command line tools cURL and libcurl, which can handle any network transport protocol but does not involve any specific data processing ...

Posted on Wed, 03 Jun 2020 22:28:42 -0400 by Tbull

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