Skip to content

Instantly share code, notes, and snippets.

@donthub
donthub / README.md
Last active April 9, 2026 16:49
Salonic available reservation notifier

Salonic available reservation notifier

Configuration

Configure config.json:

  • email: Email address to send notification to
  • password: Google App password for SMTP mail sending
  • url: Salonic https://api.salonic.hu/calendar/getAvailableTimes?... URL for target calendar
  • before_date: Send notification if found calendar date is before this provided epoch date
@donthub
donthub / animefillerpercentage.user.js
Created October 1, 2025 19:46
Animefiller percentage
// ==UserScript==
// @name Animefiller percentage
// @namespace http://tampermonkey.net/
// @version 2025-09-28
// @description Display percentage of anime filler categories
// @author donthub
// @match https://www.animefillerlist.com/shows/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=animefillerlist.com
// @grant none
// ==/UserScript==
@donthub
donthub / main.py
Created January 11, 2025 14:53
Blur image background in Python
from rembg import remove, new_session
from PIL import Image, ImageFilter
# Store paths
image_path = 'image.png'
output_path = 'output.png'
final_image_path = 'final.png'
# Parameters
model_name = 'birefnet-general'