This file contains 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
/opt/plesk/php/8.2/bin/php artisan down | |
/opt/plesk/php/8.2/bin/php /usr/lib64/plesk-9.0/composer.phar install --no-interaction --no-dev | |
/opt/plesk/php/8.2/bin/php artisan migrate --force | |
/opt/plesk/php/8.2/bin/php artisan db:seed --force | |
export PATH=$PATH:/opt/plesk/node/16/bin/ | |
/opt/plesk/node/16/bin/npm install &> npm_install.log | |
/opt/plesk/node/16/bin/npm run build &> npm_build.log | |
/opt/plesk/php/8.2/bin/php artisan optimize:clear | |
/opt/plesk/php/8.2/bin/php artisan view:cache | |
/opt/plesk/php/8.2/bin/php artisan route:cache |
This file contains 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
##### GIT clone | |
git clone project from github | |
##### update .env to: | |
APP_URL=http://localhost | |
APP_SERVICE="image.name" | |
APP_PORT=80 | |
FORWARD_DB_PORT=3306 |
This file contains 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
Run this commands on your WSL | |
sudo rm /etc/resolv.conf | |
sudo bash -c 'echo "nameserver 8.8.8.8" > /etc/resolv.conf' | |
sudo bash -c 'echo "[network]" > /etc/wsl.conf' | |
sudo bash -c 'echo "generateResolvConf = false" >> /etc/wsl.conf' | |
sudo chattr +i /etc/resolv.conf |
This file contains 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
Put this line into your ~/.profile | |
alias mc='source /usr/lib/mc/mc-wrapper.sh' |
This file contains 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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title> | |
Checking To See If An Element Has A CSS Pseudo-Class In JavaScript | |
</title> | |
<link rel="stylesheet" type="text/css" href="./demo.css" /> | |
</head> |
This file contains 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
# Change to the project directory | |
cd /home/forge/domain.com | |
# Turn on maintenance mode | |
php artisan down | |
# Pull the latest changes from the git repository | |
# git reset --hard | |
# git clean -df | |
git pull origin master |
This file contains 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
delete from files | |
where files.file_id | |
in ( | |
select file_id from (select * from files) as removed_files left join addresses on removed_files.addresses_id = addresses.id | |
where addresses.id is null | |
) |
This file contains 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
<?php | |
$file = Storage::disk('my_storage_name')->get($originalFileName); | |
$response = response($file) | |
->withHeaders([ | |
'Content-type' => 'application/force-download', | |
'Content-Transfer-Encoding' => 'Binary', | |
'Content-Disposition' => 'attachment;filename='.$newFileNameWithNonAsciiChars, | |
]); | |
return $response; |
This file contains 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
<?php | |
iconv(mb_detect_encoding($string, mb_detect_order(), true), "UTF-8", $string); | |
?> |
This file contains 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
$data = array( | |
'projectNo'=>$manager->projectDetails->project_no, | |
'customerName'=>$manager->projectDetails->customer_name, | |
'projectId'=>$manager->projectDetails->project_id, | |
'projectAddress'=>$manager->projectDetails->address_id_fk, | |
); | |
Mail::send('Mail/firstProjectNote', $data, function($message) use ($manager) | |
{ | |
$message |
NewerOlder