Skip to content

Instantly share code, notes, and snippets.

@8-diagrams
8-diagrams / 163imgbed.js
Created October 20, 2023 03:27 — forked from BlueSkyXN/163imgbed.js
163imgbed.js
// Giithub @BlueSkyXN
// Code https://gist.github.com/BlueSkyXN/b0c06952bd402545abedcb0ee73d05d9
// 仅供学习CloudFlare Worker开发使用,违规使用后果自负
// License @GPLv3
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
@8-diagrams
8-diagrams / smtp_server.py
Created June 18, 2022 16:56 — forked from amirasaran/smtp_server.py
Python3 SMTP (smtpd) Mail Server with authentication sample + smtpd TLS support
import asynchat
import base64
import ssl
import asyncore
from smtpd import SMTPServer as BaseSMTPServer, SMTPChannel as BaseSMTPChannel, DEBUGSTREAM
def decode_b64(data):
"""Wrapper for b64decode, without having to struggle with bytestrings."""