Tag:mail

  • Docker installation and configuration gitlab

    Time:2021-10-23

    1、 Installing gitlab docker run -d -h git.test.com -p 80:80 -p 443:443 -p 22:22 -v /www/wwwroot/git.test.com/gitlab/config:/etc/gitlab:rw -v /www/wwwroot/git.test.com/gitlab/data:/var/opt/gitlab:rw -v /www/wwwroot/git.test.com/gitlab/logs:/var/log/gitlab:rw -v /www/server/panel/vhost/cert/git.test.com:/gitlab_ssl:ro –restart=always –name server-gitlab gitlab/gitlab-ce:latest 2、 Gitlab enable SSL Enter container docker exec -it server-gitlab /bin/bash Modify the configuration file: VIM / etc / gitlab / gitlab.rb external_url “https://git.test.com”    nginx[‘enable’] = true nginx[‘redirect_http_to_https’] […]

  • Python Weekly – 432 – how to run user uploaded code safely?

    Time:2021-10-21

    Original text:PyCoder’s Weekly – Issue #432 200805 Zoom.Quiet(aunt) it takes 42 minutes to complete the fast translation 200805 Zoom.QuietIt takes (aunt) 37 minutes to copy the format Python still lacks four powerful features SERDAR YEGULAP Python doesn’t have true constants, nor does it implement features like tail recursion optimization that many compiled languages employ. Find […]

  • Python one click to get mail attachments

    Time:2021-10-18

    Here, take my corporate QQ email as an example. The code is as follows: # -*- coding: utf-8 -*- Original text:bgods.cn/blog/post/54/ This work adoptsCC agreement, reprint must indicate the author and the link to this article

  • Spring boot implements mail tasks

    Time:2021-10-12

    Import key jar packages: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> <version>2.2.6.RELEASE</version> </dependency> Add mail configuration in application.properties: #Sender’s mailbox [email protected] #Mailbox key spring.mail.password=nxnoashhoanvdfaf #Mailbox host spring.mail.host=smtp.qq.com #Open the security authentication of QQ mailbox spring.mail.properties.mail.smtp.ssl.enable=true Test the simple mail task in the test class @SpringBootTest class SpringbootShrioApplicationTests { //Import mail implementation class @Autowired JavaMailSenderImpl mailSender; @Test void contextLoads() { […]

  • Angularjs learning notes from books – Chapter 4 – Cases

    Time:2021-10-12

    1. Use the angular feature to build a simple shopping cartThe following code combines HTML and controller.js for easy reading. <html ng-app> <head> < title > shopping cart < / Title > </head> <body ng-controller=’ctrl’> <h1>Shopping cart</h1> <div ng-repeat=’item in items’> <span>{{item.title}}</span> <input ng-model=’item.quantity’> <span>{{item.price | currency}}</span><!– Convert the price through the filter currency and […]

  • Sending mail by multithreading in Django

    Time:2021-10-10

    Copyright notice: This article is original by the author. No reprint is allowed without permission. To send mail in Django, you can use Python’s native SMTP lib module or django.core.mail module encapsulated by Django. Using multithreading, sending mail does not block the main thread. Examples are as follows: 1、 Using the SMTP lib module <send_email_thread.py> […]

  • The distributed monitoring system wgcloud V3.0 is released, and the agent is rewritten in go language

    Time:2021-10-6

    Developed based on Java language, wgcloud is a monitoring system built by springboot. It supports high concurrency and high performance. Its core modules include: server cluster monitoring, ES cluster status monitoring, CPU monitoring, memory monitoring, data monitoring, network traffic monitoring, service heartbeat detection, application process management, disk IO monitoring, system load monitoring, monitoring alarm information […]

  • Wgcloud, a distributed monitoring system, supports docker status monitoring

    Time:2021-10-3

    Developed based on Java language, wgcloud is a monitoring system built by springboot. It supports high concurrency and high performance. Its core modules include: server cluster monitoring, ES cluster status monitoring, CPU monitoring, memory monitoring, data monitoring, docker monitoring, network traffic monitoring, service heartbeat detection, application process management, disk IO monitoring, system load monitoring, monitoring […]

  • Build Prometheus + grafana cloud platform monitoring system

    Time:2021-9-27

    1.1 Prometheus and grafana overview1.1.1 Prometheus overviewPrometheus (Prometheus) is an open-source combination of monitoring & Alarm & time series database, which was initially developed by Soundcloud company. In the most common docker, mesos and kubernetes container management systems, Prometheus is usually used for monitoring. Prometheus [pr əˈ mi θ Ju: s] PrometheusThe basic principle of […]

  • Sending mail using Google

    Time:2021-9-26

    [TOC] Sending mail using Google Let’s review what we said last timeGo verification code case Sort of verification code Installation of verification code library Verification code library source code introduction Practice, coding Verification code effect display If you want to see how go makes the verification code, please check the articleGo verification code case In […]

  • C # send mail

    Time:2021-9-23

    Take the SMTP service of QQ mailbox as an example. Before writing the code, you need to enter QQ mailbox for configuration, start the SMTP service, check the authorization, get the authorization code, record the SMTP server address and port, and write the code after the configuration is completed Net framework has integrated the functions […]