Skip to content

Instantly share code, notes, and snippets.

View SpotlightForBugs's full-sized avatar
:atom:
I am coding. At least I am pretending to be...

Johannes Häusler SpotlightForBugs

:atom:
I am coding. At least I am pretending to be...
View GitHub Profile
@SpotlightForBugs
SpotlightForBugs / bot.py
Created April 4, 2025 22:26
Telegram bot that removes non-admin invite link messages
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import asyncio
import logging
import os
import re
import random
from aiogram import Bot, Dispatcher, F
@SpotlightForBugs
SpotlightForBugs / manage-certs.sh
Created October 26, 2025 19:24
Automates most of adding Cloudflare Origin Certificates to Coolify (Traefic required)
#!/bin/bash
# --- Configuration ---
# Set the base directory for the Coolify proxy
PROXY_DIR="/data/coolify/proxy"
CERT_DIR="$PROXY_DIR/certs"
DYNAMIC_CONF_DIR="$PROXY_DIR/dynamic"
DYNAMIC_CONF_FILE="$DYNAMIC_CONF_DIR/custom-certs.yaml"
# --- Helper Functions ---