Skip to content

Instantly share code, notes, and snippets.

View dmarrazzo's full-sized avatar

Donato dmarrazzo

  • Red Hat
  • Roma, Italia
View GitHub Profile
@dmarrazzo
dmarrazzo / update.sh
Created March 12, 2021 09:27
mirror of upstream project documentation
#!/bin/bash
declare -a links=( "https://docs.jboss.org/drools/release/7.49.0.Final/drools-docs/html_single/index.html" \
"https://docs.optaplanner.org/7.49.0.Final/optaplanner-docs/html_single/index.html" \
"https://docs.jboss.org/jbpm/release/7.49.0.Final/jbpm-docs/html_single/" )
rm -rf docs*
for link in ${links[*]}; do
wget --mirror --convert-links --adjust-extension --page-requisites --no-parent $link
done
@dmarrazzo
dmarrazzo / mirror-rh-doc.md
Created March 12, 2021 09:29
How to mirror the rhpam doc

How to mirror the doc

Download the first page and extract the links:

curl https://access.redhat.com/documentation/en-us/red_hat_process_automation_manager/7.8/ | sed -n 's/.*href="\([^"]*html-single[^"]*\).*/\1/p' | awk '{print "https://access.redhat.com"$1}' > links.txt

Create the mirror site:

@dmarrazzo
dmarrazzo / Total Bonus.dmn
Last active February 9, 2023 11:58
Tutorial
<?xml version="1.0" encoding="UTF-8"?>
<dmn:definitions xmlns:dmn="http://www.omg.org/spec/DMN/20180521/MODEL/" xmlns="https://kiegroup.org/dmn/_1634073F-9433-44F1-B575-097FB410FEF2" xmlns:feel="http://www.omg.org/spec/DMN/20180521/FEEL/" xmlns:kie="http://www.drools.org/kie/dmn/1.2" xmlns:dmndi="http://www.omg.org/spec/DMN/20180521/DMNDI/" xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" id="_D5CE1E36-CAA0-47FC-B04F-069AD65FC89E" name="Total Bonus" typeLanguage="http://www.omg.org/spec/DMN/20180521/FEEL/" namespace="https://kiegroup.org/dmn/_1634073F-9433-44F1-B575-097FB410FEF2">
<dmn:extensionElements/>
<dmn:itemDefinition id="_BDA79392-0FB5-4C68-AA46-83165F211051" name="tStringList" isCollection="true">
<dmn:typeRef>string</dmn:typeRef>
</dmn:itemDefinition>
<dmn:inputData id="_C15FB2B5-BF6B-43B9-B919-5AEBF6D1BC33" name="Products">
<dmn:extensionElements/>
<dmn:variable id="_DE6FB57C-10AF-4842-A748-A848132D5F0C" name="Products" type
@dmarrazzo
dmarrazzo / MAD_Roadshow_Kafka_hands_on_experience.md
Last active July 3, 2023 17:50
MAD Roadshow Kafka hands on experience

Project

  1. Open the OpenShift Console
  2. From project drop down list, select Create Project
  3. In the name field type userX-kafka, then Create

Create Kafka custom resource

  1. Select the + icon in the top bar (top right)
  2. Copy the following yaml file: