The writing of makefile in Linux

A little bit of eye A series of rules will be defined in the makefile to specify which files are compiled first, which files are compiled later, which files need to be recompiled, or even more complex functional operations. The advantage of makefile is "automatic compilation". Once written, only one make command is ...

Posted by MrPotatoes on Wed, 13 Nov 2019 08:19:22 -0800

Thread processing two or three things

[mandatory] thread pools are not allowed to be created by Executors, but by ThreadPoolExecutor. Such a processing method enables the students who write to be more clear about the running rules of thread pools and avoid the risk of resource exhaustion. The above is the mandatory provision on concurrency in the java Development Manual of Alibaba. ...

Posted by noobcody on Wed, 13 Nov 2019 00:12:45 -0800

Regular expressions in Shell scripts

Bowen catalogDefinition of Regular Expression2. Extended Regular Expression Metacharacters3. Text Processor Definition of Regular Expression Regular expressions are also called regular expressions and regular expressions.It is often abbreviated as regex, regexp, or RE in code.Regular expressions are descriptions that use a single string to m ...

Posted by codebuilder on Mon, 11 Nov 2019 11:58:45 -0800

Nine ways to copy files in Python

Python has many ready to eat modules (such as os, subprocess, and shutil) to support file I/O operations. In this article, you'll see some special ways to copy files in Python. Let's start to learn these nine different ways to implement Python copy file operation. Before you start, you have to understand why it's so important to understand the ...

Posted by john0117 on Mon, 11 Nov 2019 04:47:47 -0800

The second week of linux foundation

linux distribution system directory naming rules Use root file system structure and FHS hierarchy. linux system is strictly case sensitive, and the system directory inherits this feature. "/: root directory, the highest level directory of all directories / bin: the basic command storage directory available to all users / sbin: only the ...

Posted by djremiasz on Sat, 09 Nov 2019 03:50:21 -0800

Section 1: getting started with Shell Basics

1, format Opening format: ×! / bin/bash Ending format: × $? 2, parameters $ා is the number of parameters passed to the script $0 is the name of the script itself $1 is the first parameter passed to the shell script $2 is the second parameter passed to the shell script $@ is a list of all parameters passe ...

Posted by mapunk on Fri, 08 Nov 2019 08:58:44 -0800

[Linux] - implement a command line interpreter under Linux

Mini shell When we first got to know Linux, because this is an operating system without a mouse, we executed ls, pwd, cd and other commands in the black box, which we talked about in the last lesson After process control We found that we can also make a simple command line interpreter. Next, paste the source code dir ...

Posted by Sobbs on Fri, 08 Nov 2019 08:11:00 -0800

telegraf uses the plug-in inputs.exec to collect monitoring data

Although telegraf (v1.5.2) is easy to use, it can't help you to collect all the data you need by default, such as io data. By default, it only collects the relevant data such as io time, IOPs in process, weighted io time, read, write, etc. it can't collect the iops, await, svctm, util and other data of each disk. Recently, there is such a deman ...

Posted by Byron on Mon, 04 Nov 2019 09:09:13 -0800

git merge --squash / git rebase -i / git cherry-pick

git merge --squash git merge --squash {srcBranch} Often used infeatBranch merge todevThe complex commit logs are compressed to make the merge clear. take srcBranchAhead of the current branch commits Merge to the current branch, and the current branch does notcommit,Allow us to do it manually once the conflict is successfully merged or resolved ...

Posted by viko20 on Sun, 03 Nov 2019 08:45:47 -0800

Data visualization: matplotlib

1. Introduction to Matplotlib Matplotlib is a Python 2D drawing library that can generate publication quality data in various hard copy formats and cross platform interactive environments. Matplotlib can be used for Python scripts, Python and IPython shell s, Jupyter notebooks, Web application servers, and four GUI toolkits. 2. matplotlib inst ...

Posted by Fataqui on Sat, 02 Nov 2019 07:32:39 -0700