I started an Ubuntu EC2 the other day hoping to run Ansible on it and was surprised that Python was not installed. A requirement for Ansible to run on target machines is to have a modern version of Python. You can just run sudo apt install python but this is not ideal if you need […]
I try to limit my line characters to 79-80 per line. For example check this 122 character multi-command line: RUN wget -O afile.tar.gz http://example.com/afile.tar.gz && tar -xvf afile.tar.gz -C /usr/src/myapp && rm afile.tar.gz You will need to scroll horizontally using your text editor to see the super long crazy line. This is not efficient and […]
A .gitignore file is a plain text file where each line contains a pattern for files/directories to ignore. Normally, this is placed in the root directory of your repository. This is the recommended way. The patterns in the .gitignore file are relative to the location of the file. File names Easiest pattern is a literal […]
The grep command means Global Regular Expression Print. This Linux command is one of the most useful commands out there. Below are some basic examples: grep ‘word’ filenamegrep ‘word’ filename1 filename2 filename3grep ‘string1′ string2’ filenamecat filename | grep ‘something’command | grep ‘something’ Next example, you can search for the user ‘tom’ in the Linux passwd […]
This is simple. Open a terminal and follow the steps below. This worked for me on MacOS 10.13.6 Open the Terminal. Run sudo vim /etc/services Enter your password Find the lines assigned to port 22, something like the image below Replace both ports 22 with your desired ssh port using a number between 1024 and […]
This is easier than what it seems. Follow the steps below in order. Make sure you know your home public IP. Find this info on your home router/modem or do a search in Google “What’s my ip”. Note this IP address. More coming soon!