04 2024 档案
摘要:web.config中输入一下内容 <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="httpTohttps" stopProcessing=
阅读全文
摘要:git log --date=format:%Y-%m-%d --pretty=format:"%cd;%an;%s" > log.txt
阅读全文
摘要:server { listen 443 ssl; server_name your.domain.com; ssl_certificate /path/to/certificate.crt; ssl_certificate_key /path/to/private.key; location / {
阅读全文
摘要:FROM certbot/certbot RUN pip install certbot-dns-aliyun docker build -t certbot-aliyun . # Aliyun DNS credentials # credentials.ini文件 dns_aliyun_acces
阅读全文
摘要:nginx-proxy配置 nginx-proxy: image: jwilder/nginx-proxy container_name: nginx-proxy restart: always ports: - 80:80 - 443:443 volumes: - ./nginx-proxy/ce
阅读全文
摘要:`crontab` 是一个用于管理和执行定期任务的命令行工具。通过使用 `crontab` 命令,您可以创建、编辑、查看和删除用户的定时任务。下面是一些常用的 `crontab` 命令: - `crontab -e`:编辑当前用户的定时任务。如果是第一次编辑,会提示选择一个文本编辑器。在编辑器中,您
阅读全文
摘要:import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.mime.base import MIMEBase from email imp
阅读全文
摘要:import smtplib from email.mime.text import MIMEText # SMTP服务器设置 smtp_server = 'smtp.qq.com' smtp_port = 587 secure_connection = 'STARTTLS' # 发件人和收件人信息
阅读全文
摘要:public string GetOriginalClientIPAddress(HttpContext context) { string originalClientIPAddress = context.Request.Headers["X-Forwarded-For"]; if (!stri
阅读全文
摘要:=MID(G2,7,4)&"-"&MID(G2,11,2)&"-"&MID(G2,13,2)
阅读全文
摘要:using System; using System.Net; using System.Net.Mail; class Program { static void Main(string[] args) { string smtpHost = "<your-smtp-host>"; int smt
阅读全文
摘要:using NPOI.SS.Formula.Functions; using System; using System.Collections.Generic; using System.Collections.Specialized; using System.IO; using System.L
阅读全文
摘要:public static class ModelCopier { public static void CopyCollection<T>(IEnumerable<T> from, ICollection<T> to) { if (from == null || to == null || to.
阅读全文
摘要:// See https://aka.ms/new-console-template for more information using ReduceImage; Console.WriteLine("Hello, World!"); string folderPath = "C:\\Users\
阅读全文
摘要:we7.diyhey.com/admin/login
阅读全文
摘要:docker run -it --rm -p 80:80 -v /etc/letsencrypt:/etc/letsencrypt -v /var/lib/letsencrypt:/var/lib/letsencrypt certbot/certbot certonly docker nginx d
阅读全文