apache enable mod reqrite
sudo a2enmod rewrite sudo service apache2 restart
Here is what the above code is Doing:
1. Install Apache2
2. Install mod_wsgi
3. Enable mod_wsgi
4. Restart Apache2
sudo a2enmod rewrite sudo service apache2 restart
Here is what the above code is Doing:
1. Install Apache2
2. Install mod_wsgi
3. Enable mod_wsgi
4. Restart Apache2
ssh user@host -p custom_port_no Here is what the above code is Doing: 1. We are creating a new SSH client. 2. Next, we are defining the SSH server address, username, and password. 3. Then, we are connecting to the server using the connect() method. 4. After that, we are executing the ls command using the…
solcjs –version Here is what the above code is Doing: 1. We’re importing the os module, which allows us to interact with the operating system. 2. We’re importing the subprocess module, which allows us to run commands on the command line. 3. We’re using the os.system() function to run the command “npm install -g solc”….
xrandr –newmode “1920×1080″ 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync xrandr –addmode Virtual1 1920×1080 xrandr –output Virtual1 –mode 1920×1080 Here is what the above code is Doing: 1. Create a new mode called “1920×1080” with a refresh rate of 60Hz. 2. Add the new mode to the Virtual1 output. 3. Set…
sudo curl -L “https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)” -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose 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 latest version…
# history of line 120 of the file build.sbt git log -L120,+1:’build.sbt’ Here is what the above code is Doing: 1. git log -L120,+1:’build.sbt’ -L120,+1: This is the range-line option. It tells git to show the history of the line 120 of the file build.sbt. ‘build.sbt’: This is the pathspec. It tells git to look…
# simply run the below command sudo yum install git -y Here is what the above code is Doing: 1. We are using the sudo command to run the yum command as the root user. 2. We are using the yum command to install the git package. 3. We are using the -y flag to…