sudo apt update
sudo apt install build-essential procps curl file git -ymd
| git remote update origin --prune |
| # Install dependency 'https://github.com/barryvdh/laravel-dompdf' | |
| composer require barryvdh/laravel-dompdf | |
| # Add the file in providers 'config/app.php' | |
| Barryvdh\DomPDF\ServiceProvider::class, | |
| # In laravel controller use the code | |
| use PDF; | |
| public function generatePDF(){ |
| # files here will be ignored by prettier | |
| node_modules | |
| package-lock.json | |
| yarn.lock | |
| build |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"> | |
| <title>Document</title> | |
| </head> | |
| <body> |
| ssh-keygen -t ed25519 -C "your_email@example.com" | |
| eval "$(ssh-agent -s)" | |
| ssh-add ~/.ssh/id_ed25519 | |
| cat ~/.ssh/id_ed25519.pub | |
| // for more information: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent |
| *Set the username/email for a specific repository:* | |
| git config user.name "Your project specific name" | |
| git config user.email "your@project-specific-email.com" | |
| *Verify your settings:* | |
| git config --get user.name | |
| git config --get user.email | |
| /* | |
| |====================================================== | |
| | Find timezone from browser | |
| |====================================================*/ | |
| Intl.DateTimeFormat().resolvedOptions().timeZone; | |
| /* | |
| |====================================================== | |
| | Convert number into suffix number | |
| | Ex: 1K, 1.04M |