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 September 2024 ~ | |
| # | |
| # | |
| # 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 [email protected] with an administrator's email address. This is where logs will be emailed.
root: [email protected]
Update the the default umask to 027. Edit the file /etc/init.d/rc and change the following setting:
umask 027
extension_id=jifpbeccnghkjeaalbbjmodiffmgedin # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc"
unzip -d "$extension_id-source" "$extension_id.zip"Thx to crxviewer for the magic download URL.
| <?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; |