Skip to content

Instantly share code, notes, and snippets.

View uxjp's full-sized avatar
🛠️
making it work

JP uxjp

🛠️
making it work
View GitHub Profile
@uxjp
uxjp / MongoDB.md
Created June 20, 2023 19:13 — forked from royz/MongoDB.md
MongoDB - install, enable authentication & remote access on Ubuntu 20.04
View MongoDB.md

Install MongoDB 5.x

Source: MongoDB Docs

1. Import the public key used by the package management system

wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -

2. Create a list file for MongoDB

@uxjp
uxjp / 001-README.md
Created August 8, 2022 11:35 — forked from leandronsp/001-README.md
OOP in Bash script
View 001-README.md

OOP in Bash script

Wait, what?

Inspired by this awesome article.

Prelude about OOP

According to wikipedia, OOP is a programming paradigm or technique based on the concept of "objects". The object structure contain data and behaviour.

Data is the object's state, which should be isolated and must be private.