docker installation and use under CentOS 7

docker start stop sudo systemctl start docker.service sudo systemctl stop docker.service sudo systemctl restart docker.service sudo systemctl status docker.service sudo systemctl enable docker sudo docker ps -a ## <-- List existing images ## sudo docker stop 17dd4ab4cda2 ##<-- 17dd4ab4cda2 by container id ## sudo docker rm 17dd4ab4cda ...

Posted by Scorptique on Thu, 21 May 2020 16:38:11 +0200

1. Basic use of reflection in Golang

Golang also provides reflection mechanism, like Java, which obtains information about objects at run time and updates their internal state; Golang obtains object types, field types and values, calls struct instance methods, updates instance values, and so on. _Go Gos The two most important objects and functions related to reflection in the refl ...

Posted by mistercoffee on Tue, 19 May 2020 19:19:09 +0200

Web development, only JS can complete the development of Express query API interface

Some netizens left a message saying that they want to call the express bird API interface to realize Express query, but they don't understand the back-end development, JAVA, PHP, C and python. They asked me if I could realize express interface query, and I said what would you do, he said, I only know a little JS, I replied that it's enough. No ...

Posted by itbegary on Tue, 19 May 2020 16:19:13 +0200

Script custom command

preface There are many built-in commands in the script, but sometimes we want to customize some commands, because writing a script is not as convenient as typing a command. However, there is no document for the custom command on the scrap website. There is only one sentence: you can also use the commands_ The module setting adds a custom projec ...

Posted by wolfcry044 on Tue, 19 May 2020 10:00:43 +0200

react Reading Notes

Source Digging Booklet - react Actual: Design Patterns and Best Practices react design idea Property Expansion - Keep the props required by the current component and pass on other props var obj = {a: 1, b: 2, c: 3, d: 4, e: 5} const { a, ...other } = obj console.log(other) // {b: 2, c: 3, d: 4, e: 5} In react, the interface is entire ...

Posted by vulcant13 on Sat, 16 May 2020 21:57:03 +0200

Simple Java implementation of Netty for communication

Using Java to build a simple example of Netty communication Students who have seen the dubbo source code should know that the underlying communication using the dubbo protocol is to use netty for interaction. Recently, after reading the netty part of dubbo, they wrote a simple example of netty communication. Source address of this paper: implem ...

Posted by PlasmaDragon on Sat, 16 May 2020 13:09:58 +0200

B station video download batch splicing synthesis tool

Introduction Station B is very simple for downloading a single video. You can install plug-ins in the browser, which will not be covered here. This paper mainly introduces the batch download and resource integration of multi-P video. There are two ways: Execute py script Run exe tool preparation 1. Download B station client in windows store   ...

Posted by leeroy1 on Fri, 15 May 2020 07:51:47 +0200

The implementation of flash restful API and the basic permission control based on flash httpauth

This tutorial series is divided into three phases 1.flask restful web service 2. Flash restful API (to be updated) 3. Flash httpauth implements permission control (to be updated) 4.uwsgi management flash application (to be updated) Article excerpted from http://www.pythodoc.com/flask-restful/ I corrected some of the procedural problems arisin ...

Posted by cmzone on Wed, 13 May 2020 14:22:53 +0200

Fastjson Deserialization Vulnerability History

Author: Longofo@knows Chuangyu 404 Laboratory Time: April 27, 2020 Original address: https://paper.seebug.org/1192/English version: https://paper.seebug.org/1193/ Fastjson doesn't have a cve number, it's not very good to look for a timeline, and it doesn't know how to write at first, but it slowly writes something out. Fortunately, fastjson is ...

Posted by slava_php on Tue, 12 May 2020 19:05:20 +0200

Record curl submit data encoding and javascript transform unicode problem

1. Data coding problem of curl submission When using curl to send a POST request under windows, there is a problem. The parameters transmitted are not UTF-8 encoded. 1. In the GIT bash test, locale is UTF-8, no effect, the server received or GBK encoding. 2. Tested under cmd, chcp 65001 has no effect. The server receives GBK code. 3. Wri ...

Posted by boiy on Sun, 10 May 2020 16:19:42 +0200