Skip to content

Instantly share code, notes, and snippets.

@masterPiece93
masterPiece93 / README.md
Last active September 4, 2026 13:15
A utility module for ANSI codes and colored printing

colored.py — Python Terminal Colors & ANSI Text Styling (Zero Dependencies)

A tiny, dependency-free Python module for terminal colors, ANSI escape codes, and text styling (bold, underline, italic, blink, reverse, strikethrough, and 24-bit truecolor). Includes a fluent print replacement called cprint.

Keywords: python terminal colors · ANSI escape codes python · colored text terminal · python print color · ANSI SGR codes · truecolor 24-bit terminal · python cli colors · bold underline blink terminal · cross-platform terminal styling · no dependencies

Python Dependencies License

@masterPiece93
masterPiece93 / a.README.md
Created August 25, 2026 18:17
cAdvisor - with prometheus & grafana

cAdvisor ( with prometheus & grafana)

please download the two attached file in a specific folder on your machine

your folder structure shall look like this :

.
├── docker-compose.yml
@masterPiece93
masterPiece93 / locust_report_visualizer.py
Last active August 7, 2026 18:10
Locust CSV Report Visualizer - CLI | `Python`
"""
CLI Locust Report Visualizer
=============================
Reads Locust load-test report CSV files and renders the performance metrics in a
structured, colourful terminal dashboard using ``rich`` (tables / panels) and
``plotext`` (in-terminal charts).
Locust typically produces a family of CSV files that share a common prefix, e.g.
for ``--csv load-test-report`` you get:

Transferring a GIT repo to new GIT repo with fragmented history

  • suppose you have a GIT repo with a particular point in commit history before which you want to avoid permanently
  • with this approach you'll have a new repo with all history intact post that commit .
  • no links or cache issue what so ever with the old repo .
  1. Identify the hash of the commit you want to be the new starting point (the first commit to keep). Let's call this .
git log --oneline
@masterPiece93
masterPiece93 / simple_schema_validator.py
Last active August 17, 2026 06:14
Simple Python Schema Based Dict Validator
"""
Simple Schema Validator
=======================
efficient for basic straightforward usecases
This script shows an exerpt from a part of
process , where a incoming pub/sub message
is validated against a predefined schema.
@masterPiece93
masterPiece93 / check_gcp_adc_status.py
Last active December 11, 2025 10:42
GCP ADC Check
"""
GCP ADC ( Application Default Credentials ) Authentication Check Module
This module handles the checking responsibility
of weather ADC is setup for the project or not .
Test:
python3 -m gcp_authenticate
"""
import os
@masterPiece93
masterPiece93 / a.LinkedList.md
Last active November 25, 2025 04:16
LinkedList

Linked List

A Linked List Implementation .

Visualization

        head
           \
 \
@masterPiece93
masterPiece93 / a.README.md
Last active September 2, 2025 08:28
Pycco

Pycco

a python documenting tool .

How to Proceed .

Steps :

  • Create a folder on your machine ( let's say demo/ )
    • enter in this folder
      • if your are on ubuntu : cd demo
@masterPiece93
masterPiece93 / NATS.md
Last active September 2, 2025 08:28
NATS

NATS

| Go | python |

Configuring NATS via Docker

Simply follow the steps below :

fetch image :

@masterPiece93
masterPiece93 / a.readme.md
Last active September 2, 2025 08:29
Problem Solving

Problem Solving

coding problems and their solutions .

Index

name tags
generate parenthesis leetcode