shell Summary Notes - About Variables

BASH: Main advantages: Command editing ability; Command and File Completion Function; Command alias setting function; Work control, foreground and background control; Programming script; Multipurpose character; 1. What are variables? 1. Let a particular string represent an unstable content.2. A variable is a set of words or symbols to repl ...

Posted on Thu, 22 Aug 2019 00:21:49 -0700 by travelbuff

Front End Engineering-Automatic Image Compression

The team started a new project, hoping to build on the engineering of the original project, and then came up with the idea of automatic image compression. The automatic image compression here is not in the web pack construction phase, but in git commit. pre-commit pre-commit is one of the many hooks of git hook. It can be executed before every ...

Posted on Sun, 18 Aug 2019 06:13:36 -0700 by stvs

VSCode uses gcc/g++ of MinGW-w64 to write debugger under windows

VSCode uses gcc/g++ of MinGW-w64 to write debugger under windows If you want to reproduce it, please indicate the source: http://blog.csdn.net/itas109 QQ Technical Exchange Group: 129518033 Article Directory VSCode uses gcc/g++ of MinGW-w64 to ...

Posted on Sat, 17 Aug 2019 17:42:17 -0700 by chuspy

Summary of Classical Sorting

Bubble sorting (stable) Compare the two adjacent elements in turn, and change the big ones to the back. The result of a cycle is that the largest number is at the end. Repeat the above steps (except the last one) until you have finished. Average time complexity: O (n^2) Optimal time complexity: O(n) v ...

Posted on Mon, 05 Aug 2019 22:45:29 -0700 by ec

Linux Experiment 1 Common Commands and Shell Programming for Linux

Experiment 1 Linux Common Commands and Shell Programming I. Experimental Contents 1. Exercise a) When running the program on the command line, the Linux system searches a series of directories in the $PATH variable to find the corresponding files, writes a script to output all executable files in th ...

Posted on Sun, 04 Aug 2019 00:54:53 -0700 by importune

Unix Shell exemplar refinement - grep and sed exercises

The title comes from the Unix Shell exemplar to refine Chapters IV and V of the book, using the datebook file, which reads as follows: Steve Blenheim:238-923-7366:95 Latham Lane, Easton, PA 83755:11/12/56:20300 Betty Boop:245-836-8357:635 Cutesy Lane, Hollywood, CA 91464:6/23/23:14500 Igor Chevsky:385-375-8395:3567 Populus Place, Caldwell, NJ ...

Posted on Tue, 30 Jul 2019 20:54:05 -0700 by LiquidCD

MongoDB Learning Notes - Introduction to MongoDB, Data Types and Help Commands

MongoDB Learning Notes (1) - Introduction to MongoDB and Data Types The version of MongoDB used in this article is 4.0.10 > db.version(); 4.0.10 Introduction to MongoDB 1. Characteristics of MongoDB MongoDB is a scalable and high-performance NoSQL database written in C++ language. It aims to provide a high-performance scalable data storage s ...

Posted on Tue, 30 Jul 2019 04:08:30 -0700 by daggardan

MySQL-source deployment

Source deployment 1. Some software needs to be uninstalled first mariadb-libs package needs to be uninstalled first in centos7 shell> rpm -e --nodeps mariadb-libs 2. Installing dependency packages yum -y install gcc gcc-c++ ncurses ncurses-devel cmake bison bison-devel The role of dependent pac ...

Posted on Tue, 23 Jul 2019 18:42:27 -0700 by lightkeepr

python's Network Programming Package

I. Sticking Pack Sticking phenomenon # Server import socket import subprocess phone = socket.socket() phone.bind(('127.0.0.1',8888)) phone.listen(5) while 1: conn,addr = phone.accept() while 1: cmd = conn.recv(1024) ret = subprocess.Popen(cmd.decode('utf-8'), shell=True, ...

Posted on Sat, 20 Jul 2019 00:42:58 -0700 by nashsaint

Case 3. Adding multiple users in batches

The need to create users in batches is not very useful in production environments, but it is often seen in interviews. Requirement: 1) Batch increase of 100 users 2) User name user_01-user_100 3) Set a random password for all users. The password is 12 bits long and needs to contain upper and lower case letters and numbers. 4) and save the user ...

Posted on Fri, 19 Jul 2019 06:11:12 -0700 by hamza