Hill sorting of JAVA sorting algorithm

Shell Sort Preface In this chapter, Hilde's principle and characteristics are not described too much, and the main purpose is to carry out the sorting code of Hilde Detailed explanation: most of Baidu's codes are not explained in detail. Here, many comments are added to help readers understand the code, so as to ...

Posted by ChrisBoden on Tue, 05 May 2020 15:15:09 -0700

Safer rm commands to protect important data

Almost all the secure RMS streaming on the Internet provide a rm "garbage" recycle bin, which is a bad recipe for server environment. I think it might be better to provide a secure rm to protect some important files or directories from deletion and avoid the tragedy of deleting important data by mistake. I wrote a script: https://gith ...

Posted by blade_922 on Tue, 05 May 2020 14:44:33 -0700

Python script implementation source installation python2/3

1. Why python is selected for scripting: python has a large number of third-party libraries, which is very convenient to call python language is simple and clear Think about it: the comparison shows why large-scale enterprises prefer python to shell The syntax of shell implementation is too cumbersome and the amount of code is large ...

Posted by exa_bit on Mon, 04 May 2020 19:29:47 -0700

ubuntu uses apt get to make OfflinePackage

ubuntu uses apt get to make offline package (take mysql as an example) Recently, I am studying the deployment of engineering software. Although this is the work of operation and maintenance, it is quite interesting. Question: what factors need to be considered in software environment configuration There are two ways ...

Posted by CG_dude on Sun, 03 May 2020 20:41:23 -0700

tomcat8 configures boot under CentOS 7.5

This article references This article 1, Create a new file tomcat under / etc/init.d, and add the following content: #!/bin/sh # chkconfig: 345 99 10 # description: Auto-starts tomcat # /etc/init.d/tomcatd # Tomcat auto-start # Source function library. #. /etc/init.d/functions # source networking configuration. #. /etc ...

Posted by PLaT on Sun, 03 May 2020 09:54:31 -0700

< EOF in linux

1,EOF  In Shell, EOF is usually used in combination with < to indicate that the subsequent input is used as the input of subcommand or subshell, until EOF is encountered, and then returned to the calling Shell. EOF can be replaced by something else, meaning that content is passed to the program as standard input. Review the use of <. W ...

Posted by brij_theinvader on Sun, 03 May 2020 04:57:15 -0700

shell display user name and host name under Linux

Author: Tyan Blog: noahsnail.com  |  CSDN  |  Brief book 1. Problem description Recently, a little thing was reinstalled on the server. As a result, the login shell interface turned into - bash-4.2 $, which was ugly and inconvenient to use. The main reason is that scp needs user name and host name, so it was modified. 2. Solutions Mod ...

Posted by DigitalNinja on Thu, 30 Apr 2020 21:30:28 -0700

Shell script VI: Conditional testing and comparison of shell scripts

6. Conditional testing and comparison of shell scripts (1) Common syntax for conditional expressions 1. Six ways to write conditional expressions (if, while) Syntax 1:test<test expression> Syntax 2: [<Test Expression>] #Both ends of brackets must have spaces Syntax 3: [[[<Test Expression>] #Spaces are required at both ends Syn ...

Posted by garek007 on Tue, 28 Apr 2020 10:36:25 -0700

powershell modifies the path of user profile, and outlook defaults to the path of OST file

In the actual operation and maintenance, the user configuration and outlook default OST file path are on Disk C, which often leads to insufficient space on Disk C, system crash or other problems that result in the inability to access the desktop, documents, favorites and other data under disk C. It's OK to manually cut configuration and config ...

Posted by wesley1189 on Sun, 26 Apr 2020 08:30:05 -0700

powershell modifies the path of user profile, and outlook defaults to the path of OST file

In the actual operation and maintenance, the user configuration and outlook default OST file path are on Disk C, which often leads to insufficient space on Disk C, system crash or other problems that result in the inability to access the desktop, documents, favorites and other data under disk C. It's OK to manually cut configuration and config ...

Posted by scm24 on Sun, 26 Apr 2020 08:13:44 -0700