Skip to content

Instantly share code, notes, and snippets.

Avatar

Matthew Lein matthewlein

View GitHub Profile
@johnjreiser
johnjreiser / AmazonLinux-InstallPostGIS.sh
Last active Mar 26, 2021
Script to install PostgreSQL 10 and PostGIS 2.5 on fresh Amazon Linux 2
View AmazonLinux-InstallPostGIS.sh
#!/bin/bash
# Script to install PostgreSQL 10 and PostGIS 2.5 on fresh Amazon Linux 2
# Installing from source:
# - GEOS 3.7.1
# - GDAL 2.4.0
# - PostGIS 2.5.1
set -e
sudo amazon-linux-extras install postgresql10 vim epel -y
@sergejmueller
sergejmueller / ttf2woff2.md
Last active Apr 4, 2021
WOFF 2.0 – Learn more about the next generation Web Font Format and convert TTF to WOFF2
View ttf2woff2.md
@SlexAxton
SlexAxton / .zshrc
Last active Jan 2, 2021
My gif workflow
View .zshrc
gifify() {
if [[ -n "$1" ]]; then
if [[ $2 == '--good' ]]; then
ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png
time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif
rm out-static*.png
else
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif
fi
else