Skip to content

Instantly share code, notes, and snippets.

View muhrifqii's full-sized avatar
:octocat:

Muhammad Rifqi Fatchurrahman muhrifqii

:octocat:
View GitHub Profile
@muhrifqii
muhrifqii / contribution_finder.sh
Created June 16, 2025 06:49
Count local git contribution by commit count
GIT_PATH="~/gitlab"
cd $GIT_PATH && for repo in $(find . -type d -name ".git" | sed 's|/.git||'); do
cd "$repo" 2>/dev/null || continue
if [ -d .git ]; then
author=$(git config user.name 2>/dev/null || echo "unknown")
email=$(git config user.email 2>/dev/null || echo "unknown")
commit_count=0
if [ "$author" != "unknown" ]; then
commit_count=$(git log --oneline --author="$author" 2>/dev/null | wc -l)
@muhrifqii
muhrifqii / cursor.desktop
Last active July 2, 2025 10:42
cursor updater linux
[Desktop Entry]
Name=Cursor App
Type=Application
Categories=Utility;Development;
Exec=sh -c '/{HOME PATH HERE}/Applications/cursor/cursor.AppImage --no-sandbox; $SHELL'
Icon=/{HOME PATH HERE}/Applications/cursor/cursor.jpg