rm -rf .git git init
copy text to clipboard from shell
clip < ~/.ssh/id_rsa.pub
create CronJob
1. list crons: crontab -l 2. edit crons: crontab -e tutorial: https://www.hostinger.com/tutorials/vps/how-to-setup-cron-job-vps generator: https://crontab-generator.org/
dpkg
List packages: dpkg -l Install local file: sudo dpkg -i zip_3.0-4_i386.deb https://help.ubuntu.com/lts/serverguide/dpkg.html
install yarn
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update && sudo apt-get install yarn
install nodejs
Node.js v13.x:
# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
sudo apt-get install -y nodejs
# Using Debian, as root
curl -sL https://deb.nodesource.com/setup_13.x | bash -
apt-get install -y nodejs
https://github.com/nodesource/distributions/blob/master/README.md#debinstall
install curl
sudo apt update sudo apt upgrade sudo apt install curl curl --version saves the downloaded file to local: curl -o [file-name] [URL] https://www.geeksforgeeks.org/curl-command-in-linux-with-examples/
deploy on heroku
heroku login https://devcenter.heroku.com/articles/deploying-nodejs
simple-app-tutorial
Create simple NODE.JS app TUTORIAL (express etc) https://auth0.com/blog/create-a-simple-and-stylish-node-express-app/
nWidart modules
nWidart/laravel-modules https://github.com/nWidart/laravel-modules https://nwidart.com/laravel-modules/v6/basic-usage/
Tutorial https://medium.com/@destinyajax/how-to-build-modular-applications-in-laravel-the-plug-n-play-approach-part-2-c23e8089aeee?
Examples
php artisan module:make <module-name>
php artisan module:make Blog User Auth (multiple modules)
php artisan module:make Blog --plain
# or
php artisan module:make Blog -p
php artisan module:make-model Customers <module-name>
php artisan module:make-model Customers -m <module-name> (with migration)
php artisan module:make-migration create_customers_table <module-name>
php artisan module:make-controller CustomersController <module-name>
php artisan module:migrate <module-name>
php artisan module:seed <module-name>