setting up yarn on my mac
curl -o- -L https://yarnpkg.com/install.sh | bash
Here is what the above code is Doing:
1. Install Node.js and npm
2. Install yarn
curl -o- -L https://yarnpkg.com/install.sh | bash
Here is what the above code is Doing:
1. Install Node.js and npm
2. Install yarn
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/ Here is what the above code is Doing: 1. It’s importing the Flask class from the flask module. 2. It’s creating a new web application called app. 3. It’s defining what to do when the root URL of the web application is requested. 4. It’s telling the web application to run.
$ git status -uall Here is what the above code is Doing: 1. git status -uall -uall: Show untracked files. -uno: Show untracked files only when they are not ignored. -u: Show untracked files. -s: Show the status in short format. -b: Show the current branch and tracking info if applicable. -uno: Show untracked files…
# Linux and Mac only (at the moment) curl https://pyenv.run | bash Here is what the above code is Doing: 1. It’s downloading the pyenv installation script from the pyenv GitHub repository. 2. It’s running the installation script. 3. It’s adding the pyenv init command to your shell to enable shims and autocompletion. 4. It’s…
brew install imagemagick Here is what the above code is Doing: 1. We’re importing the Image class from the PIL module. 2. We’re opening the image and storing it in a variable. 3. We’re resizing the image and storing it in a variable. 4. We’re saving the image to a file.
## Install java sudo apt update && sudo apt install openjdk-8-jdk -y ## Install Jenkins wget -q -O – https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add – sudo sh -c ‘echo deb https://pkg.jenkins.io/debian-stable binary/ > \ /etc/apt/sources.list.d/jenkins.list’ sudo apt-get update && sudo apt-get install jenkins -y Here is what the above code is Doing: 1. Update the…
git reset HEAD~1 –soft Here is what the above code is Doing: 1. git reset HEAD~1 –soft This command will reset the current branch to the commit before the last commit. The –soft flag will keep the changes in the working directory. 2. git commit -m “New commit message” This command will create a new…