$ ssh-keygen -t ed25519 -C "[email protected]"
Generating public/private ed25519 key pair.
Enter file in which to save the key (/root/.ssh/id_ed25519):
Created directory '/root/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_ed25519
Your public key has been saved in /root/.ssh/id_ed25519.pub
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
| import java.net.http.*; | |
| import java.io.*; | |
| var httpClient = HttpClient.newHttpClient(); | |
| var httpProxyHost = System.getProperty("http.proxyHost"); | |
| var httpProxyPort = System.getProperty("http.proxyPort"); | |
| var httpsProxyHost = System.getProperty("https.proxyHost"); | |
| var httpsProxyPort = System.getProperty("https.proxyPort"); |
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
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| SCRIPT_DIR=$(python -c "import os, sys; print(os.path.dirname(os.path.realpath('${BASH_SOURCE[0]}')))") | |
| echo "Hi!" |
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
| from flask import Flask | |
| import requests | |
| import yaml | |
| app = Flask(__name__) | |
| def combine(a, b): | |
| a = dict(a) | |
| b = dict(b) |
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
| openapi: 3.0.0 | |
| info: | |
| title: Example | |
| version: 1.0.0 | |
| paths: | |
| /p: | |
| get: | |
| responses: | |
| '200': | |
| description: Get Person |
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
| # iOS: https://apps.apple.com/de/app/vlc-for-mobile/id650377962 | |
| # Usage | |
| # 1. Put into Scope (.bashrc or equivalent) | |
| # 2. Enable "Sharing via WiFi" in VLC | |
| # 3. $ upload2vlc 192.168.178.84 test.mp3 | |
| upload2vlc() { | |
| local UPLOAD_HOST="$1" | |
| local UPLOAD_FILE="$2" |
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
| public enum OAuth2GrantTypes { | |
| // See https://docs.spring.io/spring-security/site/docs/current/api/org/springframework/security/oauth2/core/AuthorizationGrantType.html | |
| AUTHORIZATION_CODE("authorization_code"), | |
| IMPLICIT("implicit"), | |
| PASSWORD("password"), | |
| CLIENT_CREDENTIALS("client_credentials"), | |
| REFRESH_TOKEN("refresh_token"); |
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 de.jonasgroeger; | |
| import org.junit.jupiter.api.Test; | |
| import org.springframework.scheduling.support.CronExpression; | |
| import java.time.LocalDateTime; | |
| import java.time.ZoneId; | |
| class SpringCronExpressionTester { |