Skip to content

Instantly share code, notes, and snippets.

@arizz96
arizz96 / .gitconfig
Created January 30, 2024 14:11
Global git configuration
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[user]
name = ...
email = ...
[core]
editor = nano
@arizz96
arizz96 / gengif.sh
Created July 18, 2023 07:34
Convert .mov to .gif using FFMPEG
#!/bin/sh
palette="/tmp/palette.png"
filters="fps=15,scale=-1:480:flags=lanczos"
ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette
ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2