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
#!/bin/bash | |
su - infant -c " | |
wget https://ratul.com.bd/wp-content/uploads/2024/08/WireGuard-main.zip && | |
unzip WireGuard-main.zip && | |
cd WireGuard-main && | |
sudo bash wireguard_installer.sh && | |
sudo bash pkg_installation.sh && | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash && | |
source ~/.bashrc && |
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
scp -i mykey.pem somefile.txt root@my.ec2.id.amazonaws.com:/ |
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
Installing Node Version Manager | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash | |
Once you have Node Version Manager installed | |
run in your terminal nvm install 18 to install version 18 of Node | |
run nvm use 18 to start using version 18 of Node |
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
protected $listen = [ | |
Registered::class => [ | |
SendEmailVerificationNotification::class, | |
], | |
'App\Events\LoginEvent' => [ | |
'App\Listeners\CreateNewProduct', | |
'App\Listeners\CreateAnotherNewProduct', | |
] | |
]; |
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
https://askubuntu.com/questions/337443/what-is-a-full-path-name |
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
https://www.markhesketh.com/switching-multiple-php-versions-on-macos/ |
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
lsof -i tcp:3306 | |
kill -9 PID |
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
https://www.educative.io/answers/how-to-install-nodejs-on-ubuntu |
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
https://www.programmersought.com/article/95776663199/ |
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
https://stackoverflow.com/questions/67399785/how-to-solve-npm-install-error-npm-err-code-1 | |
When I try to run the npm install command in an older project, I faced the same issues and I resolved it by updating the dependencies in package.json to the latest versions by following these steps: | |
delete folder node_modules folder and file package-lock.json | |
install npm-check-updates globally, to update all packages to a new major version | |
run npm install -g npm-check-updates | |
run ncu -u to update dependencies in package.json to latest version |
NewerOlder