Articles & Snippets

Search for content...
/

Start typing to search

.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

WHM & CSF - Gmail SMTP connect () failed error

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

Gmail SMTP connect () failed error using smtp.gmail.com and 587 port with TLS in cPanel

I solved the Gmail SMTP connect () failed error adding user(s) to CSF: Go to: CSF Firewall Configuration SMTP Settings Whitelist user(s) in variable "SMTP_ALLOWUSER" SMTP_ALLOWUSER: cpanel,user1,user2 ...

Read More...
code

Hidden Netflix categories

Posted by Cătălin on Tue, 26 Dec 2017

To access the extra content, all you need to do is add the code for the desired genre or sub genre to the end of the usual URL netflix.com/browse/genre/XXXX

Action & Adventure (1365) Asian Action Movies (77232) Classic Action & Adventure (46576) Action Comedies (43040) Action Thrillers (43048) Adventures (7442) Comic Book and Superhero Movies (10118) ...

Read More...
code

hidden-* and visible-* classes update for Bootstrap4

Posted by Cătălin on Wed, 20 Dec 2017

The hidden-* and visible-* classes no longer exist in Bootstrap 4 Beta. If you want to hide an element on specific tiers or breakpoints in Bootstrap 4, use the d-* display classes accordingly.

hidden-xs-down = d-none d-sm-block hidden-sm-down = d-none d-md-block hidden-md-down = d-none d-lg-block hidden-lg-down = d-none d-xl-block hidden-xl-down = d-none (same as hidden) hidden-xs-up...

Read More...
code

Generate password

Posted by Cătălin on Sun, 26 Nov 2017

Refresh the page to generate a 12 characters random password

l^7}WK43q_(S

Read More...
code