Save yourself a few keystrokes. Follow the steps below:
-
Run this Bash script on your laptop:
#!/usr/bin/env bash
| <?php | |
| namespace App\Jobs; | |
| use App\Models\GeneralExport; | |
| use Storage; | |
| class CreateGeneralExportFileJob implements ShouldQueue | |
| { |
| LEMP Stack Setup - Ubuntu | |
| =================================Install Nginx ========================== | |
| sudo apt update | |
| sudo apt install nginx | |
| sudo ufw status | |
| sudo ufw app list | |
| i. sudo ufw allow 'Nginx Full' | |
| ii. sudo ufw allow 'OpenSSH' |
| name: push-to-do-server | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| automatic-deploy: | |
| runs-on: ubuntu-latest | |
| steps: |
| <?php | |
| use Carbon\Carbon; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Support\Facades\Log; | |
| use Illuminate\Support\Facades\Session; | |
| use Illuminate\Support\Facades\Storage; | |
| use Illuminate\Support\Facades\Validator; |
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| [ -z "$PS1" ] && return | |
| # don't put duplicate lines in the history. See bash(1) for more options | |
| # ... or force ignoredups and ignorespace | |
| HISTCONTROL=ignoredups:ignorespace |
| # Alias for pythons | |
| alias py=python | |
| # Alias for composer | |
| alias cr=composer | |
| alias cri="composer install" | |
| alias crd="composer dump-autoload" | |
| alias cru="composer update" | |
| # Alias for artisan commands |
| { | |
| // The command to execute for the terminal, leave blank for the OS default | |
| // On OS X the terminal can be set to iTerm.sh to execute iTerm | |
| "terminal": "C:\\Program Files\\Git\\git-bash.exe", | |
| // A list of default parameters to pass to the terminal, this can be | |
| // overridden by passing the "parameters" key with a list value to the args | |
| // dict when calling the "open_terminal" or "open_terminal_project_folder" | |
| // commands | |
| "parameters": ["-c", "cd \"%CWD%\" && \"C:\\Program Files\\Git\\bin\\sh.exe\" -i -l"] |