Fix for FOUC :
At the top of your HTML:
<!doctype html>
<html>
<head>
<style>html{visibility: hidden;opacity:0;}</style>
<?php | |
namespace App\Helpers\File; | |
use Illuminate\Http\File; | |
use Illuminate\Http\UploadedFile; | |
use Illuminate\Support\Arr; | |
class FileHelper | |
{ |
Fix for FOUC :
At the top of your HTML:
<!doctype html>
<html>
<head>
<style>html{visibility: hidden;opacity:0;}</style>
<?php | |
class BackupDroplet | |
{ | |
private $apiUrl = 'https://api.digitalocean.com/v2/'; | |
private $token; | |
private $dropletId; | |
public function __construct($token, $dropletId) | |
{ |
# === Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers) === | |
# | |
# by Fotis Evangelou, developer of Engintron (engintron.com) | |
# | |
# ~ Updated December 2021 ~ | |
# | |
# | |
# The settings provided below are a starting point for a 8-16 GB RAM server with 4-8 CPU cores. | |
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage. | |
# |
Update root's mail recipient. Open /etc/aliases replacing administrator@example.tld with an administrator's email address. This is where logs will be emailed.
root: administrator@example.tld
Update the the default umask to 027. Edit the file /etc/init.d/rc and change the following setting:
umask 027
<?php | |
add_action( 'phpmailer_init', '_add_string_attachments' ); | |
function _add_string_attachments( $phpmailer ) { | |
// the previous attachment will fail since it's not an actual file | |
// we will use the error to attach it as a string | |
if ( '' !== $phpmailer->ErrorInfo ) { | |
// error info | |
$error_info = $phpmailer->ErrorInfo; |