If you want to print the git user/singkey for a local repository in the prompt:
Edit the ~/.config/starship.toml file.
[custom.gituser]
style = "bold fg:220"
detect_folders = ['.git']
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) { |
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]" \ |
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 | |
* |