Skip to content

Instantly share code, notes, and snippets.

View soelb's full-sized avatar
🎯
Focusing

Soeleece Benjamin soelb

🎯
Focusing
View GitHub Profile
@soelb
soelb / README.md
Created September 25, 2025 13:50
Explore your shell history like a time traveler. Discover what commands you ran this time last week, last month, or even a year ago. Works with Zsh/Bash.

🔮 Command Time Travel

Explore your shell history like a time traveler.
This script shows commands you ran at this time last week, last month, or the same day last year.


🧪 Features

  • Works with ~/.zsh_history or ~/.bash_history
@soelb
soelb / .gitconfig
Last active September 24, 2025 22:13
Git Power Toolkit — Undo script, .gitconfig, and GitHub backup
[user]
name = Your Name
email = your@email.com
[core]
editor = code --wait
autocrlf = input
[alias]
st = status
@soelb
soelb / clean_git_history.sh
Created September 24, 2025 21:52
Interactive Git history cleanup script. Helps squash commits, drop unwanted ones, and reword messages for cleaner Git logs. Best used in local branches before pushing to remote!
#!/bin/bash
# This script helps clean and optimize your Git history interactively.
# USE WITH CAUTION ⚠️ - This rewrites commit history.
echo "💡 Make sure you have backups or pushed branches before proceeding."
read -p "How many commits back do you want to clean up? " commits
if [[ -z "$commits" ]]; then