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
1. Make it hard for hackers to make a profit off of attacking you by
increasing their costs and decreasing their returns.
2. Cybersecurity is a constant effort, so keep up-to-date with patches,
strategies, and tools to stay ahead of attackers.
3. Your users won't use security measures if they get in the way of
their work, so make sure your solutions are both secure and easy to
use.
4. Hackers will use any means possible to get into your system, so you
need to make all entry points as difficult and unappealing as
possible.

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,
{
"keys" : ["type", "source", "openFlightsAirportId"]
}

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)

maven-survival-guide

Code and walkthrough for the talk "Apache Maven survival guide “Bring it on! -Mode” #no-external-tools #only-standard-plugins"

Walkthrough

Level 0: verify the project

mvn verify

Level 1: add some tests and make them run

// 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
}
# Steps for executing the deployment against Cloudhub Anypoint Platform
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository/>
<interactiveMode/>
<offline/>
<pluginGroups/>
<servers/>
<mirrors/>
<proxies>
<proxy>