# -- check exist kubernetes
sudo kubeadm reset -f
sudo systemctl stop kubelet
sudo systemctl stop cri-o
sudo apt-mark unhold kubeadm kubelet kubectl cri-o || true
sudo apt remove -y kubeadm kubelet kubectl cri-o
sudo apt autoremove -y
sudo rm -rf /etc/cni/net.d /var/lib/cni /var/lib/kubelet /etc/kubernetes ~/.kube
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
| KAFKA_BROKER=localhost:9092 | |
| KAFKA_TOPIC=email-notifications |
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
| # https://docs.openwebui.com/getting-started/env-configuration/ | |
| # find-best-llm: https://deepeval.com/docs/getting-started-llm-arena | |
| # look https://docs.openwebui.com/getting-started/env-configuration/#thread_pool_size | |
| ENABLE_PERSISTENT_CONFIG=False | |
| WEBUI_URL=http://localhost:3000 | |
| ENV="dev|prod" | |
| WEBUI_NAME="Open WebUI" | |
| ENABLE_API_KEYS=True |
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
| curl -sLS https://get.arkade.dev | sudo sh | |
| arkade system install firecracker | |
| arkade system install go --version 1.24.9 | |
| echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc | |
| git clone https://github.com/alperreha/mergen-fire.git | |
| cd mergen-fire |
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 main | |
| import ( | |
| "context" | |
| "github.com/shiroyk/ski" | |
| "github.com/shiroyk/ski/js" | |
| _ "github.com/shiroyk/ski/modules/http" | |
| ) |
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 | |
| # IF THIS FAILS then you can try to change the URL= further down from specific to the latest release | |
| # https://gvisor.dev/docs/user_guide/install | |
| # gvisor | |
| sudo apt-get update && \ | |
| sudo apt-get install -y \ | |
| apt-transport-https \ | |
| ca-certificates \ |
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
| #define _GNU_SOURCE | |
| #include <stdio.h> | |
| #include <unistd.h> | |
| #include <sys/reboot.h> | |
| #include <linux/reboot.h> | |
| #include <sys/syscall.h> | |
| int main() { | |
| const char *msg = | |
| "Hey! I already woke up and I am saying hello to you... and I am shutting down now.\n"; |
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
| version: '3.8' | |
| services: | |
| # postgresql service - `psql -h localhost -U user -d postgres` | |
| postgresqlapp: | |
| # Defualt Postgres Image - image: postgres:15.2-alpine | |
| # image: pgvector/pgvector:pg15-bookworm | |
| image: postgres:15.2-alpine | |
| networks: | |
| - aifnnet |
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
| direction: down | |
| user: Client { | |
| shape: person | |
| style.font-size: 20 | |
| } | |
| route: Openshift Router { | |
| icon: https://raw.githubusercontent.com/gilbarbara/logos/master/logos/openshift.svg | |
| shape: rectangle |
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
| -- Connect to PostgreSQL and create the database | |
| CREATE DATABASE logsdb; | |
| \c logsdb; | |
| -- Create schema 'app' in the database | |
| CREATE SCHEMA app; | |
| CREATE USER loguser WITH PASSWORD 'loguserpass' NOINHERIT NOCREATEDB NOCREATEROLE NOREPLICATION; | |
| GRANT USAGE ON SCHEMA app TO loguser; | |
| GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA app TO loguser; |
NewerOlder