how to pull submodules git
git submodule update --init --recursive
Here is what the above code is Doing:
1. Clone the repository
2. Checkout the latest tag
3. Update the submodules
git submodule update --init --recursive
Here is what the above code is Doing:
1. Clone the repository
2. Checkout the latest tag
3. Update the submodules
In your ~/.zshrc Simply clone this repository and source the script: git clone https://github.com/zsh-users/zsh-syntax-highlighting.git echo “source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh” >> ${ZDOTDIR:-$HOME}/.zshrc Then, enable syntax highlighting in the current interactive shell: source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh If git is not installed, download and extract a snapshot of the latest development tree from: https://github.com/zsh-users/zsh-syntax-highlighting/archive/master.tar.gz Note the source command must be at the…
brew install inetutils Here is what the above code is Doing: 1. We’re importing the socket module, which is necessary because we’re going to be creating a socket. 2. We’re creating a socket object. 3. We’re binding our socket to the localhost, and telling our socket to listen for connections on port 80. 4. We’re…
# Example usage: awk ‘FNR==NR{a[$1]=$1; next}; $8 in a {print $0;}’ input_file_1 input_file_2 # This command prints rows from input_file_2 if the value in a specific # field of input_file_2 is found in a specific column of input_file_1. # With these specific numbers, this function prints the row from # input_file_2 if the value in…
exper 60+80 Here is what the above code is Doing: 1. We’re creating a new class called “Player” that inherits from the “Object” class. 2. We create the __init__ function and use the “super” function to inherit all the properties of the “Object” class. 3. We create a Player object by running “self.player = Object(0,…
free -m Here is what the above code is Doing: 1. We’re importing the os module, which contains a number of system-based functions. 2. We’re using the os.system() function to run the free -m command on the system. 3. We’re printing the output of the command.
firewall-cmd –permanent –zone=public –add-port=80/tcp Here is what the above code is Doing: 1. We’re using the firewall-cmd command to add a permanent rule to the public zone. 2. We’re adding a rule to allow traffic on port 80. 3. We’re specifying that the traffic is TCP.