Shell Script: find all files in a directory after a certain time
Problem description
Often swim in the ocean of Linux files, often need to find all the files after a certain time. Maybe you're packing them, or maybe you're just checking.
The question is, what do you do if you want to write a script find-newer and put it on the server?
target
With a command like this, you can fi ...
Posted by bizshop on Thu, 30 Apr 2020 09:40:04 +0200
Python adb test of repeated network disconnection in selfie 62
Case story: during Android App or system testing, it involves abnormal test of network disconnection (in case of no network, whether the App or system prompts normal operation),
Networking test (in case of network recovery, whether the App or system prompts to be normal and operates normally). At present, the equipment basically has two kinds ...
Posted by ViperSBT on Sat, 25 Apr 2020 15:42:12 +0200
Oracle database booting
If the server is powered off and restarted or restarted within the plan, the database instance and monitoring need to be started manually after the server's operating system is started. This paper introduces how to configure the start and shutdown of Oracle database as a system service, and automatically start / shut down the Oracle instance a ...
Posted by Khrysller on Sat, 25 Apr 2020 07:22:50 +0200
os module of python (ipython, file, directory, permission, management)
What is an os module
The os module provides the function interface functions of most operating systems. When the os module is imported, it will adapt to different operating system platforms and perform corresponding operations according to different platforms. When programming in python, it often deals with files and directories. At this time, ...
Posted by vixtay on Fri, 24 Apr 2020 06:19:52 +0200
Install MongoDB replica set under Centos
Simulate the installation of a replica set of MongoDB under a Centos
Prepare three profiles:
mongod.conf
bind_ip=0.0.0.0
port = 27017
dbpath = /usr/local/mongo/data/
logpath = /usr/local/mongo/log/mongod.log
fork=true
logappend=true
replSet=myMongoSet
mongod2.conf
bind_ip=0.0.0.0
port = 27018
dbpath = /usr/local/mongo/data2/
logpath = /usr/loc ...
Posted by rusty1001 on Mon, 20 Apr 2020 19:11:48 +0200
[learning notes] Python scientific computing 3D visualization (Huang Tianyu, song Tian) (in learning.)
0 guidance
Objective: to master the ability of using 3D effect to express scientific and engineering data
Spread an idea: visualization technology is the eye of data
Content organization:
Scalar visualization and vector visualization of fluid data
Visualization example of 3D scanning data (model / terrain)
3D Earth scene visualization example
...
Posted by mynameisbob on Thu, 09 Apr 2020 12:11:19 +0200
Automatic switch of python wifi
demand
At present, the network of a company's live broadcast is unstable, resulting in the live broadcast exception. The original solution is to manually find the exception, and then manually switch the network (4G hotspot), but it has a great impact on the business.
The first solution is to upgrade the company's network (dif ...
Posted by mwalsh on Sat, 04 Apr 2020 18:05:14 +0200
Python management under CentOS
Upgrade Python
View system version
cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
View Python version
python -V
Python 2.7.5
Installing Python 3
Install all development kits
yum groupinstall "Development tools" -y
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel -y
Download the latest python install ...
Posted by Kaizard on Wed, 01 Apr 2020 09:39:57 +0200
Gitee and Github simultaneously configure ssh key
1, Create ssh key of gitee and github
cd ~/.ssh
ssh-keygen -t rsa -C "xxxxx@xxxxx.com"
Replace the correct mailbox, press enter
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/FlyingHorse/.ssh/id_rsa): id_rsa.gitee
Enter id_rsa.gitee when creating the ssh key of gitee and id_rsa.github when creating th ...
Posted by Bubbagump on Wed, 01 Apr 2020 07:38:47 +0200
Smokeping quick installation guide
Written in front
I thought I would never use smokeping again, but I was wrong.
According to the last use for about half a year, it's usually used once for sex and again this time. I totally forgot to clean it.
Then start
install
apt-get -y install smokeping
Configuration service
For the configuration of the Web server, refer to the above Ru ...
Posted by help_lucky on Mon, 30 Mar 2020 19:56:48 +0200