docker exec -it my_keycloak sh -c \
"cp -rp /opt/keycloak/data/h2 /tmp ; \
/opt/keycloak/bin/kc.sh export --dir /opt/keycloak/data/import --realm MY_REALM \
--db dev-file \
--db-url 'jdbc:h2:file:/tmp/h2/keycloakdb;NON_KEYWORDS=VALUE'"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.djitz.sort; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Random; | |
/** | |
* Quick sort algorithm (simple) | |
* based on pseudo code on Wikipedia "Quick Sort" aricle | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For more explanation you can take a look on this article : https://dev.to/ulrich/simple-health-check-for-keycloak-259p | |
#!/bin/bash | |
login_access=$(curl -k -X POST \ | |
-H "Content-Type:application/x-www-form-urlencoded" \ | |
-d "grant_type=password" \ | |
-d "client_id=admin-cli" \ | |
-d "username=alive" \ | |
-d "password=[REDACTED]" \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Optional; | |
import java.util.function.Function; | |
import java.util.function.Predicate; | |
import static java.util.Optional.empty; | |
import static java.util.Optional.of; | |
public class PatternMatchingExample { | |
public static void main(String[] args) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM nginx:latest | |
WORKDIR /tmp | |
RUN apt-get update && apt-get install -y curl unzip && apt-get clean | |
RUN curl -fsSL -O https://cheatsheetseries.owasp.org/bundle.zip | |
RUN unzip bundle.zip && mv site/* /usr/share/nginx/html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tech.ingenico.ah; | |
import java.util.function.Function; | |
import java.util.stream.IntStream; | |
public class FizzBuzz { | |
public static final Function<Integer, Integer> MODULO_3 = v -> v % 3; | |
public static final Function<Integer, Integer> MODULO_5 = v -> v % 5; | |
public static void run(IntStream intStream) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt update -y \ | |
&& sudo apt upgrade -y | |
sudo apt install \ | |
wget \ | |
screen \ | |
default-jdk \ | |
nmap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"errors" | |
"fmt" | |
"net" | |
"strconv" | |
) | |
const ( |
I hereby claim:
- I am ulrich on github.
- I am ulrich (https://keybase.io/ulrich) on keybase.
- I have a public key whose fingerprint is 6727 271C 5710 1BC9 83F6 CEFC FA02 71C9 77DF 729A
To claim this, I am signing this object:
NewerOlder