Skip to content

Instantly share code, notes, and snippets.

View DaGeRe's full-sized avatar

DaGeRe DaGeRe

View GitHub Profile
wget https://archive.apache.org/dist/tomcat/tomcat-6/v6.0.9/bin/apache-tomcat-6.0.9.tar.gz
wget https://www-eu.apache.org/dist/tomcat/tomcat-9/v9.0.16/bin/apache-tomcat-9.0.16.tar.gz
tar -xvf apache-tomcat-6.0.9.tar.gz
tar -xvf apache-tomcat-9.0.16.tar.gz
rm apache-tomcat-9.0.16/webapps/ROOT/* -rf
cp -r apache-tomcat-6.0.9/webapps/ROOT/* apache-tomcat-9.0.16/webapps/ROOT/
path=$(pwd)
for tomcat in "apache-tomcat-9.0.16" "apache-tomcat-6.0.9"
@DaGeRe
DaGeRe / gist:aac2953fad76f2a33589028321f5b9aa
Created March 28, 2021 20:33
Peass installation pipeline
pipeline {
agent any
stages {
stage('checkout') {
steps{
dir('kopeme') {
git branch: 'develop', url: 'https://github.com/DaGeRe/KoPeMe.git'
}
@DaGeRe
DaGeRe / UncompilableComparable.java
Created June 10, 2021 11:00
Compiling class in Java 11, but not in Java 8
/**
* Compilation fails in Java 8 because "UncompilableComparable.java:[16,10] variable entry might not have been initialized", but works in Java 11
*/
public class UncompilableComparable implements Comparable<UncompilableComparable> {
private Comparator<UncompilableComparable> comparator = Comparator.comparingInt(entry -> System.identityHashCode(entry));
private final int typ;
public UncompilableComparable(final int typ) {
@DaGeRe
DaGeRe / CheckerSolver.java
Last active February 26, 2023 18:20
Solves the checkers problem (how to place n queens in an n x n field), which requires backtracking (and is NP-complete)
package checkers;
import java.util.Stack;
class Solution {
final int row, col;
public Solution(int row, int col) {
this.row = row;
this.col = col;
@DaGeRe
DaGeRe / KiekerDemoCLT.md
Last active September 4, 2024 11:34
Description of a Kieker demo using the TeaStore for the Chemnitzer Linuxtage

This little tutorial defines how to reproduce the Kieker demo for the TeaStore that was presented for the Chemnitzer Linuxtage. It shows how the architecture can be restructed and how a regression can be spotted.

Prerequisites

Please make sure you install the following tools:

  • Make sure you got JDK 11 installed and $JAVA_HOME set correctly.
  • Make sure you got JMeter installed and $JMETER_HOME pointing to its folder.
  • Make sure you got Kieker (https://github.com/kieker-monitoring/kieker) downloaded (e.g. git clone https://github.com/kieker-monitoring/kieker.git) and built via ./gradlew assemble -x test -x check -x apidoc (we use the current 2.0.0-SNAPSHOT - please file an issue if you have a problem with this steps in a newer version). Set $KIEKER_HOME to the root folder of your built Kieker.
  • My fork of the TeaStore: https://github.com/DaGeRe/TeaStore (git clone https://github.com/DaGeRe/TeaStore.git)
  • GraphViz (For Ubuntu: sudo apt install graphviz)
  • docker (For Ubuntu: `sudo apt insta
start=$(pwd)
# Clone and install DiSL
git clone https://gitlab.ow2.org/disl/disl.git
cd disl
ant
mvn install:install-file -Dfile=output/lib/disl-server.jar -DgroupId=ch.usi.dag -DartifactId=disl -Dversion=1.0-SNAPSHOT -Dpackaging=jar
export DISL_HOME=$(pwd)
# Clone and install Kieker with the DiSL branch

Experiment 1: Examination of different $RECURSION_DEPTH and $TOTAL_NUM_OF_CALLS

The following steps are necessary for measurement:

git clone https://github.com/kieker-monitoring/moobench.git
cd moobench
git checkout binaryNoLoggingExamination-experiment-1
./setup.sh
cd frameworks/Kieker-java
@DaGeRe
DaGeRe / runDiSLExperiment.sh
Created September 11, 2023 09:13
Checks out different MooBench branches and runs the variants
if [ -z "${DISL_HOME}" ]; then
echo "\$DISL_HOME needs to be defined."
exit 1
fi
echo "======="
echo "SI"
git checkout optimization-sourceInstrumentation
./setup.sh &> setup_si.txt
@DaGeRe
DaGeRe / KiekerDemoExplorViz.md
Last active November 7, 2024 13:14
Description of a Kieker - ExplorViz Demo using the TeaStore for SSP

Prerequisites

Please make sure you install the following tools:

  • Make sure you got JDK 11 or above installed and $JAVA_HOME set correctly.
  • Make sure you got JMeter installed and $JMETER_HOME pointing to its folder.
  • Make sure you got Kieker (https://github.com/kieker-monitoring/kieker) downloaded (e.g. git clone https://github.com/kieker-monitoring/kieker.git) and built via ./gradlew assemble -x test -x check -x apidoc (we use the current 2.0.0-SNAPSHOT - please file an issue if you have a problem with this steps in a newer version). Set $KIEKER_HOME to the root folder of your built Kieker.
  • My fork of the TeaStore: https://github.com/DaGeRe/TeaStore (git clone --branch kieker-debug https://github.com/DaGeRe/TeaStore.git) In the forks folder:
    • Deactivate the FileWriter: `sed -i "s/kieker.monitoring.writer=kieker.monitoring.writer.filesystem.FileWriter/#kieker.monitoring.writer=kieker.monitoring.writer.filesystem.FileWriter/g" utilities/tools.descartes.teastore.dockerbase/kieker.monitor
@DaGeRe
DaGeRe / getAll.sh
Created August 8, 2024 09:20
my-company build skript
#!/bin/bash
# This script aims for cloning all my-company projects (https://ivans-innovation-lab.github.io/projects/) and building them
set -e
for project in my-company-common my-company-project-domain my-company-team-domain my-company-blog-materialized-view my-company-project-materialized-view my-company-team-materialized-view
do
if [ ! -d $project ]
then