You robbed so many red envelopes. Do you know how it works?

With the popularity of electronic payment, red envelopes are very popular in social software such as wechat nails. Generally, the amount of red envelopes does not need to be very large, which can achieve the way to improve everyone's enthusiasm. In fact, robbing red envelopes is more of a pastime. It's a joy that can't be imagined. As our tra ...

Posted on Mon, 25 May 2020 23:16:21 -0400 by wee_eric

Python:sip Compilation and Use

1. Compile sip source code Unzip the sip source and run PythonConfigure.py-p win32-g++ (win32-g++ means using the mingw32 compiler). Modify generatedSipconfig.pyFile.When Python is installed in the C:\Program Files (x86) directory, place _Pkg_Program Files (x86) in config was replaced with Progra~2, as follows: _pkg_config = { 'arch': ...

Posted on Mon, 25 May 2020 12:21:04 -0400 by endersix

Build / dev/kmem to enumerate all Linux kernel modules (including hidden ones)

Can Linux system have lsmod to enumerate all kernel modules? Isn't procfs fragrant? Why bother enumerating from / dev/kmem? In fact, Linux is a later thing. In the initial UNIX era, enumeration processes such as ps were scanned from / dev/kmem, which is all files Later, the Linux kernel expanded procfs inappropriately, and put all kinds of mes ...

Posted on Sat, 16 May 2020 23:53:43 -0400 by sanderphp

Play redis delay message queue

In the previous article, the redis based list implemented a simple message queue: Play redis simple message queue Source address Using demo Product manager often said that we should not only have X function, but also Y function, so that customers can be more satisfied. Similarly, it is not enough to have a simple message queue, and a del ...

Posted on Wed, 06 May 2020 01:05:18 -0400 by tomz0r

Unix Domain Socket

add by zhj: Unix Domain Socket is the optimization of network socket, which is applicable to the situation that the server and the client are on the same machine. Compared with network socket, it can improve communication efficiency Original text: https://www.jianshu.com/p/dc78b7ca006a Author: Meopas 0 μ 0 Source: Jianshu Recently, when ...

Posted on Tue, 05 May 2020 09:12:19 -0400 by rockroka

3. Introduction to common files in process directory

Explain All directories with full digital names in the proc directory have a process id corresponding to the directory name one by one. For example, if the httpd process is 8293, the process information can be found in the / proc/8293 directory. After the process exits, the directory corresponding to the process id will disappear 1,cmdline ...

Posted on Tue, 05 May 2020 02:20:26 -0400 by Zoud

sed character replacement command

This article is Regular expression in shell programming of mooc.com In Chapter 2, section 56, notes on sed command, thank you for your explanation. sed command sed is a lightweight stream editor that is available on almost all UNIX platforms, including Linux. sed is mainly used to select, replace, delete and add data. Format: sed [optio ...

Posted on Sun, 03 May 2020 01:06:00 -0400 by iovidiu

ubuntu easy to install php+nginx

One install php Install php and execute the following command sudo apt-get install php Install PHP FPM - remember your version of PHP FPM sudo apt-get install php-fpm 2. Install nginx Install nginx and execute the following command sudo apt-get install nginx Enter nginx configuration directory ...

Posted on Sat, 02 May 2020 01:21:22 -0400 by hendoyeah

Detailed explanation of Nginx Rewrite syntax rules and pseudo-static rules

Using pseudo static in nginx is to write rules directly in nginx.conf. It does not need to open the write module (mod_rewrite) like apache to perform pseudo static. Nginx only needs to open the nginx.conf configuration file and write the required rules in the server. The copy code is as follows: ​ server { listen 80; server_name bbs.j ...

Posted on Sun, 26 Apr 2020 22:37:08 -0400 by tinker

Implement simple Web server (c language)

Task: (1) Realize the communication between server and client. (2) You can implement the GET method in an HTTP request. (3) Provide static web browsing functions, such as browsable: HTML page, unformatted text, common image format, etc. (4) Provide dynamic web browsing function that can pass parameters. (5) Some obvious errors can be check ...

Posted on Fri, 24 Apr 2020 14:36:35 -0400 by LacOniC