Get SSL Certificate from Server (Site URL) – Export & Download

Someday you may need to get the SSL certificate of a website and save it locally.

For example, you could get an error saying that you can’t clone a Git repository due to a self-signed certificate and to resolve this issue you would need to download the SSL certificate and make it trusted by your Git client.

In the following article i am showing how to export the SSL certificate from a server (site URL) using Google Chrome, Mozilla Firefox and Internet Explorer browsers as well as how to get SSL certificate from the command line, using openssl command. (more…)

Dropbox Encryption: Encrypted Cloud Storage – Linux – EncFS

Almost all cloud storage services encrypt customers data, however this doesn’t mean that the privacy of this data is protected enough.

The most of those services also manage the keys used for encryption, that means that your encrypted folder can be decrypted not only by you.

In this article i will show make a private encrypted cloud storage solution based on Dropbox with on-the-fly encryption.

I will show how to encrypt files and folders in Dropbox by yourself using EncFS for Linux. (more…)

MongoDB: Auth – Enable Authentication – Create Admin/Root User

By default, authentication is disabled in MongoDB, but this is not so critical as, out of the box, MongoDB is listening on localhost only.

If you are going to allow remote connections to MongoDB, then it is definitely needed to enable authentication.

In the following article i will show how to enable authentication in MongoDB and how to create admin and root users. (more…)

MongoDB: Create Database and User – Mongo Shell

In MongoDB, in the opposite to traditional SQL databases, there is no need, as well as possibility, to create an empty database.

To create a new database in MongoDB, it needs to insert at least one document into it.

In this article i will show how to create a new database and a user for this database in MongoDB from the command line, using mongo shell.

I will also show how to list collections, get all documents and delete a MongoBD database. (more…)

Git – Checkout Previous Branch

While working with Git, it’s very common to move back and forth between two branches.

If you want to checkout the previous branch you was working on, there is no need to type the name of this branch each time.

In this short note i’ll show the easy way to switch between two branches in Git. (more…)

Git – Diff Between Branches

When you are working with multiple branches in Git, it’s important to be able to compare them and contrast the differences.

In this short note i will show how to compare two branches in Git using the git diff command.

I will show how to git diff between any two branches, e.g. current branch and master or git diff between master and staging and how to list only files that are different between two branches (without changes themselves). (more…)