Skip to content

Instantly share code, notes, and snippets.

View thescouser89's full-sized avatar
🇲🇺
The world is turnin', I hope it don't turn away

Dustin Kut thescouser89

🇲🇺
The world is turnin', I hope it don't turn away
View GitHub Profile
File initialFile = new File("/home/dcheung/keycloak.json");
InputStream targetStream = new FileInputStream(initialFile);
KeycloakInstalled keycloakInstalled = new KeycloakInstalled(targetStream);
System.out.println("-- Login in --");
keycloakInstalled.loginCommandLine();
System.out.println("-- Getting token --");
System.out.println(keycloakInstalled.getTokenString());
// Output
for(i = 0; i < 1000000; i++) {
println("Hello world")
}