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']
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 | |
* |
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]" \ |
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) { |
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 |
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) { |
#!/bin/bash | |
sudo apt update -y \ | |
&& sudo apt upgrade -y | |
sudo apt install \ | |
wget \ | |
screen \ | |
default-jdk \ | |
nmap |
package main | |
import ( | |
"errors" | |
"fmt" | |
"net" | |
"strconv" | |
) | |
const ( |
I hereby claim:
To claim this, I am signing this object:
$('td:contains("mappyfactory@map...")').each(function(e) { $($(this).prev('td').find('input')[0]).attr('checked','checked') } ) |