This file contains hidden or 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 dev.niksta.nonblockinghttpskotlinspringboot | |
import io.ktor.client.* | |
import io.ktor.client.engine.cio.* | |
import io.ktor.client.request.* | |
import io.ktor.client.statement.* | |
import kotlinx.coroutines.Dispatchers | |
import kotlinx.coroutines.async | |
import kotlinx.coroutines.delay | |
import kotlinx.coroutines.withContext |
This file contains hidden or 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
#!/bin/bash | |
# Docker Buildx Multi-Architecture Script | |
# | |
# Automates the creation of multi-architecture Docker images. | |
# Utilizes OCI Image Format Specification for metadata setup. | |
# Supports DockerHub and GitHub Container Registry. | |
# | |
# Author: Nikola Stanković <nikola.stankovic@viascom.email> | |
# Version: 1.0.0 | |
# Created on: 01.01.2024 |
This file contains hidden or 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
❯ lsof -i :80 | |
❯ certbot certonly --standalone -d niksta.viascom.? | |
Saving debug log to /var/log/letsencrypt/letsencrypt.log | |
Requesting a certificate for niksta.viascom.? | |
Successfully received certificate. | |
Certificate is saved at: /etc/letsencrypt/live/niksta.viascom.?/fullchain.pem | |
Key is saved at: /etc/letsencrypt/live/niksta.viascom.?/privkey.pem |
This file contains hidden or 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
❯ openssl req -newkey rsa:2048 -nodes -keyout private-key.pem -x509 -days 398 -out public-cert.pem | |
Generating a 2048 bit RSA private key | |
...................+++++ | |
.........................................................................................................+++++ | |
writing new private key to 'private-key.pem' | |
----- | |
You are about to be asked to enter information that will be incorporated | |
into your certificate request. | |
What you are about to enter is what is called a Distinguished Name or a DN. |
This file contains hidden or 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
server: | |
port: 8080 | |
ssl: | |
bundle: "server" | |
enabled-protocols: TLSv1.3 | |
spring: | |
ssl: | |
bundle: | |
jks: |
This file contains hidden or 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
server: | |
shutdown: "graceful" | |
spring: | |
lifecycle: | |
timeout-per-shutdown-phase: "45s" # Default is 30s |
This file contains hidden or 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
docker run \ | |
--rm \ | |
-v trivy-cache:/root/.cache/ \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
aquasec/trivy:latest \ | |
image viascom/alpine:3.17.3 |
This file contains hidden or 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
alias l='ls -CF' | |
alias la='ls -A' | |
alias ll='ls -alF' | |
alias lh='ls -lh' | |
source /etc/profile.d/bash_completion.sh |
This file contains hidden or 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
tzdata | |
bash | |
bash-completion | |
curl | |
openssl | |
ca-certificates | |
dumb-init | |
jq |
NewerOlder