Skip to content

Instantly share code, notes, and snippets.

View Ginxo's full-sized avatar
🏠
Working from home

Enrique Mingorance Cano Ginxo

🏠
Working from home
View GitHub Profile
# To create a new JenkinsFIle for one-off patch
# to create a new BC definition file with extra project-repositories file with gerrit platform
# To BC based on INPUT_BRANCH and new definition-file
# To push this change to gerrit
```
git checkout -b $NEW_BRANCH
git remote add upstream git@github.com:$STARTING_PROJECT.git
git cherry-pick $INPUT_HASH
git push origin $NEW_BRANCH
git show --name-only $INPUT_HASH
kiegroup/droolsjbpm-build-bootstrap
kiegroup/kie-soup
kiegroup/droolsjbpm-knowledge
kiegroup/drools
kiegroup/optaplanner
kiegroup/lienzo-core
kiegroup/lienzo-tests
kiegroup/appformer
kiegroup/kie-uberfire-extensions
kiegroup/jbpm
1. I use redux to handle states. sectionsShow specifically https://github.com/kiegroup/chain-status/blob/main/packages/webpage/src/service/layout.service.tsx#L43
2. Then section is only shown based on the state https://github.com/kiegroup/chain-status/blob/f891b11cfedfc8c10143a2c7f7c1d0afd5a7bc0f/packages/webpage/src/components/pullrequests/List.tsx#L21
3. and then the section is registered on redux machinery based on the callback from https://github.com/kiegroup/chain-status/blob/f891b11cfedfc8c10143a2c7f7c1d0afd5a7bc0f/packages/webpage/src/components/shared/MenuSelection.tsx#L29 whenever the section is shown based on an observer with some extra margins https://github.com/kiegroup/chain-status/blob/4ac20d86fcec9d6f94879bef6f3ad614527b03a2/packages/webpage/src/components/shared/MenuSelection.tsx#L86
/**
* This job is a workaround for the nightly-meta-pipeline (wich was disabled) and will be removed once the UMB messages are sent again<br>
* Instead UMB message a simple CRON job is applied.
*/
import org.kie.jenkins.jobdsl.Constants
def javadk=Constants.JDK_TOOL
def AGENT_LABEL="kie-rhel && kie-mem512m"
spring:
jackson:
serialization:
indent-output: true
datasource:
url: jdbc:mysql://localhost:3306/base
username: root
password: 1234
sql:
init:
# Gradle
# ------
.gradle
/build
# IDEA
# ----
.idea
.idea/
.shelf
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.sql.*;
import java.text.ParseException;
import java.text.SimpleDateFormat;
public class EjercicioJDBC3 {
public static void main(String... args) throws SQLException, IOException, ParseException {
import java.sql.*;
public class EjercicioJDBC2 {
public static void main(String... args) throws SQLException {
final String url = "jdbc:mysql://localhost:3306/base";
final String user = "root";
final String password = "1234";
Connection connection = DriverManager.getConnection(url, user, password);
System.out.println(String.format("Already Connected to %s", url));
import java.sql.*;
public class EjercicioJDBC {
public static void main(String... args) throws SQLException {
final String url = "jdbc:mysql://localhost:3306/base";
final String user = "root";
final String password = "1234";
Connection connection = DriverManager.getConnection(url, user, password);
System.out.println(String.format("Already Connected to %s", url));
import java.sql.*;
public class Ejercicio1 {
public static void main(String... args) throws SQLException {
final String url = "jdbc:mysql://localhost:3306/base";
final String user = "root";
final String password = "1234";
Connection connection = DriverManager.getConnection(url, user, password);
System.out.println(String.format("Already Connected to %s", url));