Linux - Ubuntu automatically blacklists IP addresses that fail to log in multiple times through SSH through shell script

1: Introduction to login related documents Introduction to the three file logs of ubuntu: 1: / var/run/utmp: records the information of the currently logged in user. By default, who and w record the information of the currently logged in user, and uptime records the system startup time; 2: / var/log/wtmp: records the user information current ...

Posted on Tue, 23 Nov 2021 07:29:06 -0500 by jtravis

Object oriented II (method, encapsulation, this, recursion, javaBean concept, static concept, singleton pattern)

Methods and packaging Basic concepts of construction method When the constructor name is exactly the same as the class name, there is no return value type, and void cannot be used. class Class name{ class Person{ Class name(parameter list ){ Person(){ // The Person method is the constructor of the Person class Constructio ...

Posted on Tue, 23 Nov 2021 04:12:02 -0500 by brodwilkinson

[source code reading] - Sylar server framework: configuration module

Configuration module overview    in the design of sylar's configuration module, the idea that convention is better than configuration is adopted, and its conventional use method is as follows: sylar::ConfigVar<int>::ptr g_int_value_config = sylar::Config::Lookup("system.port", (int)8080, "system port"); // 8090 of type ...

Posted on Tue, 23 Nov 2021 03:00:48 -0500 by davidjmorin

SVN server building and hook application under Centos7

introduce SVN is the abbreviation of subversion. It is an open source version control system. It is characterized by centralized management, that is, one trunk branch and multiple local branches. Only one user can commit at a time, which is suitable for small and medium-sized projects and is convenient and fast. 1, SVN server setup 1. Instal ...

Posted on Mon, 22 Nov 2021 19:01:53 -0500 by antileon

Text processing in Shell programming

You have to work very hard to look effortless! WeChat search official account [Coding road], together with From Zero To Hero! preface In daily work and study, we often have to deal with text files (such as log files), including but not limited to operations such as segmentation, search, replacement and deletion. Are there corresponding co ...

Posted on Mon, 22 Nov 2021 10:44:12 -0500 by maxpouliot

Raspberry pie 4B Linux system command line

2021SC@SDUSC File compression Have you ever had the trouble that files are too large to be copied by U SB flash disk, and have you ever had to back up some important data, which is too large and consumes a lot of disk space? At this time, the "file compression" technology can come in handy. Since the number we record is 1, consider ...

Posted on Mon, 22 Nov 2021 10:13:18 -0500 by opels

Memory and IO access

Outline LINUX memory managementMemory accessI/O memory providerMapping device addresses to user spaceStatic mapping of I/O memoryDMA 1 LINUX memory management User space 0~3GB kernel space3~4GB user space of each process is completely independent and irrelevant, and user processes have different page tables.The kernel space is mapped by the ...

Posted on Mon, 22 Nov 2021 08:28:20 -0500 by XxDeadmanxX

Linux Svn automatic update

Linux Svn automatic update 1. Installation yum install subersion 2. Configuration 2.1 create warehouse We can store all the warehouses in / www/server/svn/tests. Later, we can put all the warehouses in / www/server/svn [root ~]# cd /www/server/svn [root svn]# svnadmin create /www/server/svn/tests [root svn]# ls chats tests [root svn]# c ...

Posted on Mon, 22 Nov 2021 05:12:48 -0500 by marq

Understand Tomcat service and build

1, Tomcat overview Since November 2017, Java accounted for 13% of the programming language ranking, ranking first in the list, Tomcat has also become the first choice for Java developers. Its open source, less system resources, cross platform and other characteristics are deeply loved. This chapter mainly studies how to deploy Tomcat servi ...

Posted on Mon, 22 Nov 2021 04:37:44 -0500 by moboter

Pytorch uses nn.ModuleList() and nn.Sequential() to write the neural network model

This blog describes how to use nn.ModuleList() and nn.Sequential() to simplify the way models are created. The traditional methods, nn.ModuleList() and nn.Sequential() are used to create a model to fit the sin function, train the model to save the results, and experience the convenience of the two functions. 1, Using traditional methods Creat ...

Posted on Sun, 21 Nov 2021 22:57:07 -0500 by shdt