Articles & Snippets

Search for content...
/

Start typing to search

Enable GZIP Compression in WHM

Posted by Cătălin on Fri, 19 May 2017

How to add GZIP compression server-wide in cPanel WHM EasyApache3 or EasyApache4

In cPanel WHM EasyApache3 or EasyApache4, you can add GZIP compression server-wide, including new accounts, by adding the following to Service Configuration → Apache Configuration → Include Editor...

Read More...
code

Image blur filter

Posted by Cătălin on Wed, 22 Mar 2017

How to apply a Gaussian blur to an image.

CSS The value of ‘radius’ defines the value of the standard deviation to the Gaussian function, or how many pixels on the screen blend into each other, so a larger value will create more blur. If...

Read More...
code

Encrypt files on OS X

Posted by Cătălin on Thu, 9 Mar 2017

Encrypt any files on OS X with openssl

Encrypt openssl enc -aes-256-cbc -e -in /Users/name/Desktop/file.pdf -out /Users/name/Desktop/file_encrypted.pdf Decrypt openssl enc -aes-256-cbc -d -in /Users/name/Desktop/file_encrypted.pdf -out...

Read More...
code

How to force HTTPS using the .htaccess file

Posted by Cătălin on Wed, 8 Feb 2017

How to force HTTPS using the .htaccess file using mod_rewrite.

RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R,L] To force a specific domain to use HTTPS, use the following lines of code in the .htaccess file...

Read More...
code

CentOS cleaning Yum cache

Posted by Cătălin on Wed, 8 Feb 2017

How to lean the cache of YUM on your CentOS?

yum clean packages Now remove any cached XML-based metadata yum clean metadata Remove any cached database files yum clean dbcache Following this you will want to clean all the files to confirm...

Read More...
code

Useful library repository

Posted by Cătălin on Thu, 26 Jan 2017

Useful CDN Javascript and CSS library repository

CDNJS* is a library repository which hosted on cloudflare.com. It’s freely available CDN for common Javascript and CSS libraries. Currently there are 2756 libraries, check it out at: https://cdnjs...

Read More...
code