Skip to content

Instantly share code, notes, and snippets.

View tarlori's full-sized avatar

Lorand Tar tarlori

  • Textmimedia Ltd
  • Arad
View GitHub Profile
@tarlori
tarlori / code-review-checklist.md
Last active November 24, 2020 11:26 — forked from nerandell/code-review-checklist.md
PHP Code Review Guidelines

Make sure these boxes are checked before submitting/approving the PR

General

  • The code works
  • The code is easy to understand
  • Follows coding conventions
  • Names are simple and if possible short
  • Names are spelt correctly
  • Names contain units where applicable
  • There are no usages of magic numbers
https://github.com/h5bp/server-configs-apache
If WP, "Eliminate render-blocking JavaScript and CSS in above-the-fold content" problem will be solved with:
https://wordpress.org/plugins/autoptimize/1
@tarlori
tarlori / gist:60ada2e42aa042580d305326610cc1cf
Last active January 17, 2017 21:31
Compress images with jpegtran and jpegoptim
sudo apt-get install libjpeg-progs jpegoptim
# Compress one image
jpegtran -copy none -optimize -perfect inputimage.jpg > outputimage.jpg
Then:
jpegoptim --max=85 --strip-all outputimage.jpg
# Compress whole folder of images
cd /path/with/jpgs
find . -exec jpegtran -optimize -outfile "{}.opti.jpg" "{}" \;