I hereby claim:
- I am dhsrocha on github.
- I am dhsrocha (https://keybase.io/dhsrocha) on keybase.
- I have a public key ASDuXX8Db-1BF6Ch6dVUxLNxz0pQMeLXovKmjuVC6KDCzgo
To claim this, I am signing this object:
import java.time.LocalDateTime; | |
import java.time.temporal.ChronoUnit; | |
import java.util.Map; | |
import java.util.Optional; | |
import java.util.Set; | |
import java.util.concurrent.ConcurrentHashMap; | |
import java.util.concurrent.locks.ReadWriteLock; | |
import java.util.concurrent.locks.ReentrantReadWriteLock; | |
import java.util.function.Supplier; | |
import java.util.stream.Collectors; |
package com.ludo.adapter.awt; | |
import java.awt.BorderLayout; | |
import java.awt.Dialog; | |
import java.awt.EventQueue; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.KeyEvent; | |
import java.beans.PropertyChangeEvent; | |
import java.beans.PropertyChangeListener; | |
import java.io.BufferedReader; |
#!/bin/sh | |
# rebase() - Rebase all branches from the specified source branch | |
# | |
# Usage: | |
# rebase <source-branch> | |
# | |
# Description: | |
# This function will check if git is on the PATH, and if the argument "$1" | |
# has been provided. If not, an error message will be printed and the |
import java.security.NoSuchAlgorithmException; | |
import java.security.SecureRandom; | |
import java.security.spec.InvalidKeySpecException; | |
import java.util.Arrays; | |
import java.util.Random; | |
import javax.crypto.SecretKeyFactory; | |
import javax.crypto.spec.PBEKeySpec; | |
/** | |
* A utility class to hash passwords and check passwords vs hashed values. It uses a combination of |
deploy() { # Creates a local self-contained deployment cluster. | |
ping() { | |
until docker exec -it "$1" docker stats --no-stream > /dev/null | |
do sleep .5; done | |
} | |
# Cleanup | |
if docker swarm ca > /dev/null 2>&1; then docker swarm leave -f; fi | |
docker ps -aqf name="$(basename "$PWD")" | xargs docker rm -fv > /dev/null | |
# OpenSSL TODO Apply https://linuxhandbook.com/docker-remote-access/ |
import java.net.ServerSocket; | |
class PortUtil { | |
private PortUtil() {} | |
/** | |
* Recursively loops until finding a available TCP port, locks it, get | |
* its value and then releases it. | |
* |
package template; | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.nio.charset.StandardCharsets; | |
import java.util.concurrent.TimeUnit; | |
import java.util.stream.Collectors; | |
import lombok.NonNull; | |
import lombok.SneakyThrows; | |
import lombok.experimental.UtilityClass; |
I hereby claim:
To claim this, I am signing this object:
import io.swagger.v3.oas.models.PathItem.HttpMethod; | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
import java.util.stream.Collectors; | |
import lombok.NoArgsConstructor; | |
import lombok.SneakyThrows; | |
import lombok.extern.java.Log; | |
import lombok.val; |
#!/usr/bin/env sh | |
set -e | |
# @see https://gist.github.com/dhsrocha/ee88f54c2e913c59412817e210bd206b/edit | |
# ::: Global variables | |
readonly RC="$HOME/.bashrc" | |
readonly PROJ_NAME="${PWD##*/}" | |
readonly PROJ_VER="3.8.2" |