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]" \ |
/* | |
Java 0day 1.7.0_10 decrypted source | |
Originaly placed on https://damagelab.org/index.php?showtopic=23719&st=0 | |
From Russia with love. | |
*/ | |
import java.lang.invoke.MethodHandle; | |
import java.lang.invoke.MethodHandles; | |
import java.lang.invoke.MethodType; | |
import java.security.AccessController; |
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 |
#!/bin/bash | |
sudo apt update -y \ | |
&& sudo apt upgrade -y | |
sudo apt install \ | |
wget \ | |
screen \ | |
default-jdk \ | |
nmap |
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) { |
package main | |
import ( | |
"errors" | |
"fmt" | |
"net" | |
"strconv" | |
) | |
const ( |
I hereby claim:
To claim this, I am signing this object: