kubectl -n argocd get secret argocd-initial-admin-secret \
-o jsonpath="{.data.password}" | base64 -d; echo
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 fastapi import FastAPI, WebSocket, UploadFile, File | |
import whisper | |
import os | |
import time | |
app = FastAPI() | |
model = whisper.load_model("large", device="cpu") | |
UPLOAD_DIR = "uploads" | |
OUTPUT_DIR = "output" |
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
#!/bin/bash | |
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC='--flannel-backend=none --disable-network-policy --disable=traefik' sh - | |
echo 'alias kubectl="sudo k3s kubectl"' >> ~/.bashrc | |
echo 'alias k="kubectl"' >> ~/.bashrc | |
echo "source <(kubectl completion bash)" >> ~/.bashrc | |
echo "complete -o default -F __start_kubectl k" >> ~/.bashrc | |
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash |
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
services: | |
ollama: | |
image: ollama/ollama:latest | |
container_name: ollama | |
restart: unless-stopped | |
ports: | |
- "11434:11434" | |
volumes: | |
- ollama_data:/root/.ollama | |
command: ["serve"] |
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
services: | |
prometheus: | |
image: prom/prometheus | |
container_name: prometheus | |
volumes: | |
- ./prometheus.yml:/etc/prometheus/prometheus.yml | |
environment: | |
- TZ=Asia/Bangkok | |
networks: | |
- net |
sudo docker compose down -v
vim harbor.yml
sudo prepare
sudo docker compose up -d
https://goharbor.io/docs/2.0.0/install-config/reconfigure-manage-lifecycle/
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
if ! [[ "18.04 20.04 22.04 23.04 24.04" == *"$(lsb_release -rs)"* ]]; | |
then | |
echo "Ubuntu $(lsb_release -rs) is not currently supported."; | |
exit; | |
fi | |
# Add the signature to trust the Microsoft repo | |
# For Ubuntu versions < 24.04 | |
# curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc | |
# For Ubuntu versions >= 24.04 |
NewerOlder