.config/opencode/config.json
{
"$schema": "https://opencode.ai/config.json",
"default_agent": "build",| #!/usr/bin/env bash | |
| set -euo pipefail | |
| if [[ "${EUID}" -ne 0 ]]; then | |
| echo "Please run as root or use sudo." | |
| exit 1 | |
| fi | |
| # 🔹 Prompt input | |
| read -rp "Enter username: " USERNAME |
| #!/usr/bin/env bash | |
| set -e | |
| # ========================= | |
| # Prompt Input | |
| # ========================= | |
| read -p "MinIO Endpoint (default: http://localhost:9000): " MINIO_ENDPOINT | |
| MINIO_ENDPOINT=${MINIO_ENDPOINT:-http://localhost:9000} |
| { | |
| "$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json", | |
| "runtime": { | |
| "version": "LuaJIT" | |
| }, | |
| "diagnostics": { | |
| "globals": ["vim"] | |
| }, | |
| "workspace": { | |
| "library": ["$VIMRUNTIME/lua", "$VIMRUNTIME/lua/vim/lsp"], |
| local opt = vim.opt | |
| local g = vim.g | |
| local keymap = vim.keymap | |
| -- Basic editor settings | |
| opt.expandtab = true -- Use spaces instead of tabs | |
| opt.tabstop = 2 -- Number of spaces that a <Tab> in the file counts for | |
| opt.softtabstop = 2 -- Number of spaces that a <Tab> counts for while performing editing operations | |
| opt.shiftwidth = 2 -- Size of an indent | |
| opt.relativenumber = true -- Show relative line numbers |
| services: | |
| nginx: | |
| image: nginx | |
| ports: | |
| - "80:80" | |
| command: | |
| - /bin/sh | |
| - -c | |
| - | | |
| cat > /etc/nginx/conf.d/default.conf <<'EOF' |
| services: | |
| cloudflared: | |
| image: cloudflare/cloudflared:latest | |
| container_name: cloudflared | |
| restart: unless-stopped | |
| command: tunnel --no-autoupdate run | |
| environment: | |
| - TUNNEL_TOKEN=YOUR_CLOUDFLARE_TOKEN | |
| network_mode: host |