This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.machinezoo.noexception.Exceptions; | |
import lombok.extern.slf4j.Slf4j; | |
import org.apache.sshd.client.SshClient; | |
import org.apache.sshd.client.config.hosts.HostConfigEntry; | |
import org.apache.sshd.client.session.ClientSession; | |
import org.apache.sshd.common.config.keys.FilePasswordProvider; | |
import org.apache.sshd.common.util.net.SshdSocketAddress; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"__inputs": [ | |
{ | |
"name": "DS_PROMETHEUS", | |
"label": "Prometheus", | |
"description": "", | |
"type": "datasource", | |
"pluginId": "prometheus", | |
"pluginName": "Prometheus" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
version: "3.9" | |
services: | |
myapp: | |
image: marthym/myapp:latest | |
restart: unless-stopped | |
read_only: true | |
environment: | |
- SPRING_MAIN_BANNER-MODE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package fr.ght1pc9kc.baywatch.notify.infra; | |
import fr.ght1pc9kc.baywatch.notify.api.NotifyManager; | |
import fr.ght1pc9kc.baywatch.notify.api.model.BasicEvent; | |
import fr.ght1pc9kc.baywatch.notify.api.model.EventType; | |
import fr.ght1pc9kc.baywatch.notify.api.model.ReactiveEvent; | |
import fr.ght1pc9kc.baywatch.notify.api.model.ServerEventVisitor; | |
import fr.ght1pc9kc.baywatch.security.api.AuthenticationFacade; | |
import lombok.RequiredArgsConstructor; | |
import lombok.extern.slf4j.Slf4j; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package fr.ght1pc9kc.baywatch.notify.domain; | |
import com.github.benmanes.caffeine.cache.Cache; | |
import com.github.benmanes.caffeine.cache.Caffeine; | |
import com.github.f4b6a3.ulid.UlidCreator; | |
import fr.ght1pc9kc.baywatch.notify.api.NotifyManager; | |
import fr.ght1pc9kc.baywatch.notify.api.NotifyService; | |
import fr.ght1pc9kc.baywatch.notify.api.model.BasicEvent; | |
import fr.ght1pc9kc.baywatch.notify.api.model.EventType; | |
import fr.ght1pc9kc.baywatch.notify.api.model.ReactiveEvent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package fr.ght1pc9kc.baywatch; | |
import lombok.AllArgsConstructor; | |
import lombok.Value; | |
import org.junit.jupiter.api.Test; | |
import reactor.core.publisher.Flux; | |
import reactor.core.publisher.Sinks; | |
import reactor.test.StepVerifier; | |
import java.util.List; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
#/ Usage: ./backup-dir.sh "gpg-passphrase" "backup-directory" | |
#/ Description: Compress, crypt and upload each directory to HubiC | |
#/ Examples: ./backup-dir.sh "xxxxx" "~/photos" | |
#/ Options: | |
#/ --help: Display this help message | |
usage() { grep '^#/' "$0" | cut -c4- ; exit 0 ; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
#/ Usage: git-repos-update-all.sh | |
#/ Version: 2.0 | |
#/ Description: Find all git repository from `~/` and update them in multi-thread mode. | |
#/ Options: | |
#/ --help: Display this help message | |
function usage() { grep '^#/' "$0" | cut -c4- ; exit 0 ; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
$|=1; | |
my %url; | |
# read config file | |
open CONF, $ARGV[0] or die "Error opening $ARGV[0]: $!"; | |
while (<CONF>) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db = new TestGraphDatabaseFactory().newImpermanentDatabase(); | |
boolean available = db.isAvailable(5000); | |
assert available; | |
int start = -1; | |
Random random = new Random(); | |
while (start != 0) { | |
port = RANDOM_PORTS_LOWER_BOUND + random.nextInt(RANDOM_PORTS_COUNT); | |
try { |
NewerOlder