Common macro collations in Linux kernel s
Basic knowledge of 0x00 macros
// object-like
#define Macro Name Replace List Line Break
//function-like
#define Macro Name ([Identifier List]) Replaces List Line Break
The replacement list and the identifier list are both lists after tokenizing the string.The difference is that the identifier list is used as a separator between different param ...
Posted by darkerstar on Mon, 16 Dec 2019 18:33:46 -0800
Ubuntu replacement and use of apt source and python source (only applicable to zju intranet)
Ubuntu replacement and use of apt source and python source.md
One click change script content
#! /bin/bash
echo "Set up image source of Zhejiang University"
(cat << EOF
deb http://mirrors.zju.edu.cn/ubuntu xenial main universe restricted multiverse
deb http://mirrors.zju.edu.cn/ubuntu xenial-security main universe restricted multiverse
de ...
Posted by shedokan on Sun, 15 Dec 2019 10:24:24 -0800
MATLAB problem notes
1. Operating system: Linux mint 19.2
2.MATLAB version R2017b
3. Problem Description:
Open the help document of MATLAB and view it. After closing the help document, Matlab is stuck. After a period of time, it will report:
Exception in thread "AWT-EventQueue-0" com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: Failed to execute shutdo ...
Posted by filippe on Sun, 15 Dec 2019 06:35:40 -0800
A strange memcpy problem
When you see this title, you must be thinking about the bug s caused by memory overlap. I admit that you are right, but not all of them. If you are interested in this, you can continue to look down, and you will surely get something.
First of all, I will briefly introduce the background. Recently, there is a strange problem in the company's pr ...
Posted by cordex on Sat, 14 Dec 2019 11:41:16 -0800
MySQL Architecture - mmm deployment instance
Source of mmm architecture
As we all know, MySQL provides Master-Slave replication, and then it can easily realize Master master two-way replication, and build a Slave library for one of the Master nodes. In this way, the MySQL-MMM architecture is based on two-way replication between Master1 and master2, and Master-Slave replication between M ...
Posted by EODC on Sat, 14 Dec 2019 09:48:21 -0800
Characteristics and usage of PM2
Main features of pm2
Built in load balancing (for the use of Node cluster cluster module and subprocesses, please refer to Chapter 9 of Park Ling's "getting to the bottom of node.js")
Thread guard, keep alive
0 second shutdown and heavy load, no need to shut down for maintenance and upgrading
Now Linux (stable) & Mac OS X ...
Posted by ratebuster on Fri, 13 Dec 2019 12:37:05 -0800
workerman message push
workerman's message push
Linux system environment detection
Linux system can use the following script to test whether the native PHP environment meets the requirements of WorkerMan.
curl -Ss http://www.workerman.net/check.php | php
If all the above scripts show ok, it means that the requirements of WorkerMan are met
Download of We ...
Posted by morgann7 on Fri, 13 Dec 2019 11:58:22 -0800
[original] vma/malloc/mmap for Linux memory management
background
Read the fueling source code! - by Lu Xun
A picture is worth a thousand words. --By Golgi
Explain:
Kernel version: 4.14
ARM64 processor, Contex-A53, dual core
Using tool: Source Insight 3.5, Visio
1. overview
In this article, let's take a look at the address space of user state processes, mainly including the following:
vma;
...
Posted by KingPhilip on Fri, 13 Dec 2019 10:49:58 -0800
Nginx virtual host based on host domain name
1. Copy the Nginx configuration file
[root@localhost ~]# cd /etc/nginx/conf.d/
[root@localhost conf.d]# cp default.conf default1.conf
2. Modify the configuration file default.conf
[root@localhost conf.d]# vim default.conf
server {
listen 80;
server_name www.host.com;
#charset koi8-r;
#access_log /var ...
Posted by Dilb on Fri, 13 Dec 2019 09:21:38 -0800
Qingyun Xenon manages mysql master-slave replication test
Environment: 2 VM virtual machines centos7 x86? 64 bit system
Configuration environment requirements:
I. two virtual machines need to turn off iptables, turn off firewalld, turn off selinux and turn on time synchronization parameters to ensure that the time of the two virtual machines is consistent2. The sshd service of the two virtual machine ...
Posted by aperantos on Fri, 13 Dec 2019 03:21:21 -0800