Articles & Snippets

Search for content...
/

Start typing to search

How to add $PATH variable value to Debian

Posted by Cătălin on Mon, 2 Sep 2019

How to place composer's system-wide vendor bin directory in your $PATH, so the laravel executable can be located by your system.

To set the $PATH permanently, set the path in your startup file. This directory exists in different locations based on your operating system; however, here is how you can do it in Debian. Edit the...

Read More...
code

Bash Script Check is Apache is Down

Posted by Cătălin on Wed, 25 Apr 2018

Bash script to check if Apache server is up and running. If server is down, we will do a restart

#!/bin/bash if curl -s --head 'https://your-domain.com/' | grep "200 OK" > /dev/null then echo "Apache server is up!" > /dev/null else echo "Apache server is down!" /etc/init...

Read More...
code

Install mod_pagespeed on EasyApache4

Posted by Cătălin on Sat, 14 Apr 2018

How to install google mod_pagespeed on EasyApache4 - WHM/Cpanel

Installation Procedure (CentOS): yum install rpm-build cpio ea-apache24-mod_version wget https://github.com/pagespeed/cpanel/raw/master/EA4/ea-apache24-mod_pagespeed-latest-stable.src.rpm rpmbuild...

Read More...
code

Dental Fonts

Posted by Cătălin on Tue, 13 Feb 2018

SVG with JS dental icons based on Font Awesome framework

<head> <script defer src="//assets.market.dental/fonts/md-dental-fonts/md-dental-fonts-1.0.min.js"></script> </head> <body> <i class="md md-veener...

Read More...
code

.htaccess redirect examples

Posted by Cătălin on Fri, 19 Jan 2018

Common .htaccess Redirect Examples

#Redirect a single page: Redirect 301 /pagename.php http://www.domain.com/pagename.html #Redirect an entire site: Redirect 301 / http://www.domain.com/ #Redirect an entire site to a sub...

Read More...
code

Percentage Calculator

Posted by Cătălin on Sat, 6 Jan 2018

Percentage Calculator

What is % of = % /*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof...

Read More...
code