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
name: Deployment to SSH Server | |
on: | |
push: | |
branches: | |
- dev | |
- production | |
pull_request: | |
branches: | |
- dev |
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
How is it Working ? | |
I Haven't done any of it !! | |
You can still use this extension! If you want to manually load this version, here are the instructions from the developer: | |
1. Enter chrome://flags in chrome's URL input | |
2. Search for "Allow legacy extension manifest versions" | |
3. Enable it and relaunch browser | |
4. Download the latest zip file of ublock version from github: (the following is the link of the latest releases) https://github.com/gorhill/uBlock/releases/latest | |
5. Download the chromium zip and extract it | |
6. Enter chrome://extensions in chrome's URL input to open the extension page in chrome, click the "Load Unpacked" button on top left side load (enable Developer Mode in the top right if it doesn't appear), then select the extracted file. Show less |
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
use Illuminate\Support\Facades\Auth; | |
use Illuminate\Support\Facades\Storage; | |
use Illuminate\Support\Facades\Response; | |
function getFile($fileName) | |
{ | |
// Check if the user is logged in | |
if (!Auth::check()) { | |
return response('Unauthorized', 401); // Return an unauthorized response | |
} |
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
<?php | |
namespace Tests\Unit; | |
use Illuminate\Foundation\Testing\RefreshDatabase; | |
use Tests\TestCase; | |
use App\Models\Post; | |
class PostTest extends TestCase | |
{ |
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
let colorsSizes = [["Red","Blue","Black"],["M","L","XL"]]; | |
for (let i = 0; i < colorsSizes[0].length; i++) { | |
for (let j = 0; j < colorsSizes[1].length; j++) { | |
console.log(colorsSizes[0][i] + " - " + colorsSizes[1][j]); | |
} | |
} | |
Red - M | |
Red - L | |
Red - XL |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<link rel="stylesheet" href="style.css"> | |
</head> |
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
sudo apt-get install supervisor | |
sudo systemctl stop supervisor | |
sudo systemctl start supervisor | |
sudo systemctl status supervisor | |
sudo nano /etc/supervisor/conf.d/laravel-queue-project1.conf | |
[program:laravel-queue-project1] | |
process_name=%(program_name)s_%(process_num)02d | |
command=php /var/www/project1/artisan queue:work --queue=default --sleep=3 --tries=3 --max-time=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
stages: | |
- build | |
- test | |
- deploy | |
variables: | |
APP_NAME: "your-app-name" | |
SERVER_USER: "your-server-user" | |
SERVER_HOST: "your-server-host" | |
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} |
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
//////////project composer.json//////////// | |
{ | |
"name": "laravel/laravel", | |
"type": "project", | |
"description": "The skeleton application for the Laravel framework.", | |
"keywords": ["laravel", "framework"], | |
"license": "MIT", | |
"repositories": { | |
"demo-package": { |
NewerOlder