From 05e3babac97fb49d29b2bc6daf4d831a7c187af6 Mon Sep 17 00:00:00 2001 From: "Abner R.D." Date: Sun, 1 Sep 2024 12:44:04 +0200 Subject: [PATCH] Add new notes in repo --- .github/workflows/ci.yml | 4 +- .gitignore | 4 + docs/cloud/aws/aws.md | 0 docs/cloud/aws/services/awscli.md | 0 docs/cloud/azure/azure.md | 0 docs/cloud/azure/services/azurecli.md | 0 docs/cloud/azure/services/azuredevops.md | 0 docs/cloud/gcp/gcp.md | 0 docs/cloud/gcp/services/gcpcli.md | 0 docs/databases/mongodb.md | 0 docs/databases/mysql.md | 0 docs/databases/postgresql.md | 0 docs/development/javascript.md | 0 docs/development/nodejs.md | 0 docs/development/python.md | 0 docs/hardware/raspberrypi.md | 0 docs/index.md | 2 - docs/linux/alpine.md | 0 docs/linux/generic.md | 0 docs/linux/kali.md | 0 docs/linux/rocky.md | 0 docs/linux/ubuntu.md | 0 docs/monitoring/elk.md | 0 docs/monitoring/grafana.md | 0 docs/monitoring/prometheus.md | 0 docs/monitoring/zabbix.md | 0 docs/networking/dns.md | 0 docs/networking/firewall.md | 0 docs/networking/vpn.md | 0 docs/security/certificates.md | 0 docs/security/encryption.md | 0 docs/security/encryption/gnupg.md | 87 ++++++++ docs/security/encryption/openssl.md | 0 docs/security/password/passwordmanagers.md | 51 +++++ docs/security/passwords.md | 0 docs/technologies/ansible.md | 0 docs/technologies/docker.md | 0 docs/technologies/git.md | 0 docs/technologies/jenkins.md | 0 docs/technologies/kubernetes.md | 0 docs/technologies/packer.md | 0 docs/technologies/terraform.md | 0 docs/technologies/vagrant.md | 0 docs/windows/sqlserver.md | 0 docs/windows/windows10.md | 0 docs/windows/windowsserver.md | 0 mkdocs.yml | 233 ++++++++++++++++++--- 47 files changed, 352 insertions(+), 29 deletions(-) create mode 100644 docs/cloud/aws/aws.md create mode 100644 docs/cloud/aws/services/awscli.md create mode 100644 docs/cloud/azure/azure.md create mode 100644 docs/cloud/azure/services/azurecli.md create mode 100644 docs/cloud/azure/services/azuredevops.md create mode 100644 docs/cloud/gcp/gcp.md create mode 100644 docs/cloud/gcp/services/gcpcli.md create mode 100644 docs/databases/mongodb.md create mode 100644 docs/databases/mysql.md create mode 100644 docs/databases/postgresql.md create mode 100644 docs/development/javascript.md create mode 100644 docs/development/nodejs.md create mode 100644 docs/development/python.md create mode 100644 docs/hardware/raspberrypi.md create mode 100644 docs/linux/alpine.md create mode 100644 docs/linux/generic.md create mode 100644 docs/linux/kali.md create mode 100644 docs/linux/rocky.md create mode 100644 docs/linux/ubuntu.md create mode 100644 docs/monitoring/elk.md create mode 100644 docs/monitoring/grafana.md create mode 100644 docs/monitoring/prometheus.md create mode 100644 docs/monitoring/zabbix.md create mode 100644 docs/networking/dns.md create mode 100644 docs/networking/firewall.md create mode 100644 docs/networking/vpn.md create mode 100644 docs/security/certificates.md create mode 100644 docs/security/encryption.md create mode 100644 docs/security/encryption/gnupg.md create mode 100644 docs/security/encryption/openssl.md create mode 100644 docs/security/password/passwordmanagers.md create mode 100644 docs/security/passwords.md create mode 100644 docs/technologies/ansible.md create mode 100644 docs/technologies/docker.md create mode 100644 docs/technologies/git.md create mode 100644 docs/technologies/jenkins.md create mode 100644 docs/technologies/kubernetes.md create mode 100644 docs/technologies/packer.md create mode 100644 docs/technologies/terraform.md create mode 100644 docs/technologies/vagrant.md create mode 100644 docs/windows/sqlserver.md create mode 100644 docs/windows/windows10.md create mode 100644 docs/windows/windowsserver.md diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 28b2194..f28fabc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,11 +9,11 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-python@v4 with: python-version: 3.x - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: key: ${{ github.ref }} path: .cache diff --git a/.gitignore b/.gitignore index 82f9275..65ae285 100644 --- a/.gitignore +++ b/.gitignore @@ -160,3 +160,7 @@ cython_debug/ # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ + +# File backups +*-bkp.* + diff --git a/docs/cloud/aws/aws.md b/docs/cloud/aws/aws.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/cloud/aws/services/awscli.md b/docs/cloud/aws/services/awscli.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/cloud/azure/azure.md b/docs/cloud/azure/azure.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/cloud/azure/services/azurecli.md b/docs/cloud/azure/services/azurecli.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/cloud/azure/services/azuredevops.md b/docs/cloud/azure/services/azuredevops.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/cloud/gcp/gcp.md b/docs/cloud/gcp/gcp.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/cloud/gcp/services/gcpcli.md b/docs/cloud/gcp/services/gcpcli.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/databases/mongodb.md b/docs/databases/mongodb.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/databases/mysql.md b/docs/databases/mysql.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/databases/postgresql.md b/docs/databases/postgresql.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/development/javascript.md b/docs/development/javascript.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/development/nodejs.md b/docs/development/nodejs.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/development/python.md b/docs/development/python.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/hardware/raspberrypi.md b/docs/hardware/raspberrypi.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/index.md b/docs/index.md index c435ee9..0ece2e1 100644 --- a/docs/index.md +++ b/docs/index.md @@ -3,5 +3,3 @@ ## Under Construction - - diff --git a/docs/linux/alpine.md b/docs/linux/alpine.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/linux/generic.md b/docs/linux/generic.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/linux/kali.md b/docs/linux/kali.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/linux/rocky.md b/docs/linux/rocky.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/linux/ubuntu.md b/docs/linux/ubuntu.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/monitoring/elk.md b/docs/monitoring/elk.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/monitoring/grafana.md b/docs/monitoring/grafana.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/monitoring/prometheus.md b/docs/monitoring/prometheus.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/monitoring/zabbix.md b/docs/monitoring/zabbix.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/networking/dns.md b/docs/networking/dns.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/networking/firewall.md b/docs/networking/firewall.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/networking/vpn.md b/docs/networking/vpn.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/security/certificates.md b/docs/security/certificates.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/security/encryption.md b/docs/security/encryption.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/security/encryption/gnupg.md b/docs/security/encryption/gnupg.md new file mode 100644 index 0000000..9e1b8d5 --- /dev/null +++ b/docs/security/encryption/gnupg.md @@ -0,0 +1,87 @@ +# GNUPGP + +A GPG certificate allows us to encrypt email messages, encrypt files, and authenticate code in git repositories, as well as being able to use it with Pass to have a local password manager. + + +#### Create keys GPG +``` +gpg --full-generate-key +``` + +#### View GPG keys +``` +gpg --list-key +``` + +List keys GPG install + +Short format +``` +gpg --keyid-format short --list-keys +``` + +Long format +``` +gpg --keyid-format long --list-keys +``` + +Other options +``` +gpg --list-secret-keys gpg +``` + +``` +gpg --fingerprint / +``` + +#### Delete GPG keys + +Delete public gpg +``` +gpg --delete-key +``` + +Delete private gpg +``` +gpg --delete-secret-key +``` + + +#### Export GPG Keys + +Export public key +``` +gpg --export -a / +``` + +!!! warning + Store the private key in a safe place and with a strong password + +Export private key +``` +gpg --export-secret-key -a / +``` + +Export Revoke key +``` +gpg --gen-revoke / +``` + +#### Import GPG keys +Import public and private key +``` +gpg --import +``` + +#### Renew subkeys + +``` +gpg --edit-key / + +gpg>key [ID-subkeys] + +gpg> expire + +gpg>save +``` + diff --git a/docs/security/encryption/openssl.md b/docs/security/encryption/openssl.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/security/password/passwordmanagers.md b/docs/security/password/passwordmanagers.md new file mode 100644 index 0000000..44d75bb --- /dev/null +++ b/docs/security/password/passwordmanagers.md @@ -0,0 +1,51 @@ +# Pass + +Password management should be simple and follow Unix philosophy. With Pass, each password lives inside of a gpg encrypted file whose filename is the title of the website or resource that requires the password. +These encrypted files may be organized into meaningful folder hierarchies, copied from computer to computer, and, in general, manipulated using standard command line file management utilities. +Pass is a simple password manager for the command line. + + +Pass is a shell script that makes use of existing tools like GnuPG, tree and Git. + +!!! note + Before configuring Pass you need to have a GPG certificate to encrypt the credentials. + +To get started with Pass, follow these steps: + + +#### Install +1. Install Pass: You can install Pass by running the following command in your terminal: + ``` + sudo apt-get install pass + ``` + +2. Generate a GPG key pair: If you don't have a GPG key pair yet, you can generate one by running the following command: + ``` + gpg --full-generate-key + ``` + +3. Initialize Pass: Once you have a GPG key pair, you can initialize Pass by running the following command: + ``` + pass init + ``` + +4. Add a password: To add a password, use the following command: + ``` + pass insert + ``` + + This will prompt you to enter the password for the website or resource. Pass will then encrypt and store the password in a file. + +5. Retrieve a password: To retrieve a password, use the following command: + ``` + pass show + ``` + + This will display the decrypted password on the command line. + +Remember to always keep your GPG key pair secure and backup your Pass password store regularly. + + + + + diff --git a/docs/security/passwords.md b/docs/security/passwords.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/technologies/ansible.md b/docs/technologies/ansible.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/technologies/docker.md b/docs/technologies/docker.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/technologies/git.md b/docs/technologies/git.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/technologies/jenkins.md b/docs/technologies/jenkins.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/technologies/kubernetes.md b/docs/technologies/kubernetes.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/technologies/packer.md b/docs/technologies/packer.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/technologies/terraform.md b/docs/technologies/terraform.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/technologies/vagrant.md b/docs/technologies/vagrant.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/windows/sqlserver.md b/docs/windows/sqlserver.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/windows/windows10.md b/docs/windows/windows10.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/windows/windowsserver.md b/docs/windows/windowsserver.md new file mode 100644 index 0000000..e69de29 diff --git a/mkdocs.yml b/mkdocs.yml index 9cb932c..35b9cc0 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,44 +1,97 @@ +# Project information site_name: Notes from an Ingeniebrio -repo_url: https://github.com/arodriguezd/notes +site_url: https://notes.ingeniebrio.net +site_author: Abner Rodriguez +site_description: >- + Notes from an Ingeniebrio is a collection of notes, tutorials, and guides + + +# Repository repo_name: arodriguezd/notes +repo_url: https://github.com/arodriguezd/notes + + +# Copyright +copyright: | + Copyright © 2024 Abner Rodriguez | + Change cookie settings + + +# Configuration theme: name: material - icon: - logo: material/library - favicon: assets/images/favicon.png - font: - text: Roboto - code: Roboto Mono features: + - announce.dismiss + - content.code.annotate + - content.code.copy + # - content.code.select + # - content.footnote.tooltips + - content.tabs.link + - content.tooltips + # - header.autohide + - navigation.expand + - navigation.footer + - navigation.indexes + - navigation.instant + # - navigation.instant.prefetch + # - navigation.instant.progress + # - navigation.prune + - navigation.sections - navigation.tabs - - language: en - - - icon: - repo: fontawesome/brands/github + # - navigation.tabs.sticky + - navigation.top + - navigation.tracking + - search.highlight + #- search.share + - search.suggest + - toc.follow + - toc.integrate palette: - - scheme: default + - media: "(prefers-color-scheme)" toggle: - icon: material/toggle-switch-off-outline - name: Switch to dark mode + icon: material/link + name: Switch to light mode + - media: "(prefers-color-scheme: light)" + scheme: default primary: indigo accent: indigo - - - scheme: slate toggle: icon: material/toggle-switch - name: Switch to light mode - primary: teal - accent: green + name: Switch to dark mode + - media: "(prefers-color-scheme: dark)" + scheme: slate + primary: black + accent: indigo + toggle: + icon: material/toggle-switch-off + name: Switch to system preference + + font: + text: Roboto + code: Roboto Mono + favicon: assets/images/favicon.png + icon: + logo: material/library + + language: en + + icon: + repo: fontawesome/brands/github + +# Additional configuration extra: + status: + new: Recently added + deprecated: Deprecated social: - - icon: fontawesome/brands/github-alt + - icon: fontawesome/brands/github link: https://github.com/arodriguezd + + consent: @@ -53,6 +106,136 @@ extra: - reject -copyright: | - Copyright © 2024 Abner Rodriguez | - Change cookie settings + +# Extensions +markdown_extensions: + - abbr + - admonition + - attr_list + - def_list + - footnotes + - md_in_html + # - toc: + # permalink: true + - pymdownx.arithmatex: + generic: true + - pymdownx.betterem: + smart_enable: all + - pymdownx.caret + - pymdownx.details + - pymdownx.emoji: + emoji_generator: !!python/name:material.extensions.emoji.to_svg + emoji_index: !!python/name:material.extensions.emoji.twemoji + - pymdownx.highlight: + anchor_linenums: true + line_spans: __span + pygments_lang_class: true + - pymdownx.inlinehilite + - pymdownx.keys + - pymdownx.magiclink: + normalize_issue_symbols: true + repo_url_shorthand: true + user: squidfunk + repo: mkdocs-material + - pymdownx.mark + - pymdownx.smartsymbols + - pymdownx.snippets: + auto_append: + - includes/mkdocs.md + - pymdownx.superfences: + custom_fences: + - name: mermaid + class: mermaid + format: !!python/name:pymdownx.superfences.fence_code_format + - pymdownx.tabbed: + alternate_style: true + combine_header_slug: true + slugify: !!python/object/apply:pymdownx.slugs.slugify + kwds: + case: lower + - pymdownx.tasklist: + custom_checkbox: true + - pymdownx.tilde + +not_in_nav: | + /tutorials/**/*.md + + + + + +# Page tree +nav: + - Home: index.md + + - Linux: + - Generic: linux/generic.md + - Debian / Ubuntu: linux/ubuntu.md + - Kali: linux/kali.md + - Rocky: linux/rocky.md + - Alpine: linux/alpine.md + + - Windows: + - Windows 10: windows/windows10.md + - Windows Server: windows/windowsserver.md + - SQL Server: windows/sqlserver.md + + - Cloud: + - AWS: cloud/aws/aws.md + - AWS Services: + - AWS CLI: cloud/aws/services/awscli.md + + - Azure: cloud/azure/azure.md + - Azure Services: + - Azure CLI: cloud/azure/services/azurecli.md + - Azure DevOps: cloud/azure/services/azuredevops.md + - GCP: cloud/gcp/gcp.md + - GCP Services: + - GCP CLI: cloud/gcp/services/gcpcli.md + + + - Technologies: + - Docker: technologies/docker.md + - Git: technologies/git.md + - Kubernetes: technologies/kubernetes.md + - Jenkins: technologies/jenkins.md + - Terraform: technologies/terraform.md + - Ansible: technologies/ansible.md + - Packer: technologies/packer.md + - Vagrant: technologies/vagrant.md + + - Development: + - Python: development/python.md + - Javascript: development/javascript.md + - NodeJS: development/nodejs.md + + - Databases: + - MySQL: databases/mysql.md + - PostgreSQL: databases/postgresql.md + - MongoDB: databases/mongodb.md + + - Networking: + - DNS: networking/dns.md + - VPN: networking/vpn.md + - Firewall: networking/firewall.md + + - Security: + - Encryption: security/encryption.md + - Encryption Tools: + - GNUPG: security/encryption/gnupg.md + - OpenSSL: security/encryption/openssl.md + - Certificates: security/certificates.md + - Passwords: security/passwords.md + - Password Managers: + - Pass: security/password/passwordmanagers.md + + - Monitoring: + - Grafana: monitoring/grafana.md + - Prometheus: monitoring/prometheus.md + - ELK: monitoring/elk.md + - Zabbix: monitoring/zabbix.md + + - Hardware: + - Raspberry Pi: hardware/raspberrypi.md + + \ No newline at end of file