Skip to content

Instantly share code, notes, and snippets.

View reduardo7's full-sized avatar
💭
🤔

Eduardo Daniel Cuomo reduardo7

💭
🤔
View GitHub Profile
@reduardo7
reduardo7 / log_prefix.sh
Last active April 29, 2023 13:22
Bash output prefix and redirect to a file with timestamp
#!/usr/bin/env bash
[ -f test.log ] && rm -f test.log
{
{
echo foo 1
sleep 1
echo bar 1 >&2
echo foo 2
@reduardo7
reduardo7 / output_prefix.sh
Last active November 4, 2025 15:02
Output prefix with timestamp
#!/usr/bin/env bash
{
echo foo 1
sleep 1
echo bar 1 >&2
echo foo 2
sleep 1
echo bar 2 >&2
} \
@reduardo7
reduardo7 / repository-history.sh
Created August 25, 2025 12:47
GIT Repository History scanner
#!/bin/bash
# Analyzes git commit history to find ticket-related commits
# Usage: ./repository-history.sh [-h COMMIT_HASH] [-t TICKET] [-a AUTHOR] [-d DAYS]
# - Without arguments: Shows ticket commits from current branch (last 30 days)
# - -h COMMIT_HASH: Shows ticket commits up to that hash in current branch (within specified days)
# - -t TICKET: Filters results to show only commits for specific ticket (e.g., OV-12345)
# - -a AUTHOR: Filters results by author name/email (case-insensitive partial match)
# - -d DAYS: Number of days to look back (default: 30)
# - All flags can be combined: -h HASH -t TICKET -a AUTHOR -d DAYS
@reduardo7
reduardo7 / README.md
Last active October 30, 2025 19:18
AI - Commands

AI - Commands

Cursor / Claude / Copilot commands.