openbao.yml
---
apiVersion: v1
kind: Pod
metadata:
labels:
app: openbao
env: prod
name: openbao
| # Multi-stage build for a minimal image | |
| FROM golang:1.25-alpine AS builder | |
| WORKDIR /build | |
| # Copy source | |
| COPY main.go . | |
| # Build static binary | |
| RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -o server main.go |
| // Package main demonstrates object composition and encapsulation in Go. | |
| // It defines a Citizen type and a Student type that embeds Citizen, | |
| // providing getter and setter methods for each field. | |
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| // Citizen represents a person with basic personal identifiers. |
openbao.yml
---
apiVersion: v1
kind: Pod
metadata:
labels:
app: openbao
env: prod
name: openbao
// Function to fill textarea and click send button
function fillAndSend(message) {
// Select the textarea
const textarea = document.querySelector('textarea[placeholder="Chat with everyone"]');
// Fill the textarea with the message
if (textarea) {
textarea.value = message;
| import socket | |
| import os | |
| import json | |
| try: | |
| os.remove("/tmp/livestatus.sock") | |
| except OSError: | |
| pass | |
| s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) |