Skip to content

Instantly share code, notes, and snippets.

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 December 11, 2025 17:49
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