Skip to content

Instantly share code, notes, and snippets.

Install Android SDK CLI Ubuntu 20.04 WSL2 (Work in Progress)

Install Java 8

sudo apt update

sudo apt install openjdk-8-jdk-headless
# Source: https://gist.github.com/838a3a716cd9eb3c1a539a8d404d2077
######################################
# Using Loki To Store And Query Logs #
######################################
##########################################################
# Installing Loki, Grafana, Prometheus, And The Demo App #
##########################################################
@bergmannjg
bergmannjg / rearct-native-app-in-wsl2.md
Last active May 27, 2025 01:54
Building a react native app in WSL2
@rafaeltuelho
rafaeltuelho / redhat-pam-dm-notes.md
Last active August 23, 2024 12:15
My Red Hat PAM/DM (jBPM/Drools) random notes

Generating new Projects using maven archetypes

jBPM project

Manually create business application In case you can’t use jBPM online service to generate the application you can manually create individual projects. jBPM provides maven archetypes that can be easily used to generate the application. In fact jBPM online service uses these archetypes behind the scenes to generate business application.

  • Business assets project archetype
org.kie:kie-kjar-archetype:7.46.0.Final
  • Service project archetype

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@xmeng1
xmeng1 / wsl2-network.ps1
Created July 14, 2019 06:50
WSL2 Port forwarding port to linux
$remoteport = bash.exe -c "ifconfig eth0 | grep 'inet '"
$found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}';
if( $found ){
$remoteport = $matches[0];
} else{
echo "The Script Exited, the ip address of WSL 2 cannot be found";
exit;
}
@bbalakriz
bbalakriz / CustomWIH.java
Created September 26, 2018 16:45
Custom Work Item Handler Impl
package com.bala.custom.wih;
import java.util.HashMap;
import java.util.Map;
import org.kie.api.runtime.process.WorkItem;
import org.kie.api.runtime.process.WorkItemHandler;
import org.kie.api.runtime.process.WorkItemManager;
public class CustomWIH implements WorkItemHandler {
@jjvillavicencio
jjvillavicencio / setup.sh
Last active June 2, 2025 12:00
Install Android SDK on Windows Bash (WSL)
cd /home/<user>/
sudo apt-get install unzip
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
unzip sdk-tools-linux-4333796.zip -d Android
rm sdk-tools-linux-4333796.zip
sudo apt-get install -y lib32z1 openjdk-8-jdk
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$PATH:$JAVA_HOME/bin
printf "\n\nexport JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64\nexport PATH=\$PATH:\$JAVA_HOME/bin" >> ~/.bashrc
cd Android/tools/bin
@DanLindeman
DanLindeman / docker-compose.yml
Last active June 13, 2023 23:55
Docker Compose for jbpm and kie server execution server
version: "3.4"
services:
jbpm:
image: jboss/jbpm-workbench-showcase
environment:
- "JAVA_OPTS=-Djava.net.preferIPv4Stack=true -Djava.net.preferIPv6Addresses=false"
ports:
- "8080:8080"
- "8001:8001"
@mbbx6spp
mbbx6spp / ALTERNATIVES.adoc
Last active January 7, 2025 16:25
Super quick list of alternatives to Jira and/or Confluence, Stash, Crucible, etc.