This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using Let's Encrypt Auto-renewal | |
Log in to your Cloud Panel account | |
Navigate to the SSL/TLS section (often under "Security" or "Domains") | |
Look for Let's Encrypt integration options | |
Enable auto-renewal for your certificates | |
Configure the renewal frequency (typically 30-60 days before expiration) | |
# Install certbot if not already installed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<FilesMatch "\./(php|php5|php7|php8|phtml)$"> | |
Deny from all | |
</FilesMatch> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#show list of firewall allow ports | |
sudo firewall-cmd --allow-ports | |
# allow new ports in firewall | |
sudo firewall-cmd --permanent --add-port=2082/tcp | |
#then reload firewall | |
sudo firewall-cmd --reload |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npx eslint . --ext .js,.jsx,.ts,.tsx | |
npx eslint . --ext .js,.jsx,.ts,.tsx --fix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
circular dependency issue finder | |
npx madge --circular --extensions ts,tsx . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.liquidweb.com/kb/install-postgresql-almalinux/ | |
Install PostgreSQL on AlmaLinux | |
If you have never installed PostgreSQL on Linux before, or this is your first time using AlmaLinux, don’t worry. Just follow our easy five-step guide to get PostgreSQL running in no time. | |
Step #1: Update AlmaLinux | |
Before you install PostgreSQL on Linux, you should first make sure that your distribution has the latest packages installed. To do this, you need to use the dnf command, which will automatically update any outdated packages. | |
dnf update -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
du -s * | sort -nr | head -n10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[program:horizon] | |
process_name=%(program_name)s | |
command=php /home/path_to_the_script/artisan horizon | |
autostart=true | |
autorestart=true | |
user=root | |
redirect_stderr=true | |
stdout_logfile=/home/path_to_the_script/horizon.log | |
stopwaitsecs=3600 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//config/mail.php | |
'smtp' => [ | |
'transport' => 'smtp', | |
'host' => env('MAIL_HOST', 'smtp.mailgun.org'), | |
'port' => env('MAIL_PORT', 587), | |
'encryption' => env('MAIL_ENCRYPTION', 'tls'), | |
'username' => env('MAIL_USERNAME'), | |
'password' => env('MAIL_PASSWORD'), | |
'timeout' => null, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
<IfModule mod_negotiation.c> | |
Options -MultiViews | |
</IfModule> | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$ | |
RewriteRule ^(.*) - [E=BASE:%1] |
NewerOlder