Unison + inotify implement real-time bidirectional data synchronization
unisonIt is a file synchronization tool across windows, linux, and mac OS platforms. It not only supports local synchronization, but also supports synchronization through
The servers are:Server a:192.168.1.6, synchronizing directory:/var/wwwServer b:192.168.1.7, synchronizing directory:/var/wwwInstall UnisonFirst install OCaml, version is at least 3.07 or higherDownload Address: http://caml.inria.fr
The
The author is boundlessIn Python, serialization can be interpreted as translating Python's object encoding into a JSON-formatted string, which can be interpreted as: Decoding a JSON-formatted string into a Python data object. In Python's standard
Commonly used time functions:
1.time (); Gets the total number of seconds from 1970/1/1 00:00:00 to now
2.mktime (); Set time
3.date (); Detailed information about the time of acquisition
Representative String
Description
Print $ week_start & nbsp; date (U, mktime (0, 0, 0, date (m), date (d)-7, date (Y); $ week_end & nbsp; date (U, mktime (23, 59, 59, date (m), date (d)-0, date (Y); $ date prints every day of the previous week
$week_start =
Print $ week_start & nbsp; = & nbsp; date ("U", mktime (, 0, date ("m"), date ("d ") -7, date ("Y"); $ week_end & nbsp; = & nbsp; date ("U", mktime (, 59, dat print each day of the previous week
$week_start = date("U",mktime(0,0,0,date("m"),date("d"
Print $ week_start & nbsp; date (U, mktime (0, 0, 0, date (m), date (d)-7, date (Y); $ week_end & nbsp; date (U, mktime (23, 59, 59, date (m), date (d)-0, date (Y); $ dateda prints every day of the previous week
$week_start =
Turn from: http://www.cnblogs.com/wangkangluo1/archive/2012/04/12/2444952.html keyboard Move (move)Everything is moving from the keyboardK-On UpJ-DownH-LeftL-R RightZ---redraw the screen, the current cursor changes to the first line of the screen
First, we need to understand a few concepts:
1. "System time" and "Hardware Time"
System time: Typically the time we see the date command, all the time calls (except for direct access to the hardware time) in the Linux system are used this time.
Commonly used time functions:
1.time (); The total number of seconds from 1970/1/1 00:00:00 to today
2.mktime (); Set time
3.date (); More information on getting time
represents a String
Description
Example
Output
We use the MARIADB, which is used by this audit tool https://mariadb.com/kb/en/library/mariadb-audit-plugin/This tool does not take into account the late processing of the data, because his log is like this20180727
Switch workbench and Table of contents
CTRL + W + H cursor focus left tree directoryCTRL + W + L cursor focus right file display windowCTRL + W + W cursor automatically switch to left right windowCTRL + W + R to move the layout position of the
Linux time zone details and common time functions time and time zone The entire earth is divided into 24 time zones, each time zone has its own local time. ø UTC Time and GMT time We can think of Greenwich Mean Time (GMT = UTC), GMT and
Objective:Recently in the process of doing China Mobile Crawler, the first encounter is in a request, there is a "WT_PFC" cookie key value is generated by the front-end JavaScript, not into the HttpWebResponse, that is, C # does not go back to
I. Introduction to General Deployment of nodejs applications
Finally, we need to deploy the nodejs application online and copy the source code to the directory through git.Copy codeThe Code is as follows:/root/deploy/movieRun the following
Searching for a file is simple. As long as you enter a directory, We will automatically traverse the directory and find the associated file name. Let's take a look at it.
PHP file lookup program. After a path is entered, all the files and folders
Function Name: getdatePower: DOS dateUsage: void getdate (strUCt * dateblk );Program example:# Include # Include Int main (void){Struct date d;Getdate (& d );PRintf ("The current year is: % d ",D. da_year );Printf ("The current day is: % d ",D.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.