Skip to content

Instantly share code, notes, and snippets.

View duke-m's full-sized avatar

Mario duke-m

View GitHub Profile
@duke-m
duke-m / transcode.sh
Created April 11, 2025 09:09
Convert Movie to GIF with Reduced Size
ffmpeg -i input.mov -filter_complex "fps=5,scale=300:-1:flags=lanczos,split[s0][s1];[s0]palettegen=max_colors=64[p];[s1][p]paletteuse=dither=bayer" -loop 1 output.gif
@duke-m
duke-m / deploy.sh
Created August 1, 2018 16:24
Hugo make and deploy file
# locally
eploy_to=~/html/3
# remove all Thumbs.db (if browsed with a Windows Explorer over sftp)
./no-thumbsdb
# SCSS changed?
# Building an extended Hugo can be a pain on some systems...
echo SCSS...
source_css_dir=themes/forty/assets/sass
@duke-m
duke-m / make_keys.sh
Created August 21, 2017 12:24
experimental ssl-key-maker for postgresql
#!/usr/bin/env sh
if [ `whoami` != "postgres" ]; then
echo You are not postgres!
exit
fi
if [ "$1" = "" ]; then
echo "Usage:"
echo "$0 [server|client] [cn]"