Skip to content

Instantly share code, notes, and snippets.

View tailot's full-sized avatar
👾

Vincenzo tailot

👾
  • Italy
View GitHub Profile
/*
USAGE: node <script_name.js> <file_or_directory_path> [start_marker] [end_marker] [extensions]
------------------------------------------------------------------------------------
<file_or_directory_path>: Path to the file or directory to analyze (required).
[start_marker]: Start marker string (optional).
If omitted, uses: "/*<taylored" (Default)
Provide "" for a literally empty marker.
[end_marker]: End marker string (optional).
If omitted, uses: "/*taylored>" (Default)
Provide "" for a literally empty marker.
#!/bin/bash
# USAGE:
# ./cleangit.sh
#
# DESCRIPTION:
# cleangit.sh is an interactive script for cleaning and maintaining a Git repository.
# It runs a series of Git commands to optimize the repository, remove obsolete branches,
# and untracked files.
#
// Usage: node removehistoryfromgit.js <path/to/your/file_to_remove.txt>
// Example: node removehistoryfromgit.js assets/images/large_confidential_file.jpg
// node removehistoryfromgit.js src/old_module.js
//
// This script completely removes a file from the Git repository's history.
// WARNING: This operation REWRITES HISTORY and is DANGEROUS.
// ALWAYS BACK UP YOUR REPOSITORY BEFORE RUNNING THIS SCRIPT.
// If the repository is shared, this will cause severe issues for collaborators
// who will need to re-clone or perform complex rebasing.
@tailot
tailot / IAcommit.py
Last active May 28, 2025 19:34
This Python script analyzes the commit history of a specified Git repository using a locally running Ollama instance and a user-selected AI model. It takes the repository path, an Ollama model name, and an optional commit limit as command-line arguments. For each selected commit, the script extracts the changes (diff) and prompts the AI to gener…
"""
usage: IAcommit.py [-h] [--limit LIMIT] [--model MODEL] [--hash HASH] repository_path
Analyzes commits in a Git repository and suggests new messages using AI with Ollama.
Positional arguments:
repository_path The local directory path of the Git repository to analyze.
Optional arguments:
-h, --help show this help message and exit
@tailot
tailot / numbermodel.ipynb
Last active May 27, 2025 19:50
This Colab notebook builds a multilingual spoken number recognition system, from dataset generation and CNN model training to TFJS conversion and real-time browser-based inference.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
"use strict"
export class MultiDim {
v: any;
constructor(N: number) {
if (N > 0) {
let a = [];
a[N - 1] = undefined;
this.v = a;