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.
Easiest pattern is a literal file name:
This will ignore any files named .DS_Store which is common in MacOS.
You can ignore entire directories by including their paths and putting a / at the end:
node_modules/ logs/ secret_directory/
If you leave the slash ‘ / ‘ at the end you will match both directories and file names.
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 32,767
Now you need to restart the services. Be sure to do this if you have direct access to the console for your MacOS. If you do it remotely you may loose connection. I could not find a way to ‘restart’ a service on MacOS as we normally do in Linux. You have to ‘unload’ and ‘load’ the service in MacOS. Use the below commands.
Hola! Each runlevel has a certain number of services stopped or started, giving the user control over the behavior of the machine. Conventionally, seven runlevels exist, numbered from zero to six. While brewing coffee at home I found the difference between runlevels in Linux. See below.
Shuts down the system.
Does not configure network interfaces, start daemons or allow non-root logins.
Does not configure network interfaces or start daemons.
I was asked the other day ‘How does the default Apache virtual host file looks like?’ I was having my Peruvian coffee and decided to place below the default Apache virtual host file in this post for any future reference.
API is an Application Programming Interface which is a way that allows communication between two applications using a set of rules. While having a great coffee from Bolivia I found the following API requests types.
The main Web Service APIs are:
SOAP (Simple Object Access Protocol) uses XML to transfer sets of information in the form of objects. Created by Microsoft in 1998.
XML-RPC was developed in 1997. It uses identifying tags similar to HTML and provides a rigid way to structuring data.
REST (Representational State Transfer) Mainly a set of HTTP verbs. GET, POST DELETE, PUT handle the management of the server’s resources.
I hope this information about API requests types is helpful. You can also contact me if you have questions.
An innerjoin it is the most common kind of join, so common that SQL doesn’t actually make us say “inner join” to do one.
An outer join returns a set of records or rows that include what an inner join would return, but also includes other rows for which no corresponding match is found in the other table. There are 3 types of outer join: