Skip to content

Instantly share code, notes, and snippets.

@mujahidk
mujahidk / git-find-big-files-in-hist.sh
Created July 2, 2021 13:34 — forked from masbicudo/git-find-big-files-in-hist.sh
Script to find large files in git history
#!/bin/bash
# This code is based on the awesome answer by @torek from StackOverflow:
# https://stackoverflow.com/a/41626019/195417
# I have only made a shell for his code, added some options, added some colors
# and voilà!
#
# This script can be used to find large files inside a git repository
# and it's whole history. It will list files larger than a given threshold,
# and display these files in a colored human readable way.
#
@mujahidk
mujahidk / .bashrc
Created March 4, 2017 17:31 — forked from tracker1/.bashrc
Git Bash Shell startup for automatic ssh-agent running
SSH_ENV=$HOME/.ssh/environment
# start the ssh-agent
function start_agent {
echo "Initializing new SSH agent..."
# spawn ssh-agent
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
echo succeeded
chmod 600 "${SSH_ENV}"
. "${SSH_ENV}" > /dev/null