Skip to content

Instantly share code, notes, and snippets.

View giannisp's full-sized avatar

Ioannis Poulakas giannisp

View GitHub Profile
brew install imagemagick
convert icon.png favicon.ico
@giannisp
giannisp / gist:330a7977e880f3496519f925b4dea3ea
Created January 2, 2017 10:40
Quicktime mov screencast to gif
brew install ffmpeg
brew install gifsicle
ffmpeg -i screencast.mov -s 600x120 -pix_fmt rgb24 -r 30 -f gif - | gifsicle --optimize=3 --delay=3 > screencast.gif
@giannisp
giannisp / gist:b53a76047b07751ed3ade3c1db1d2c51
Created November 18, 2016 05:50
Upgrade PostgreSQL 9.5.5 to 9.6.1 using Homebrew (macOS)
After automatically updating Postgres to 9.6.1 via Homebrew, the pg_ctl start command didn't work.
The error was something like "database files are incompatible with server".
Database files have to be updated before starting the server, here are the steps that had to be followed:
# need to have both 9.6.1 and latest 9.5.x installed, and keep 9.6.1 as default
brew unlink postgresql
brew install postgresql95
brew unlink postgresql95
brew link postgresql