Force Apt-get to use IPv4 on Debian Linux

In some VPS or servers you may get errors when doing apt-get due to IPv6. To force apt-get to use IPv4 just type this command: echo ‘Acquire::ForceIPv4 "true";’ | tee /etc/apt/apt.conf.d/99force-ipv4echo ‘Acquire::ForceIPv4 "true";’ | tee /etc/apt/apt.conf.d/99force-ipv4 The setting will be permanent.

Sandboxie SBIE2205 “Service not Available: CreateDesktop” Firefox

If you updated Firefox to version 60+ and you got this Sandboxie error: SBIE2205 "Service not Available: CreateDesktop"SBIE2205 "Service not Available: CreateDesktop" Then follow these steps to fix it: 1) Open Firefox outside Sandboxie 2) Type about:config in the URL and accept the risk 3) Search sandbox 4) Change security.sandbox.content.level to 2 5) Close Firefox […]

Cannot modify header information – headers already sent

Here you will find various solutions to fix this PHP error message: Cannot modify header information – headers already sentCannot modify header information – headers already sent Solution 1 – UTF-8 without BOM Make sure the file encoding format of all PHP files is UTF-8 without BOM. You can use Notepad++ to convert the encoding […]

Install MariaDB 10.3 Server on Debian Linux

To install MariaDB 10.3 server on Debian Linux just type: apt-get install -y -q software-properties-common dirmngr apt-key adv –recv-keys –keyserver keyserver.ubuntu.com 0xF1656F24C74CD1D8 add-apt-repository "deb [arch=amd64,i386,ppc64el] http://mariadb.mirror.nucleus.be/repo/10.3/debian stretch main" apt-get update apt-get install mariadb-serverapt-get install -y -q software-properties-common dirmngr apt-key adv –recv-keys –keyserver keyserver.ubuntu.com 0xF1656F24C74CD1D8 add-apt-repository "deb [arch=amd64,i386,ppc64el] http://mariadb.mirror.nucleus.be/repo/10.3/debian stretch main" apt-get update apt-get install mariadb-server

Install Only MariaDB Client on Debian Linux

To install only MariaDB client on Debian Linux just type: apt-get install -y -q software-properties-common dirmngr apt-key adv –recv-keys –keyserver keyserver.ubuntu.com 0xF1656F24C74CD1D8 add-apt-repository "deb [arch=amd64,i386,ppc64el] http://mariadb.mirror.nucleus.be/repo/10.3/debian stretch main" apt-get update apt-get install mariadb-clientapt-get install -y -q software-properties-common dirmngr apt-key adv –recv-keys –keyserver keyserver.ubuntu.com 0xF1656F24C74CD1D8 add-apt-repository "deb [arch=amd64,i386,ppc64el] http://mariadb.mirror.nucleus.be/repo/10.3/debian stretch main" apt-get update apt-get install mariadb-client

Send Transactional Email with SendGrid in PHP

SendGrid is the most popular transactional email service with a FREE plan: Email Delivery Service | SendGrid You can download the official SendGrid PHP library here: https://github.com/sendgrid/sendgrid-php Here is a simple function used to send an email: function sendgrid_send($from_name, $from_email, $to_email, $subject, $content_html) { require "path/to/sendgrid-php/sendgrid-php.php"; $from = new SendGrid\Email($from_name, $from_email); $to = new SendGrid\Email("", […]

Send Email with PHPMailer using SMTP

PHPMailer is the most popular PHP email sending library: https://github.com/PHPMailer/PHPMailer Here is a simple function used to send an email using SMTP: function phpmailer_send($subject, $from_name, $from_email, $message, $to) { require_once ‘path/to/php-mailer/PHPMailerAutoload.php’; $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->SMTPDebug = 0; $mail->SMTPSecure = "ssl";   // Example ssl0.ovh.net $mail->Host = "YOUR_SMTP_HOST_ADDRESS";   $mail->Port = […]

Fortnite TCP/UDP Ports to Open on Router or Firewall

If you want to play Fortnite and you’re behind a router or firewall you need to open specific TCP and UDP ports to make sure Fortnite works fine and to avoid network connection problems. To play Fortnite online you need to open port 80, 443 and 5222. You need to open those ports in your […]

jQuery simple alert message that fades out after N seconds

Sample code to show an alert message and remove it (fade out) after N seconds. This is the code to insert inside script tag: $(document).ready(function () { window.setTimeout(function() { $(".alert-message-simple").fadeTo(1500, 0).slideUp(500, function(){ $(this).remove(); }); }, 4000);   });$(document).ready(function () { window.setTimeout(function() { $(".alert-message-simple").fadeTo(1500, 0).slideUp(500, function(){ $(this).remove(); }); }, 4000); }); And then you can write […]