Skip to content

Instantly share code, notes, and snippets.

View pedes's full-sized avatar
:octocat:
I may be slow to respond.

Andres Cespedes Morales pedes

:octocat:
I may be slow to respond.
View GitHub Profile

Software Architecture Documentation Template

1. Introduction

  • Overview of the document
  • Purpose and scope of the architecture description
  • Definitions, acronyms, and abbreviations used in the document

2. Architectural Stakeholders and Concerns

  • Identification of stakeholders
  • Concerns of the stakeholders

Absolute Install & Configuration Guide for Dataweave in VS Code

This gist will guide you to troubleshoot and configure properly the Dataweave plugin in Visual Studio Code.

Updated on 9th March 2023, plugin version v1.2.15

Pre-Requisites

This dataweave plugin/extension depends on Java & Maven.

It's recommended to use Java 11 & Maven 3.8.4 - 3.8.8

ADR [number]: [Title]

Context

[Provide context for the decision, including any constraints or requirements that influenced the decision.]

Decision

[State the decision that was made, including any options that were considered and rejected.]

Cheatsheet for MuleSoft Flex Gateway

Install & Run the Container

docker pull mulesoft/flex-gateway:latest

Repository for docker image: https://hub.docker.com/r/mulesoft/flex-gateway/tags

docker run -d --rm -v $(pwd):/usr/local/share/mulesoft/flex-gateway/conf.d -p 8081:8081 mulesoft/flex-gateway

Kubernetes Commands Cheat Sheet (Runtime Fabric MuleSoft version)

This unofficial gist contains a list of commands typically ran for Kubernetes and Runtime Fabric MuleSoft.

Tools | Prerequisites

1. Install & Configure Java 8

  • Install Java using any of the methods available for your OS, e.g. download the binaries and place them in a local folder (recommended to use a simple path with no spaces), OR, follow any installation method for your OS.
  • https://adoptium.net/en-GB/temurin/archive/?version=8
  • Must Configure the JAVA_HOME environment variable in your OS,

Performance Benchmark test for Mule App over HTTPS

Specs

  • Simple PUT request with a JSON payload with 2 strings
  • 1 Flow
  • HTTPS with p12 Keystore using a RSA public certificate 2048 bits key
  • Running on MacBook Pro (16-inch, 2019), 2,4 GHz 8-Core Intel Core i9, 64 GB 2667 MHz DDR4
  • Java 8 openjdk version 1.8.0_312
  • Using ab apache benchmark, more details at https://httpd.apache.org/docs/2.4/programs/ab.html
  • data: ```{
@pedes
pedes / Linux-Commands-Cheatsheet.md
Last active February 17, 2023 12:15
Most common and useful Linux commands
Command Description
uname -a Shows the current kernel and OS information
sudo Executes the command as root (Administrator)
// Comment for DW, how to extract the original HTTP error using until succesful
{
statusCode: error.exception.cause.cause.cause.errorMessage.attributes.statusCode,
reason: error.exception.cause.cause.cause.errorMessage.attributes.reasonPhrase,
message: error.exception.cause.cause.cause.errorMessage.typedValue,
service: error.exception.cause.cause.cause.detailMessage
}
@medhatdawoud
medhatdawoud / rules-to-write-better-commit-messages.md
Last active October 17, 2024 19:09
This gist is the summary of a video on YouTube [in Arabic] you can watch from here: https://youtu.be/BTlL-LBDCSI

Rules to write a better commit message

These are my preferences for a good commit message, feel free to fork this gist and add your own standards, or add comment here to share yours with the community.

1. Include only the files related to the feature you are implementing:

  • Don't add any file that is not related to the main issue, you can make it in a separate commit.
  • Separating files that not related is important in the revert cases.
  • Revise the whole changes always before committing and make sure to mention each change you made in the message.

2. Commit subject should be concise and reflect the essence of the commit:

  • Imagine the commit as an Email to the owner or your team mates.
  • Subject in the first and main sentence of the commit, it should be concise and to the point.
  • It shouldn't exceed 50 char.
@ibraheem4
ibraheem4 / postgres-brew.md
Last active October 14, 2024 11:59 — forked from sgnl/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update