Skip to content

Instantly share code, notes, and snippets.

View laurentheirendt's full-sized avatar
✈️

Laurent Heirendt laurentheirendt

✈️
View GitHub Profile
@spacecowb0y
spacecowb0y / gource_to_git.sh
Last active September 9, 2021 11:33
From Gource to GIF (Gource and ffmpg are required)
#!/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
@debreczeni
debreczeni / git-show-big-files.sh
Created May 2, 2012 16:41
Find large files in git repository
#!/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
@laurentheirendt
laurentheirendt / gource.sh
Last active February 11, 2019 09:11 — forked from XueshiQiao/gource.sh
Generate a MP4 Video for your Git project commits using Gource!
# 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