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 mn | |
import java.nio.ByteBuffer | |
import java.nio.channels.SocketChannel | |
import java.security.cert.Certificate | |
import java.security.cert.CertificateException | |
import java.security.cert.X509Certificate | |
import javax.net.ssl.SSLContext | |
import javax.net.ssl.SSLEngine |
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 | |
### | |
### Inspired by https://newbedev.com/redirecting-pulseaudio-sink-to-a-virtual-source | |
### with help from https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules | |
### | |
MODULE_REGISTRY="modules.txt" | |
function load_module() { |
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 -eEuo pipefail | |
shopt -s inherit_errexit | |
trap "echo command failed 1>&2" ERR | |
repo_url="$1" | |
export DEPLOYMENT_TARGET_USERNAME="$2" | |
export DEPLOYMENT_TARGET_PASSWORD="$3" | |
shift 3 |
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
from dataclasses import dataclass | |
from inspect import get_annotations | |
@dataclass | |
class MySubData: | |
value: str | |
@dataclass | |
class MyData: | |
list_value: list[MySubData] |