• Rabbitmq common function encapsulation – PHP version


    When rabbitmq has been widely used in the project, here is a brief summary of the general functions of rabbitmq and encapsulated into a composer package,Composer package address、GitHub address, welcome fork. Due to the limited level, it is inevitable that there are bugs. Welcome to put forward your valuable opinions Introduction to easy rabbitmq package […]

  • Implementation of timing task test with redis + springboot


    Redis implements timing task based on monitoring rediskey value Specific code implementation: Code GitHub address:https://github.com/Tom-shushu/Project Build a springboot project Introduce dependency 4.0.0 org.springframework.boot spring-boot-starter-parent 2.4.4 com.example redistask 0.0.1-SNAPSHOT redistask Demo project for Spring Boot 1.8 org.springframework.boot spring-boot-starter-data-redis org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-test test org.springframework.boot spring-boot-maven-plugin configuration file spring.redis.host= spring.redis.port=6379 spring.redis.timeout=10000 Create a new configuration class package […]

  • JavaScript jump page in 5 seconds


    Code implementation: Content: var div = document.querySelector(‘div’); var timer = 5; fn(); setInterval(fn, 1000); function fn() { if (timer == 0) { location.href = ‘https://www.cnblogs.com/jacklzx/’; } else { div.innerHTML =Timer + ‘jump to home page after seconds’; timer–; } }

  • Cloud gateway rate limiting practice


    Rate limit is widely used in many business scenarios by limiting the frequency of calling API to prevent API overuse and protect API from accidental or malicious use. Recently, Chen Zhuo, a cloud system development engineer of youpai cloud system, was invited to share in the open talk open class entitled “practice of cloud gateway […]

  • Summary of date function use hive, postgre


    Some time functions commonly used in hive select Day — time field , TRUNC (day, ‘mm’) — the first day of the month ,last_ Day (day) — the last day of the month ,date_ sub(concat(substr(add_ months(a.due_ Date, 1), 1,7), ‘- 01’), 1) – the last day of the month , TRUNC (day, ‘YY’) — the […]

  • Node.js Asynchronous iterators in


    Author: J á NOS kubisch Crazy technology house Original text: https://blog.risingstack.com/… No reprint without permission From Node.js Since v10.0.0, asynchronous iterators are emerging, and they have become more and more attractive in the community recently. In this article, we’ll discuss the role of asynchronous iterators and address the question of what they might be used […]

  • Process monitoring of Linux shell practice


    Requirements: monitor the system for nginx. Every 3 seconds, the successful output test succeeds, the failed output test fails and restart the nginx serviceThe code is as follows (for reference only, the case is applicable to the author’s own MBP) #!/bin/bash Echo “this is the first case of shell programming.” #Start of monitoring while true […]

  • FreeBSD Views Instant Network Traffic


    1Packet “netstat 1” accumulates once in a second and “netstat 2” accumulates once in two seconds. And so on 2. View network card traffic: “systat-if 1″ refreshes every second, “systat-if 2” refreshes every two seconds, and so on.

  • PHP connection web service interface


    First of all, thank your predecessors. Reference: https://www.cnblogs.com/xbxxf/p/10103430.html Originally speaking, docking interface, I thought it was a form of curl interface, but when I finally gave the interface technetium, I was told that it was a web service technetium interface…. (Speechless for 3 seconds.) There’s no way it’s all like this, just see how it […]