Bash trick: Shell script that can move and rotate Tetris left and right

In Linux bash, the previous article introduced a shell script that uses the k, j, h, l keys to move a single block up, down, left, and right. The following continues to describe how to rotate a single block. Execution effect The specific implementation effect is as follows: Screenshot before rotation Screenshot after moving and rotating When ...

Posted by hammadtariq on Mon, 16 May 2022 21:58:38 +0300

Linux rights management learning summary

Linux ACL permissions} learning summary 1, Preface: In the traditional impression, Linux system pays more attention to permission management than windows system, because permission allocation is an essential part in the actual role allocation. The more detailed the authority allocation is, the higher the security is. Therefore, for operation ...

Posted by Zwiter on Sun, 01 May 2022 10:10:34 +0300

zookeeper environment configuration

1 local mode configuration Unzip the installation package tar -zxvf zookeeper-3.4.10.tar.gz -C /opt/module/ Configuration modification a. Set the zoo in the conf directory_ sample. CFG is modified to zoo cfg mv zoo_sample.cfg zoo.cfg b. Modify dataDir path dataDir=/opt/software/zookeeper-3.4.10/zkData c. Create zkData folder make zk ...

Posted by lssjg on Sat, 16 Apr 2022 03:01:16 +0300

Detailed explanation and deployment of Redis master-slave replication and sentinel mode under Centos

Detailed explanation and deployment of Redis master-slave replication and sentinel mode under Centos This article will introduce the Redis master-slave replication and sentinel mode, and then set up the master-slave replication and sentinel modes with the help of different ports of a single host The actual production environment requires ...

Posted by Awestruck on Tue, 12 Apr 2022 08:47:16 +0300

Establishment of canal under docker (with canal admin)

MySQL configuration For self built MySQL, you need to turn on the Binlog write function first, and configure Binlog format to ROW mode, my CNF is configured as follows [mysqld] log-bin=mysql-bin # Enable binlog binlog-format=ROW # Select ROW mode server_id=1 # MySQL replacement configuration needs to be defined. It should not be repeated w ...

Posted by chacha102 on Tue, 05 Apr 2022 23:57:43 +0300

Kilo tutorial

After writing so many nanny tutorials related to WireGuard, Kubernetes is finally involved today. Otherwise, how can you live up to the word "cloud native". If you are still a novice of WireGuard, be sure to read each article in the following order: WireGuard tutorial: how WireGuard works WireGuard quick installation tutorial ...

Posted by mikerh9 on Tue, 05 Apr 2022 13:49:06 +0300

PostgreSQL database container recovery and simple backup implementation

2021.03.10 original release address: Implementation of database container recovery and simple backup Antecedents For internal use by colleagues in the group outline The document service added the mathjax function. Because it was not familiar with the use of docker, it boldly implemented docker compose down in the production environment, res ...

Posted by andrew6607 on Sat, 02 Apr 2022 23:59:40 +0300

Bash script deletes hidden files generated by Mac

Go from Mac to Ubuntu 20 04. All folders bear the brand of MAC dignity, that is DS_Store file, GUI + mouse click (+ keyboard tapping) are obviously not suitable for Linux users. Bash, as an excellent scripting language, should really be used to do repetitive work. (in fact, it only needs the find + rm command to realize this function, so the on ...

Posted by salasilm on Sat, 02 Apr 2022 22:28:37 +0300