Skip to content

Instantly share code, notes, and snippets.

View YuniqueUnic's full-sized avatar

Unic YuniqueUnic

View GitHub Profile
@ixuuux
ixuuux / send_mail.py
Last active September 3, 2024 13:46
在Python中发送邮件,不依赖其他第三方库
# -*- coding: utf-8 -*-
"""
File Name : send_mail.py
Create Date : 2020/10/24 15:26
"""
import threading
import smtplib
from email.mime.text import MIMEText
class SendMail:
@ixuuux
ixuuux / removeAnyDirFile.py
Created October 18, 2020 13:29
删除任意文件/文件夹。非空文件夹依然可以正确删除。
# -*- coding: utf-8 -*-
import os
def remove_any_dir_file(dir_or_file_path: str) -> None:
""" 删除任意文件/文件夹非空文件夹依然可以正确删除
例如
>>> import os
>>> dir_path = os.path.join(os.getcwd(), 'test')
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active August 28, 2026 03:00
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@wavezhang
wavezhang / java_download.sh
Last active August 13, 2026 08:28
download java from oracle without login
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz