Snippets

Etienne Ott jpegoptim einmal alles

Updated by Etienne Ott

File jpegoptim einmal alles Modified

  • Ignore whitespace
  • Hide word diff
 wget http://www.kokkonen.net/tjko/src/jpegoptim-1.4.3.tar.gz
 tar -zxvf jpegoptim-1.4.3.tar.gz
 cd jpegoptim-1.4.3
+./configure
 make
 make strip
 make install
Updated by Etienne Ott

File jpegoptim einmal alles Modified

  • Ignore whitespace
  • Hide word diff
 cd ~
 wget http://www.kokkonen.net/tjko/src/jpegoptim-1.4.3.tar.gz
 tar -zxvf jpegoptim-1.4.3.tar.gz
-cd jpegoptim-1.4.3.tar.gz
+cd jpegoptim-1.4.3
 make
 make strip
 make install
 # Now we want to optimize the assets
 cd /var/www/vhosts/bonita-core/themes/Custom/Frontend/assets/
 
-# The articles dir is too big, zipping a > 1TB dir is not a good idea
-# tar czf backup_articles.tar.gz articles
+# First create backups
+# The articles dir is big, this might take a while and use ~6GB of space
+tar czf backup_articles.tar.gz articles
 tar czf backup_images.tar.gz images
 tar czf backup_outfits.tar.gz outfits
 
Updated by Etienne Ott

File install-jpegoptim Deleted

  • Ignore whitespace
  • Hide word diff
-# Install jpegoptim
-cd ~
-wget http://www.kokkonen.net/tjko/src/jpegoptim-1.4.3.tar.gz
-tar -zxvf jpegoptim-1.4.3.tar.gz
-cd jpegoptim-1.4.3.tar.gz
-make
-make strip
-make install
-
-# Compress all assets; jpegoptim automatically skips everything that's not a jpeg
-cd /var/www/vhosts/bonita-core/themes/Custom/Frontend/assets/
-find . -type f -exec jpegoptim --strip-all {} \; > results.out

File jpegoptim einmal alles Added

  • Ignore whitespace
  • Hide word diff
+# Install jpegoptim
+cd ~
+wget http://www.kokkonen.net/tjko/src/jpegoptim-1.4.3.tar.gz
+tar -zxvf jpegoptim-1.4.3.tar.gz
+cd jpegoptim-1.4.3.tar.gz
+make
+make strip
+make install
+
+# Now we want to optimize the assets
+cd /var/www/vhosts/bonita-core/themes/Custom/Frontend/assets/
+
+# The articles dir is too big, zipping a > 1TB dir is not a good idea
+# tar czf backup_articles.tar.gz articles
+tar czf backup_images.tar.gz images
+tar czf backup_outfits.tar.gz outfits
+
+# Compress all assets; jpegoptim automatically skips everything that's not a jpeg
+find . -type f -exec jpegoptim --strip-all {} \; > results.out
Updated by Etienne Ott

File install-jpegoptim Modified

  • Ignore whitespace
  • Hide word diff
 # Install jpegoptim
 cd ~
-wget http://www.kokkonen.net/tjko/src/jpegoptim-1.4.3.tar.gz jpegoptim-1.4.3.tar.gz
+wget http://www.kokkonen.net/tjko/src/jpegoptim-1.4.3.tar.gz
 tar -zxvf jpegoptim-1.4.3.tar.gz
 cd jpegoptim-1.4.3.tar.gz
 make
Updated by Etienne Ott

File install-jpegoptim Modified

  • Ignore whitespace
  • Hide word diff
-# First download and install jpegoptim
+# Install jpegoptim
 cd ~
 wget http://www.kokkonen.net/tjko/src/jpegoptim-1.4.3.tar.gz jpegoptim-1.4.3.tar.gz
 tar -zxvf jpegoptim-1.4.3.tar.gz
 cd jpegoptim-1.4.3.tar.gz
 make
 make strip
-make install
+make install
+
+# Compress all assets; jpegoptim automatically skips everything that's not a jpeg
+cd /var/www/vhosts/bonita-core/themes/Custom/Frontend/assets/
+find . -type f -exec jpegoptim --strip-all {} \; > results.out
  1. 1
  2. 2
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.