WEBSITE_HOST="example.com"
$websiteHost = env('WEBSITE_HOST');
// .htaccess for park main domain to a dir | |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^(www.)?domain.com$ | |
RewriteCond %{REQUEST_URI} !^/dir/ | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ /dir/$1 | |
RewriteCond %{HTTP_HOST} ^(www.)?domain.com$ | |
RewriteRule ^(/)?$ dir/ [L] |
Install Latest "intervention/image": "3.5.0", | |
composer require intervention/image 3.5.0 |
For generating refresh token | |
https://developers.google.com/oauthplayground | |
for any help | |
https://www.youtube.com/watch?v=OPDkQ3V4Goo&ab_channel=ImranicShow | |
composer require spatie/laravel-backup [docs: https://spatie.be/docs/laravel-backup/v8/installation-and-setup] | |
eta dia config file publish korben | |
php artisan vendor:publish --provider="Spatie\Backup\BackupServiceProvider" | |
{ | |
"afghanistan": { "bn": "আফগানিস্তান", "en": "Afghanistan" }, | |
"albania": { "bn": "আলবেনিয়া", "en": "Albania" }, | |
"algeria": { "bn": "আলজেরিয়া", "en": "Algeria" }, | |
"american_samoa": { "bn": "আমেরিকান সামোয়া", "en": "American Samoa" }, | |
"andorra": { "bn": "এন্ডোরা", "en": "Andorra" }, | |
"angola": { "bn": "অ্যাঙ্গোলা", "en": "Angola" }, | |
"anguilla": { "bn": "এ্যাঙ্গুইলা", "en": "Anguilla" }, | |
"antigua_barbuda": { "bn": "এন্টিগুয়া (বার্বুডা)", "en": "Antigua (Barbuda)" }, | |
"argentina": { "bn": "আর্জেন্টিনা", "en": "Argentina" }, |
function generate_unique_number() { | |
$number = mt_rand(1000000000, 9999999999); // Generate a random 10-digit number | |
$sum = 0; | |
for ($i = 2; $i <= 11; $i++) { // Calculate the checksum digit | |
$digit = substr($number, 11 - $i, 1); | |
$sum += $digit * $i; | |
} | |
$checksum = ($sum % 11) == 10 ? '0' : ($sum % 11); // If the checksum is 10, replace it with 0 | |
return substr($number, 0, 9) . $checksum; // Return the number with the checksum digit appended | |
} |
/*! | |
* jQuery.textcomplete.js | |
* | |
* Repositiory: https://github.com/yuku-t/jquery-textcomplete | |
* License: MIT | |
* Author: Yuku Takahashi | |
*/ | |
;(function ($) { |
import urllib.request | |
import json | |
import datetime | |
import random | |
import string | |
import time | |
import os | |
import sys | |
os.system("title WARP-PLUS-CLOUDFLARE By ALIILAPRO") | |
os.system('cls' if os.name == 'nt' else 'clear') |