Skip to content

Instantly share code, notes, and snippets.

View melianmiko's full-sized avatar

MelianMiko melianmiko

View GitHub Profile
@melianmiko
melianmiko / main.py
Created January 16, 2023 19:26
Freebuds playground
import code
import os
import socket
import threading
import traceback
import bluetooth
DEVICE_ADDR = "xx:xx:xx:xx:xx:xx"
SPP_SERVICE_UUID = "00001101-0000-1000-8000-00805f9b34fb"
@melianmiko
melianmiko / models.py
Last active January 7, 2023 11:00
Django Comments XTD EMail notifications
from django.core.mail import send_mail
from django.db import models
from django.dispatch import receiver
from django_comments_xtd.models import XtdComment
class CommentMailFilter(models.Model):
# To prevent duplicate mails
id = models.IntegerField(primary_key=True)
def _comment2html(comment: XtdComment, with_header=True):
// ==UserScript==
// @name Наебатор для webinar.ru
// @namespace http://melianmiko.ru/
// @version 0.1
// @description С этим скриптом можно ливнуть с лекции и никто это не спалит
// @author melianmiko
// @match https://events.webinar.ru/
// @icon https://melianmiko.ru/favicon.ico
// @grant none
// ==/UserScript==