[intern] [April 16, 2019] automatic decompression script written by Python

A long time ago (27 days I was asked to write a script to retrieve and extract all tar files named in a specific format on the disk, so I started learning and fishing together. The script to be written this time aims at the following file structure: The file structure is shown in the figure above You can see that there are two tgz compress ...

Posted by montyauto on Wed, 27 Nov 2019 13:15:34 -0800

Mount U disk on Linux server

1. Check the location of the U disk sudo fdisk -l According to the size of the U disk, the approximate path can be roughly determined My output here is Disk /dev/ram14: 64 MiB, 67108864 bytes, 131072 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optima ...

Posted by execute on Tue, 26 Nov 2019 13:43:40 -0800

Electronic -- dialog (to export excel)

background After the front end clicks the export excel button, it requests the data to be exported and sends it to the main process, electron, which saves it locally dialog Displays native system dialog boxes for opening and saving files, alarms, and so on. The dialog module provides an api to show the native system dialog box, such as open f ...

Posted by new_to_php2004 on Tue, 26 Nov 2019 11:03:24 -0800

Write a short link service in golang

original text) In our daily work and life, there are always various domain name links that need to be shared with colleagues, friends or family. However, there are always some problems due to the length of domain name is too long and there are various restrictions, or it is impossible to copy all of them. In order to solve this problem, we need ...

Posted by jeffery on Mon, 25 Nov 2019 21:06:47 -0800

nginx shared memory mechanism explained in detail

Shared memory for nginx is one of the main reasons it can achieve high performance, mainly for file caching.This article first explains how shared memory is used, then how nginx manages shared memory. 1. Use examples nginx declares that the instructions for shared memory are: proxy_cache_path /Users/Mike/nginx-cache levels=1:2 keys_zone=one:10m ...

Posted by yaron on Mon, 25 Nov 2019 15:54:04 -0800

MySQL - Indexed View Transactions, Storage Engines MyLSAM and InnoDB (Actual!)

The role of indexes With the appropriate index set, the database can greatly speed up the query speed by utilizing various fast positioning techniques. Especially when the table is large or the query involves multiple tables, using an index can speed up the query thousands of times; The IO cost of the database can be reduced, and the index can ...

Posted by Shai-Hulud on Mon, 25 Nov 2019 14:14:21 -0800

Use nexus to build yum warehouse

Summary nexus is a warehouse manager. In addition to the most commonly used function of creating maven warehouse, it can also build docker warehouse, yum source warehouse, npm pip ruby warehouse and so on. Today, we use this to create a Yum source warehouse Install nexus First, install nexus. I use the docker mode. First, the project under clo ...

Posted by btoles on Mon, 25 Nov 2019 14:02:03 -0800

linux environment installs python3 environment (including setuptools,pip)

date 20191125 MondayInstall Python 3.7.3 environment on linux 6.5Because our mac environment is:(base) majihuideMacBook-Pro:~ majihui$ python -VPython 3.7.3 Next, install Python 3.7.3 on my local test environment[root@templatec6 ~]# cat /etc/redhat-release CentOS release 6.5 (Final)linux centos6.5 and centos7 are available on linux, the compi ...

Posted by derekm on Mon, 25 Nov 2019 11:34:01 -0800

Nginx chapter reverse agent

About the configuration file and explanation of the reverse seven layer agent Nginx official website: https://www.nginx.com/ Centos yum install nginx yum install nginx -y so, let's ask you a question, what? Why do we use Nginx to implement the seven layer agent? What is the seven layer agent? 1. Difference between nginx proxy and not Tradition ...

Posted by br549 on Mon, 25 Nov 2019 01:25:49 -0800

Linux remote access and control

Prefacelinux operation and maintenance management is generally managed by remote mode. When hundreds of server hosts need to be managed from a workstation, the remote maintenance mode will be more advantageous.I. SSH Remote ManagementSSH is a secure channel protocol, which is mainly used to realize the remote management, remote replication and ...

Posted by nou on Sun, 24 Nov 2019 10:53:25 -0800