Posts

How to Set Up a Firewall with UFW on ubuntu 20.04

Louis SanchezAugust 15th 2021, 3:43
Uncomplicated firewall (UFW) provides easy-to-use interface for people unfamiliar with firewall concepts. It provides a framework for managing netfilter as well as the command-line interface to manipulate the firewall. With its small command set and plain English parameters, UFW makes it quick and easy to understand and set up firewall...
3892

How to Install and Configure fail2ban on ubuntu 20.04

Louis SanchezAugust 15th 2021, 2:47
Step 1 : How to Install and Configure fail2ban on ubuntu 20.04 apt-get install fail2ban After installation, the fail2ban daemon will start up and be configured to automatically start at boot-time. Configuring fail2ban is simply a matter of creating a configuration file. But, you shouldn't use its default config file...
4483

How to Tag commits in the repository (Git)

Reginald LynchAugust 15th 2021, 12:38
Before we start, you must go to the jgit directory, where we made the original clone for this post. We should start by tagging the commit that is ten commits behind origin/stable-2.3 and is not a merge. In order to find that commit, we will use the git log command....
4386

How to Push Git notes to a remote repository (Git)

Reginald LynchAugust 14th 2021, 11:54
Before we can push the notes from the shareNotes repository, we have to create a note to be pushed, as the notes we have now are all available on the remote repository. The remote repository in this case is the jgit directory: Step 1 : You have found a commit...
4712

How to Retrieve notes from the remote repository (Git)

Reginald LynchAugust 15th 2021, 12:06
we need another clone from the local clone we already have. This is to show the push and fetch mechanism of Git with git notes. Step 1 : Start by checking out the master branch: git checkout master Step 2 : Now, create a local branch of all the stable-3.1...
1611

How to Separate notes by category (Git)

Reginald LynchAugust 15th 2021, 12:11
As we saw in the previous example, we can add notes to the commits; however, in some cases, it makes sense to store the information sorted by categories. Notes are stored in refs/notes/commits, but we can add multiple references so that we can easily sort and list the various scopes...
1423

How to Add a Git note (Git)

Reginald LynchAugust 15th 2021, 5:35
We will add some extra information to the already released code. If we were doing it in the actual commits, we would see the commit hashes change. Step 1 : Before we start, we need a repository to work in; you can use the previous clone of jgit, you can...
5883

How to Add rebase with autosquash (Git)

Reginald LynchAugust 14th 2021, 10:59
We will create a branch from origin/master so we are ready to add commits to our fix. Let's start with something like this: git checkout -b readme_update_developer --track origin/master Step 1 : Start by echoing some text into README.md: echo "More information for developers" >> README.md Step 2 : This...
1991

How to Change the author of commits using a rebase (Git)

Reginald LynchAugust 15th 2021, 4:06
When starting to work on a new project, it is common to forget to set the author name and author email address for the specified project. Therefore, you will often have commits in your local branch that have been committed with the wrong username and/or email ID. Step 1 :...
8166

How to squash commits using an interactive rebase

Reginald LynchAugust 15th 2021, 4:02
To get started with this example, we need a new branch, namely rebaseExample3, which tracks origin/stable-3.1. Step 1 : Create the branch with the following command: git checkout -b rebaseExample3 --track origin/stable-3.1 Step 2 : Find a commit that is between origin/stable-3.1 and origin/stable-3.2, and list the commits in reverse...
11760