Skip to content

Instantly share code, notes, and snippets.

View mb2dev's full-sized avatar
🎯
Focusing

Mickael Bordage mb2dev

🎯
Focusing
View GitHub Profile
@mb2dev
mb2dev / optimize.php
Created October 8, 2019 15:33 — forked from fians/optimize.php
Optimize Image in PHP using Imagick according Google Pagespeed Recommendation
/**
* Optimize image image
*
* https://developers.google.com/speed/docs/insights/OptimizeImages
* -sampling-factor 4:2:0 -strip -quality 85 -interlace JPEG -colorspace sRGB
*
* @access public
* @param string $filePath Path of the file
* @return string Raw image result from the process
*/
@mb2dev
mb2dev / ubuntu_agnoster_install.md
Created December 3, 2018 21:35 — forked from renshuki/ubuntu_agnoster_install.md
Ubuntu 16.04 + Terminator + Oh My ZSH with Agnoster Theme

Install Terminator (shell)

sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator

Terminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").

Install ZSH