downgrade node mac
$ npm install -g n $ n 6.10.3
Here is what the above code is Doing:
1. Install n, a node version manager
2. Install the latest stable version of node
$ npm install -g n $ n 6.10.3
Here is what the above code is Doing:
1. Install n, a node version manager
2. Install the latest stable version of node
7z x example.zip -oexample Here is what the above code is Doing: 1. We’re using the zipfile module to open the zip file. 2. We’re using the extractall() method to extract the contents of the zip file. 3. We’re passing the path to the directory where we want to extract the contents of the zip…
git add the_left_out_file git commit –amend –no-edit Here is what the above code is Doing: 1. git add the_left_out_file 2. git commit –amend –no-edit The first line adds the file to the staging area. The second line commits the file to the repository. The –amend flag tells git to amend the previous commit. The –no-edit…
% ./script.sh zsh: permission denied: ./script.sh If you are trying to execute a script on the Terminal using the Zsh shell and you get permission denied then make sure that the script has the execute permissions. You can do that by using the ls command. % ls -ltrh total 2832 -rw-r–r– 1 code2care staff 5B…
sudo passwd vivek Here is what the above code is Doing: 1. We are using the sudo command to run the passwd command as the root user. 2. The passwd command is used to change the password of a user. 3. The vivek is the username whose password we want to change.
Step 1 C:\> netstat -ano | findstr :YourPortNumber Step 2 C:\> taskkill /PID enterPID /F Here is what the above code is Doing: 1. netstat -ano | findstr :YourPortNumber – netstat -a : Displays all connections and listening ports. – netstat -n : Displays active TCP connections, however, resolved addresses are not – netstat -o…
sudo curl -L “https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)” -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose docker-compose –version Here is what the above code is Doing: 1. Update the apt package index. 2. Install packages to allow apt to use a repository over HTTPS. 3. Add Docker’s official GPG key. 4. Set up the stable repository. 5. Install the…