An example of using JQ as index monitoring

Turn from ( https://www.joinquant.com/view/community/detail/8a21c68016d0d1601ccf2b9d376c0131) Receive the needs of a friend, do a simple indicator monitoring, that is, when the average and K-line of multiple cycles meet a certain situation, send a signal. In fact, a lot of chart operation softwa ...

Posted by kikki on Fri, 01 Nov 2019 21:40:13 -0700

UA pool and IP proxy pool use

UA pool: user agent pool -Function: disguise the requests in the project as different types of browser identity as much as possible. -Operation process: 1. Intercept requests in download Middleware 2. Disguise the UA in the intercepted request header information 3. Enable download Middleware in configuration file Code display #Guide b ...

Posted by zymosan on Thu, 31 Oct 2019 17:45:30 -0700

Verification and data processing

Verification and data processing 1. URL verification // 1. verify url function isURL(str_url) { var strRegex = "^((https|http|ftp|rtsp|mms)?://)" + "?(([0-9a-z_!~*'().&=+$%-]+: )?[0-9a-z_!~*'().&=+$%-]+@)?" // user@ of ftp + "(([0-9]{1,3}\.){3}[0-9]{1,3}" // URL in IP form ...

Posted by backie on Thu, 31 Oct 2019 08:55:24 -0700

Deliberate practice: Python foundation -- Task07. File and file system

background We're going to use 17 days to "Deliberate practice of Python foundation" It is divided into the following tasks: Task01: variables, operators and data types (1day) Task02: condition and cycle (1day) Task03: list and tuple (2day) Task04: string and sequence (1day) Task05: function ...

Posted by AMCH on Sat, 26 Oct 2019 20:16:23 -0700

Linux configure network grouping

Realization way Bonding Network Teaming Environmental Science OS selinux firewalld Network card CentOS7 Close Close eth0,eth1 Bonding https://www.kernel.org/doc/Documentation/networking/bonding.txt brief introduction The Linux binding driver provides a way to aggregate multiple network interfaces into a single logical "bindi ...

Posted by DaCheata on Sat, 26 Oct 2019 03:10:48 -0700

Several common encryption algorithms

Article directory I. encoding format (this is not encryption in principle, but it is quite common) 2. Message digest algorithm 3. Symmetric encryption IV. asymmetric encryption Online encryption test tool Refer to related articles All the following codes are based on jdk8 All Apache based implemen ...

Posted by robviperx on Sat, 26 Oct 2019 02:56:32 -0700

Describe the advanced configuration of firewall in Linux

IP camouflage and port forwarding Firewall supports two types of network address translation IP address masquerade It can share multiple addresses in LAN and access to the Internet with a single public address IP address camouflage only supports IPv4, not IPv6 Address masquerading is enabled in the default external area Forward port Also ...

Posted by mvidberg on Wed, 23 Oct 2019 12:46:54 -0700

STP spanning tree experiment

Experimental topology Experimental requirement All devices are running STP Change blocking port Experimental steps 1. All devices run STP, and observe the state after convergence [SW1]stp mode stp [SW2]stp mode stp [SW3]stp mode stp 2. Check STP status in SW1 and find that SW1 becomes root bridge Analysis: the principle of spanning tree con ...

Posted by krox on Tue, 22 Oct 2019 12:45:18 -0700

Server out of band management

In daily operation and maintenance, we may receive the equipment handed over by others, but for many reasons, the previous people did not record the relevant server serial number, unset out of band address and user password of out of band management, etc., and the server cannot be shut down for maintenance. Is there any way to obtain relevant ...

Posted by sunnyvatsal on Tue, 22 Oct 2019 00:27:24 -0700

WebStorm permanent solution

WebStorm permanent solution Recently, jetbrains company has been updating its software very fast, and many private built server services have also failed. Now a method that can be cracked permanently is very simple, which only needs 2 steps to complete. Step 1: copy the activation code below and pas ...

Posted by VooDooRT on Fri, 18 Oct 2019 14:24:29 -0700