Skip to content

Instantly share code, notes, and snippets.

View SVO20's full-sized avatar
✒️

Vladimir S SVO20

✒️
  • freelancer
  • Saint-Petersburg, Russia
  • 06:49 (UTC +03:00)
View GitHub Profile
@SVO20
SVO20 / Code Block Wrapping Enhancer For ChatGPT-1.3.user.js
Last active May 12, 2025 21:29
Code block wrapper script (for Tampermonkey etc.)
// ==UserScript==
// @name Text Block Wrapping Enhancer For ChatGPT
// @namespace http://tampermonkey.net/
// @version 1.4
// @description Replaces or adds the "!whitespace-pre-wrap" class to <code> elements.
// @match *://chatgpt.com/*
// @grant none
// ==/UserScript==
(function() {
@SVO20
SVO20 / batman.py
Created September 15, 2024 12:03
Kind of custom tool for remote exception handling and logging `live` in production (2021 pet)
"""
Tool for exception handling and logging
"""
import re
from sys import exc_info
import traceback
import datetime
@SVO20
SVO20 / logger.py
Last active May 12, 2025 21:32
Logger module I use, built on top of Loguru lib
import sys
from functools import partial
from loguru import logger
# Initials
scenario = "ALL" # "ALL" , "FILE_ONLY" , "STDOUTPUT_ONLY" accepted
level = "TRACE" # "OMIT", "TRACE", "DEBUG", "INFO", "SUCCESS", "WARNING", "ERROR" ("CRITICAL")
enqueue = True
@SVO20
SVO20 / classmixer.py
Last active September 15, 2024 20:05
Python Tool: ClassMixer v.1.0
"""
Tool: ClassMixer v.1.0.1
This module provides a dynamic mechanism to mix multiple mixins into a base class,
handling initialization and method resolution automatically. It constructs the resulting
class by invoking the __init__ methods of all classes according to the Method Resolution
Order (MRO) and detects if any base class methods are overridden by the mixins.
Key features:
- Dynamically creates a class that inherits from a base class and multiple mixins.