Skip to content

Instantly share code, notes, and snippets.

Avatar
✈️

Laurent Heirendt laurentheirendt

✈️
View GitHub Profile
@laurentheirendt
laurentheirendt / gource.sh
Last active Feb 11, 2019 — forked from XueshiQiao/gource.sh
Generate a MP4 Video for your Git project commits using Gource!
View gource.sh
# https://github.com/acaudwell/Gource
# 1.install gource using HomeBrew
$ brew install gource
# 2.install avconv
git clone git://git.libav.org/libav.git
cd libav
# it will take 3-5 minutes to complie, be patient.
./configure --disable-yasm
make && make install
@debreczeni
debreczeni / git-show-big-files.sh
Created May 2, 2012
Find large files in git repository
View git-show-big-files.sh
#!/bin/bash
#set -x
# Shows you the largest objects in your repo's pack file.
# Written for osx.
#
# @see http://stubbisms.wordpress.com/2009/07/10/git-script-to-show-largest-pack-objects-and-trim-your-waist-line/
# @author Antony Stubbs
@spacecowb0y
spacecowb0y / gource_to_git.sh
Last active Sep 9, 2021
From Gource to GIF (Gource and ffmpg are required)
View gource_to_git.sh
#!/bin/bash
gource --key --seconds-per-day 0.1 --auto-skip-seconds 1 -400x300 -o - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 input.mp4
mkdir frames
ffmpeg -i input.mp4 -vf scale=400:-1:flags=lanczos,fps=10 frames/ffout%03d.png
convert -loop 0 frames/ffout*.png output.gif
rm -rf frames