From ed0bd33ee9bf76abab4be5776cd45a0829700839 Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 4 Jul 2025 14:30:22 -0600 Subject: [PATCH] Clean up --- Dockerfile.code-server | 3 + mkdocs/docs/adv/vscode-ssh.md | 118 +++--- .../repo-data/admin-changemaker.lite.json | 6 +- .../repo-data/anthropics-claude-code.json | 12 +- .../assets/repo-data/coder-code-server.json | 8 +- .../repo-data/gethomepage-homepage.json | 6 +- .../docs/assets/repo-data/go-gitea-gitea.json | 10 +- .../docs/assets/repo-data/knadh-listmonk.json | 8 +- mkdocs/docs/assets/repo-data/n8n-io-n8n.json | 10 +- .../docs/assets/repo-data/nocodb-nocodb.json | 6 +- .../repo-data/squidfunk-mkdocs-material.json | 4 +- mkdocs/docs/config/coder.md | 104 ++++- .../repo_widget_hook.cpython-311.pyc | Bin 6911 -> 0 bytes mkdocs/docs/hooks/repo_widget_hook.py | 4 + mkdocs/docs/overrides/home.html | 19 + mkdocs/docs/phil/index.md | 4 +- mkdocs/mkdocs.yml | 10 +- mkdocs/site/404.html | 12 +- mkdocs/site/adv/ansible/index.html | 18 +- mkdocs/site/adv/index.html | 22 +- mkdocs/site/adv/vscode-ssh/index.html | 136 +++---- .../assets/images/social/config/coder.png | Bin 27318 -> 30775 bytes .../assets/images/social/config/mkdocs.png | Bin 28045 -> 69696 bytes .../assets/images/social/services/mkdocs.png | Bin 28606 -> 69826 bytes .../assets/javascripts/bundle.13a4f30d.min.js | 16 - .../javascripts/bundle.13a4f30d.min.js.map | 7 - .../repo-data/admin-changemaker.lite.json | 6 +- .../repo-data/anthropics-claude-code.json | 12 +- .../assets/repo-data/coder-code-server.json | 8 +- .../repo-data/gethomepage-homepage.json | 6 +- .../site/assets/repo-data/go-gitea-gitea.json | 10 +- .../site/assets/repo-data/knadh-listmonk.json | 8 +- mkdocs/site/assets/repo-data/n8n-io-n8n.json | 10 +- .../site/assets/repo-data/nocodb-nocodb.json | 6 +- .../repo-data/squidfunk-mkdocs-material.json | 4 +- mkdocs/site/blog/index.html | 136 ++++++- mkdocs/site/build/index.html | 18 +- mkdocs/site/build/map/index.html | 18 +- mkdocs/site/build/server/index.html | 18 +- mkdocs/site/build/site/index.html | 18 +- .../site/config/cloudflare-config/index.html | 22 +- mkdocs/site/config/coder/index.html | 377 +++++++++++++++++- mkdocs/site/config/index.html | 18 +- mkdocs/site/config/mkdocs/index.html | 32 +- .../repo_widget_hook.cpython-311.pyc | Bin 6924 -> 6965 bytes mkdocs/site/hooks/repo_widget_hook.py | 4 + mkdocs/site/index.html | 31 +- mkdocs/site/overrides/home.html | 19 + mkdocs/site/phil/cost-comparison/index.html | 12 +- mkdocs/site/phil/index.html | 14 +- mkdocs/site/search/search_index.json | 2 +- mkdocs/site/services/code-server/index.html | 22 +- mkdocs/site/services/gitea/index.html | 18 +- mkdocs/site/services/homepage/index.html | 18 +- mkdocs/site/services/index.html | 18 +- mkdocs/site/services/listmonk/index.html | 18 +- mkdocs/site/services/map/index.html | 18 +- mkdocs/site/services/mini-qr/index.html | 18 +- mkdocs/site/services/mkdocs/index.html | 28 +- mkdocs/site/services/n8n/index.html | 18 +- mkdocs/site/services/nocodb/index.html | 18 +- mkdocs/site/services/postgresql/index.html | 18 +- mkdocs/site/services/static-server/index.html | 22 +- mkdocs/site/sitemap.xml | 62 +-- mkdocs/site/sitemap.xml.gz | Bin 352 -> 374 bytes 65 files changed, 1095 insertions(+), 553 deletions(-) delete mode 100644 mkdocs/docs/hooks/__pycache__/repo_widget_hook.cpython-311.pyc delete mode 100644 mkdocs/site/assets/javascripts/bundle.13a4f30d.min.js delete mode 100644 mkdocs/site/assets/javascripts/bundle.13a4f30d.min.js.map diff --git a/Dockerfile.code-server b/Dockerfile.code-server index 937a394..6e7a673 100644 --- a/Dockerfile.code-server +++ b/Dockerfile.code-server @@ -9,6 +9,9 @@ RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \ # Install Claude Code globally as root RUN npm install -g @anthropic-ai/claude-code +# Install Ollama +RUN curl -fsSL https://ollama.com/install.sh | sh + # Install Python and dependencies RUN apt-get update && apt-get install -y \ python3 \ diff --git a/mkdocs/docs/adv/vscode-ssh.md b/mkdocs/docs/adv/vscode-ssh.md index 5bc962a..3a78e2d 100644 --- a/mkdocs/docs/adv/vscode-ssh.md +++ b/mkdocs/docs/adv/vscode-ssh.md @@ -2,7 +2,7 @@ ## Overview -This guide shows you how to set up Visual Studio Code for remote development on your servers using the Tailscale network. This allows you to develop directly on your remote ThinkCentre units as if they were local machines, with full access to files, terminals, and debugging capabilities. +This guide describes how to set up Visual Studio Code for remote development on servers using the Tailscale network. This enables development directly on remote machines as if they were local, with full access to files, terminals, and debugging capabilities. ## What You'll Learn @@ -14,21 +14,21 @@ This guide shows you how to set up Visual Studio Code for remote development on ## Prerequisites -- **Completed the Ansible + Tailscale setup** from the previous guide -- **VSCode installed** on your local machine (master node) +- **Ansible + Tailscale setup completed** (see previous guide) +- **VSCode installed** on the local machine (master node) - **Working SSH access** to remote servers via Tailscale - **Tailscale running** on both local and remote machines ## Verify Prerequisites -Before starting, ensure your setup is working: +Before starting, verify the setup: ```bash # Check Tailscale connectivity tailscale status # Test SSH access -ssh bunker-admin@100.125.148.60 +ssh @ # Check VSCode is installed code --version @@ -56,7 +56,7 @@ This pack includes: ### 2. Verify Installation -After installation, you should see: +After installation, the following should be visible: - Remote Explorer icon in the Activity Bar (left sidebar) - "Remote-SSH" commands in Command Palette (Ctrl+Shift+P) @@ -67,7 +67,7 @@ After installation, you should see: **Method A: Through VSCode** 1. Press **Ctrl+Shift+P** to open Command Palette 2. Type **"Remote-SSH: Open SSH Configuration File..."** -3. Select your SSH config file (usually the first option) +3. Select the SSH config file (usually the first option) **Method B: Direct File Editing** ```bash @@ -77,30 +77,22 @@ nano ~/.ssh/config ### 2. Add Server Configurations -Add your servers to the SSH config file: +Add servers to the SSH config file: ``` -# Primary ThinkCentre Node -Host tc-node1 - HostName 100.125.148.60 - User bunker-admin +# Example Node +Host node1 + HostName + User IdentityFile ~/.ssh/id_rsa ForwardAgent yes ServerAliveInterval 60 ServerAliveCountMax 3 # Additional nodes (add as needed) -Host tc-node2 - HostName 100.x.x.x - User bunker-admin - IdentityFile ~/.ssh/id_rsa - ForwardAgent yes - ServerAliveInterval 60 - ServerAliveCountMax 3 - -Host tc-node3 - HostName 100.x.x.x - User bunker-admin +Host node2 + HostName + User IdentityFile ~/.ssh/id_rsa ForwardAgent yes ServerAliveInterval 60 @@ -111,7 +103,7 @@ Host tc-node3 - `Host`: Friendly name for the connection - `HostName`: Tailscale IP address - `User`: Username on the remote server -- `IdentityFile`: Path to your SSH private key +- `IdentityFile`: Path to the SSH private key - `ForwardAgent`: Enables SSH agent forwarding for Git operations - `ServerAliveInterval`: Keeps connection alive (prevents timeouts) - `ServerAliveCountMax`: Number of keepalive attempts @@ -133,20 +125,20 @@ chmod 644 ~/.ssh/id_rsa.pub 1. Press **Ctrl+Shift+P** 2. Type **"Remote-SSH: Connect to Host..."** -3. Select your server (e.g., `tc-node1`) +3. Select the server (e.g., `node1`) 4. VSCode will open a new window connected to the remote server ### 2. Connect via Remote Explorer 1. Click the **Remote Explorer** icon in Activity Bar 2. Expand **SSH Targets** -3. Click the **connect** icon next to your server name +3. Click the **connect** icon next to the server name ### 3. Connect via Quick Menu 1. Click the **remote indicator** in bottom-left corner (looks like ><) 2. Select **"Connect to Host..."** -3. Choose your server from the list +3. Choose the server from the list ### 4. First Connection Process @@ -167,8 +159,8 @@ Once connected: ```bash # In the VSCode terminal (now running on remote server) -# Navigate to your project -cd /home/bunker-admin/projects +# Navigate to the project directory +cd /home//projects # Open current directory in VSCode code . @@ -179,7 +171,7 @@ code /opt/myproject ### 2. Install Extensions on Remote Server -Extensions need to be installed separately on the remote server: +Extensions must be installed separately on the remote server: **Essential Development Extensions:** 1. **Python** (Microsoft) - Python development @@ -191,18 +183,18 @@ Extensions need to be installed separately on the remote server: **To Install:** 1. Go to Extensions (Ctrl+Shift+X) -2. Find your desired extension -3. Click **"Install in SSH: tc-node1"** (not local install) +2. Find the desired extension +3. Click **"Install in SSH: node1"** (not local install) ### 3. Configure Git on Remote Server ```bash # In VSCode terminal (remote) -git config --global user.name "Your Name" -git config --global user.email "your.email@example.com" +git config --global user.name "" +git config --global user.email "" # Test Git connectivity -git clone https://github.com/yourusername/yourrepo.git +git clone https://github.com//.git ``` ## Part 5: Remote Development Workflows @@ -217,10 +209,10 @@ git clone https://github.com/yourusername/yourrepo.git **File Transfer:** ```bash # Upload files to remote (from local terminal) -scp localfile.txt bunker-admin@100.125.148.60:/home/bunker-admin/ +scp localfile.txt @:/home// # Download files from remote -scp bunker-admin@100.125.148.60:/remote/path/file.txt ./local/path/ +scp @:/remote/path/file.txt ./local/path/ ``` ### 2. Terminal Usage @@ -256,7 +248,7 @@ VSCode automatically detects and forwards common development ports. 1. Open **Ports** tab in terminal panel 2. Click **"Forward a Port"** 3. Enter port number (e.g., 3000, 8080, 5000) -4. Access via `http://localhost:port` on local machine +4. Access via `http://localhost:port` on the local machine **Example: Web Development** ```bash @@ -264,7 +256,7 @@ VSCode automatically detects and forwards common development ports. npm start # VSCode automatically suggests forwarding port 3000 -# Access at http://localhost:3000 on your local machine +# Access at http://localhost:3000 on the local machine ``` ### 4. Debugging Remote Applications @@ -316,7 +308,7 @@ Create remote-specific settings: "files.autoSave": "afterDelay", "editor.formatOnSave": true, "remote.SSH.remotePlatform": { - "tc-node1": "linux" + "node1": "linux" } } ``` @@ -326,7 +318,7 @@ Create remote-specific settings: **Switch Between Servers:** 1. Click remote indicator (bottom-left) 2. Select **"Connect to Host..."** -3. Choose different server +3. Choose a different server **Compare Files Across Servers:** 1. Open file from server A @@ -416,13 +408,13 @@ EOF ```bash # Check Tailscale connectivity tailscale status -ping 100.125.148.60 +ping # Test SSH manually -ssh bunker-admin@100.125.148.60 +ssh @ # Check SSH config syntax -ssh -T tc-node1 +ssh -T node1 ``` **Problem: "Permission denied (publickey)"** @@ -438,7 +430,7 @@ ssh-add ~/.ssh/id_rsa ssh-add -l # Test SSH connection verbosely -ssh -v bunker-admin@100.125.148.60 +ssh -v @ ``` **Problem: "Host key verification failed"** @@ -446,7 +438,7 @@ ssh -v bunker-admin@100.125.148.60 **Solutions:** ```bash # Remove old host key -ssh-keygen -R 100.125.148.60 +ssh-keygen -R # Or disable host key checking (less secure) # Add to SSH config: @@ -458,7 +450,7 @@ ssh-keygen -R 100.125.148.60 **Problem: Extensions not working on remote** **Solutions:** -1. Install extensions specifically for remote server +1. Install extensions specifically for the remote server 2. Check extension compatibility with remote development 3. Reload VSCode window: Ctrl+Shift+P → "Developer: Reload Window" @@ -506,7 +498,7 @@ TCPKeepAlive yes - Compress large files before transfer - Use `rsync` for large file operations: ```bash -rsync -avz --progress localdir/ bunker-admin@100.125.148.60:remotedir/ +rsync -avz --progress localdir/ @:remotedir/ ``` ## Part 9: Best Practices @@ -556,11 +548,11 @@ git push origin main 2. **Environment separation**: ```bash # Development -ssh tc-node1 -cd /home/bunker-admin/dev-projects +ssh node1 +cd /home//dev-projects # Production -ssh tc-node2 +ssh node2 cd /opt/production-apps ``` @@ -570,7 +562,7 @@ cd /opt/production-apps git push origin main # Or manual backup -scp -r bunker-admin@100.125.148.60:/important/project ./backup/ +scp -r @:/important/project ./backup/ ``` ## Part 10: Team Collaboration @@ -581,15 +573,15 @@ scp -r bunker-admin@100.125.148.60:/important/project ./backup/ ``` # Shared development server Host team-dev - HostName 100.x.x.x - User dev-user + HostName + User IdentityFile ~/.ssh/team_dev_key ForwardAgent yes # Personal development Host my-dev - HostName 100.125.148.60 - User bunker-admin + HostName + User IdentityFile ~/.ssh/id_rsa ``` @@ -614,7 +606,7 @@ sudo chown -R :developers /opt/projects sudo chmod -R g+w /opt/projects # Add users to developers group -sudo usermod -a -G developers bunker-admin +sudo usermod -a -G developers ``` ## Quick Reference @@ -641,23 +633,23 @@ Ctrl+Shift+E → Focus file explorer ```bash # Test connectivity -ssh -T tc-node1 +ssh -T node1 # Connect with verbose output -ssh -v bunker-admin@100.125.148.60 +ssh -v @ # Check SSH config -ssh -F ~/.ssh/config tc-node1 +ssh -F ~/.ssh/config node1 ``` ### Port Forwarding Commands ```bash # Manual port forwarding -ssh -L 3000:localhost:3000 bunker-admin@100.125.148.60 +ssh -L 3000:localhost:3000 @ # Background tunnel -ssh -f -N -L 8080:localhost:80 bunker-admin@100.125.148.60 +ssh -f -N -L 8080:localhost:80 @ ``` ## Conclusion @@ -673,4 +665,4 @@ This remote development setup provides: The combination of VSCode Remote Development with Tailscale networking creates a powerful, flexible development environment that works from anywhere while maintaining security and performance. -Whether you're developing Python applications, Node.js services, or managing Docker containers, this setup provides a professional remote development experience that rivals local development while leveraging the power and resources of your remote servers. \ No newline at end of file +Whether developing Python applications, Node.js services, or managing Docker containers, this setup provides a professional remote development experience that rivals local development while leveraging the power and resources of remote servers. \ No newline at end of file diff --git a/mkdocs/docs/assets/repo-data/admin-changemaker.lite.json b/mkdocs/docs/assets/repo-data/admin-changemaker.lite.json index 5333f7d..1c59173 100644 --- a/mkdocs/docs/assets/repo-data/admin-changemaker.lite.json +++ b/mkdocs/docs/assets/repo-data/admin-changemaker.lite.json @@ -6,11 +6,11 @@ "language": "HTML", "stars_count": 0, "forks_count": 0, - "open_issues_count": 1, - "updated_at": "2025-07-01T09:33:43-06:00", + "open_issues_count": 0, + "updated_at": "2025-07-02T11:49:44-06:00", "created_at": "2025-05-28T14:54:59-06:00", "clone_url": "https://gitea.bnkops.com/admin/changemaker.lite.git", "ssh_url": "git@gitea.bnkops.com:admin/changemaker.lite.git", "default_branch": "main", - "last_build_update": "2025-07-01T09:33:43-06:00" + "last_build_update": "2025-07-02T11:49:44-06:00" } \ No newline at end of file diff --git a/mkdocs/docs/assets/repo-data/anthropics-claude-code.json b/mkdocs/docs/assets/repo-data/anthropics-claude-code.json index 518e62f..bd2f765 100644 --- a/mkdocs/docs/assets/repo-data/anthropics-claude-code.json +++ b/mkdocs/docs/assets/repo-data/anthropics-claude-code.json @@ -3,14 +3,14 @@ "name": "claude-code", "description": "Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.", "html_url": "https://github.com/anthropics/claude-code", - "language": "Shell", - "stars_count": 16934, - "forks_count": 929, - "open_issues_count": 1495, - "updated_at": "2025-07-02T17:38:19Z", + "language": "PowerShell", + "stars_count": 17031, + "forks_count": 941, + "open_issues_count": 1508, + "updated_at": "2025-07-03T05:19:19Z", "created_at": "2025-02-22T17:41:21Z", "clone_url": "https://github.com/anthropics/claude-code.git", "ssh_url": "git@github.com:anthropics/claude-code.git", "default_branch": "main", - "last_build_update": "2025-07-02T16:32:38Z" + "last_build_update": "2025-07-03T03:54:14Z" } \ No newline at end of file diff --git a/mkdocs/docs/assets/repo-data/coder-code-server.json b/mkdocs/docs/assets/repo-data/coder-code-server.json index c0c12d7..3593dcf 100644 --- a/mkdocs/docs/assets/repo-data/coder-code-server.json +++ b/mkdocs/docs/assets/repo-data/coder-code-server.json @@ -4,10 +4,10 @@ "description": "VS Code in the browser", "html_url": "https://github.com/coder/code-server", "language": "TypeScript", - "stars_count": 72530, - "forks_count": 6064, - "open_issues_count": 143, - "updated_at": "2025-07-02T17:11:14Z", + "stars_count": 72541, + "forks_count": 6067, + "open_issues_count": 141, + "updated_at": "2025-07-03T05:17:24Z", "created_at": "2019-02-27T16:50:41Z", "clone_url": "https://github.com/coder/code-server.git", "ssh_url": "git@github.com:coder/code-server.git", diff --git a/mkdocs/docs/assets/repo-data/gethomepage-homepage.json b/mkdocs/docs/assets/repo-data/gethomepage-homepage.json index 735b307..70b9e60 100644 --- a/mkdocs/docs/assets/repo-data/gethomepage-homepage.json +++ b/mkdocs/docs/assets/repo-data/gethomepage-homepage.json @@ -4,13 +4,13 @@ "description": "A highly customizable homepage (or startpage / application dashboard) with Docker and service API integrations.", "html_url": "https://github.com/gethomepage/homepage", "language": "JavaScript", - "stars_count": 24608, + "stars_count": 24619, "forks_count": 1520, "open_issues_count": 1, - "updated_at": "2025-07-02T17:20:41Z", + "updated_at": "2025-07-03T03:29:15Z", "created_at": "2022-08-24T07:29:42Z", "clone_url": "https://github.com/gethomepage/homepage.git", "ssh_url": "git@github.com:gethomepage/homepage.git", "default_branch": "dev", - "last_build_update": "2025-07-02T12:13:57Z" + "last_build_update": "2025-07-03T00:36:38Z" } \ No newline at end of file diff --git a/mkdocs/docs/assets/repo-data/go-gitea-gitea.json b/mkdocs/docs/assets/repo-data/go-gitea-gitea.json index 915ed37..a4e28c6 100644 --- a/mkdocs/docs/assets/repo-data/go-gitea-gitea.json +++ b/mkdocs/docs/assets/repo-data/go-gitea-gitea.json @@ -4,13 +4,13 @@ "description": "Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD", "html_url": "https://github.com/go-gitea/gitea", "language": "Go", - "stars_count": 49339, - "forks_count": 5891, - "open_issues_count": 2711, - "updated_at": "2025-07-02T16:36:32Z", + "stars_count": 49349, + "forks_count": 5892, + "open_issues_count": 2702, + "updated_at": "2025-07-03T03:52:23Z", "created_at": "2016-11-01T02:13:26Z", "clone_url": "https://github.com/go-gitea/gitea.git", "ssh_url": "git@github.com:go-gitea/gitea.git", "default_branch": "main", - "last_build_update": "2025-07-02T00:37:56Z" + "last_build_update": "2025-07-03T03:02:38Z" } \ No newline at end of file diff --git a/mkdocs/docs/assets/repo-data/knadh-listmonk.json b/mkdocs/docs/assets/repo-data/knadh-listmonk.json index 1ca3439..8b473b8 100644 --- a/mkdocs/docs/assets/repo-data/knadh-listmonk.json +++ b/mkdocs/docs/assets/repo-data/knadh-listmonk.json @@ -4,13 +4,13 @@ "description": "High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.", "html_url": "https://github.com/knadh/listmonk", "language": "Go", - "stars_count": 17248, + "stars_count": 17250, "forks_count": 1658, - "open_issues_count": 105, - "updated_at": "2025-07-02T10:32:44Z", + "open_issues_count": 101, + "updated_at": "2025-07-03T01:26:41Z", "created_at": "2019-06-26T05:08:39Z", "clone_url": "https://github.com/knadh/listmonk.git", "ssh_url": "git@github.com:knadh/listmonk.git", "default_branch": "master", - "last_build_update": "2025-06-30T10:45:51Z" + "last_build_update": "2025-07-02T18:01:43Z" } \ No newline at end of file diff --git a/mkdocs/docs/assets/repo-data/n8n-io-n8n.json b/mkdocs/docs/assets/repo-data/n8n-io-n8n.json index 3480f52..fb176f8 100644 --- a/mkdocs/docs/assets/repo-data/n8n-io-n8n.json +++ b/mkdocs/docs/assets/repo-data/n8n-io-n8n.json @@ -4,13 +4,13 @@ "description": "Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.", "html_url": "https://github.com/n8n-io/n8n", "language": "TypeScript", - "stars_count": 114294, - "forks_count": 33577, - "open_issues_count": 1070, - "updated_at": "2025-07-02T17:42:44Z", + "stars_count": 114419, + "forks_count": 33630, + "open_issues_count": 1074, + "updated_at": "2025-07-03T05:21:36Z", "created_at": "2019-06-22T09:24:21Z", "clone_url": "https://github.com/n8n-io/n8n.git", "ssh_url": "git@github.com:n8n-io/n8n.git", "default_branch": "master", - "last_build_update": "2025-07-02T17:17:32Z" + "last_build_update": "2025-07-03T04:31:44Z" } \ No newline at end of file diff --git a/mkdocs/docs/assets/repo-data/nocodb-nocodb.json b/mkdocs/docs/assets/repo-data/nocodb-nocodb.json index 08cbf57..166acf1 100644 --- a/mkdocs/docs/assets/repo-data/nocodb-nocodb.json +++ b/mkdocs/docs/assets/repo-data/nocodb-nocodb.json @@ -4,13 +4,13 @@ "description": "\ud83d\udd25 \ud83d\udd25 \ud83d\udd25 Open Source Airtable Alternative", "html_url": "https://github.com/nocodb/nocodb", "language": "TypeScript", - "stars_count": 55505, + "stars_count": 55514, "forks_count": 3994, "open_issues_count": 718, - "updated_at": "2025-07-02T17:05:35Z", + "updated_at": "2025-07-03T04:26:22Z", "created_at": "2017-10-29T18:51:48Z", "clone_url": "https://github.com/nocodb/nocodb.git", "ssh_url": "git@github.com:nocodb/nocodb.git", "default_branch": "develop", - "last_build_update": "2025-07-02T16:01:20Z" + "last_build_update": "2025-07-03T04:39:20Z" } \ No newline at end of file diff --git a/mkdocs/docs/assets/repo-data/squidfunk-mkdocs-material.json b/mkdocs/docs/assets/repo-data/squidfunk-mkdocs-material.json index 59332e8..95a27d9 100644 --- a/mkdocs/docs/assets/repo-data/squidfunk-mkdocs-material.json +++ b/mkdocs/docs/assets/repo-data/squidfunk-mkdocs-material.json @@ -4,10 +4,10 @@ "description": "Documentation that simply works", "html_url": "https://github.com/squidfunk/mkdocs-material", "language": "Python", - "stars_count": 23785, + "stars_count": 23786, "forks_count": 3787, "open_issues_count": 5, - "updated_at": "2025-07-02T17:21:29Z", + "updated_at": "2025-07-03T00:57:11Z", "created_at": "2016-01-28T22:09:23Z", "clone_url": "https://github.com/squidfunk/mkdocs-material.git", "ssh_url": "git@github.com:squidfunk/mkdocs-material.git", diff --git a/mkdocs/docs/config/coder.md b/mkdocs/docs/config/coder.md index 8af8ee3..f78bbf6 100644 --- a/mkdocs/docs/config/coder.md +++ b/mkdocs/docs/config/coder.md @@ -1,4 +1,4 @@ -# Coder Configuration +# Coder Server Configuration This section describes the configuration and features of the code-server environment. @@ -109,5 +109,107 @@ When using code-server, consider the following security aspects: - **Network Security**: Ensure that your firewall settings allow access to the code-server port (default: 8080) only from trusted networks. - **Data Privacy**: Be cautious when uploading sensitive data or code to the server. Use environment variables or secure vaults for sensitive information. +## Ollama Integration + +
+ +The code-server environment includes **Ollama**, a tool for running large language models locally on your machine. + +### What is Ollama? + +Ollama is a lightweight, extensible framework for building and running language models locally. It provides a simple API for creating, running, and managing models, making it easy to integrate AI capabilities into your development workflow without relying on external services. + +### Getting Started with Ollama + +#### Staring Ollama + +For ollama to be available, you need to open a terminal and run: + +```bash +ollama serve +``` + +This will start the ollama server and you can then proceed to pulling a model and chatting. + +#### Pulling a Model + +To get started, you'll need to pull a model. For development and testing, we recommend starting with a smaller model like Gemma 2B: + +```bash +ollama pull gemma2:2b +``` + +For even lighter resource usage, you can use the 1B parameter version: + +```bash +ollama pull gemma2:1b +``` + +#### Running a Model + +Once you've pulled a model, you can start an interactive session: + +```bash +ollama run gemma2:2b +``` + +#### Available Models + +Popular models available through Ollama include: + +- **Gemma 2** (1B, 2B, 9B, 27B): Google's efficient language models +- **Llama 3.2** (1B, 3B, 11B, 90B): Meta's latest language models +- **Qwen 2.5** (0.5B, 1.5B, 3B, 7B, 14B, 32B, 72B): Alibaba's multilingual models +- **Phi 3.5** (3.8B): Microsoft's compact language model +- **Code Llama** (7B, 13B, 34B): Specialized for code generation + +### Using Ollama in Your Development Workflow + +#### API Access + +Ollama provides a REST API that runs on `http://localhost:11434` by default. You can integrate this into your applications: + +```bash +curl http://localhost:11434/api/generate -d '{ + "model": "gemma2:2b", + "prompt": "Write a Python function to calculate fibonacci numbers", + "stream": false +}' +``` + +#### Model Management + +List installed models: +```bash +ollama list +``` + +Remove a model: +```bash +ollama rm gemma2:2b +``` + +Show model information: +```bash +ollama show gemma2:2b +``` + +### Resource Considerations + +- **1B models**: Require ~1GB RAM, suitable for basic tasks and resource-constrained environments +- **2B models**: Require ~2GB RAM, good balance of capability and resource usage +- **Larger models**: Provide better performance but require significantly more resources + +### Integration with Development Tools + +Ollama can be integrated with various development tools and editors through its API, enabling features like: + +- Code completion and generation +- Documentation writing assistance +- Code review and explanation +- Automated testing suggestions + +For more information, visit the [Ollama documentation](https://ollama.ai/docs). + For more detailed information on configuring and using code-server, refer to the official [code-server documentation](https://coder.com/docs/). diff --git a/mkdocs/docs/hooks/__pycache__/repo_widget_hook.cpython-311.pyc b/mkdocs/docs/hooks/__pycache__/repo_widget_hook.cpython-311.pyc deleted file mode 100644 index 9bd5faec06615702e5f559a765130c82f80c1f2a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6911 zcmbU`TWlLgl0D>*96m%+A}Q(-$>UhDBJ*?b1){Roo#m{|<4#NY%hu-K3M@sK+p zFmS+C_i#i}mJY(rG^=a6tE;=KtGlX;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V7jY5l#Yw>96u4}T6H+q}JTyE>yz%xK|RJv_Va zu0{IQjjHw-`0S)$U1~vj!mlhn-gF|XC{;xlJabtT$8;$Fu@pVVd8^oPW z*9NDy9qQl|q(*0TrxUIzMGz;`6y6Q3HH+@b+M+NR80W6tW#S(Q0U z?o8`W^Cd3216W`W-G@4RHt%iRt1N4gQ+ni7Eg0TpHkeAM7G(7xTZ{H?u5GMU+qCGo z9v!cRyEdy-A-!Wr4aCe;zFrIVRPJfPx5_u_PKV>%PFwra;mTdD z?YQ1{9Iy51>YW{5@Y5Slm#Y(7cT`_Y^Tl*u3=n)DI!#Cj_)kpyUl=sY4#M#A96q zV2l3S$;($yqL(KFan}CwZ8qL(|3j|>@Nc}qnPK!zZ`aMs_HQPA7{5%<*j?Y+?SOyl zq%iJcF+S{>?YDnB$A4A&IiZDSTO3j3`AFMK{RUjupXvJ#6-r94@-_TqYVc)vX*&}?n2Eo z_{sQKFQeV4#RZMNsM8l!D}4{uD20LbU<*P-fzNFC*MQn9j0d}})_3iRwFd<-^AN~uH@amdpawoIwLHYaVV$q7zZCE8rS1^ zvEjneD=0F&3rSf>T{T1Q^o?8Z-iDAMugsdkEha(S4d?_*9R{sPBxGdT4lG`SUdU!M zWXRHe%zk$+ub2xED9dN~OA-eaSZ4ApK-i8H1(ov`~_ s0NH-9M%k!Kl>vOhRo0%5gB77JZOxHvKVa None: { "repo": "anthropics/claude-code", "github": True + }, + { + "repo": "ollama/ollama", + "github": True } ] diff --git a/mkdocs/docs/overrides/home.html b/mkdocs/docs/overrides/home.html index ea8d836..4b38020 100644 --- a/mkdocs/docs/overrides/home.html +++ b/mkdocs/docs/overrides/home.html @@ -226,6 +226,20 @@
Code Server + Gitea
+ + +
+
🧠
+

Local Intelligence

+
Replaces: ChatGPT Plus (~$20/month)
+
    +
  • Private AI assistant
  • +
  • Campaign content generation
  • +
  • Local data processing
  • +
  • No external API calls
  • +
+
Ollama
+
@@ -257,6 +271,11 @@
Linda Lindsay
Political campaign
+ +
🤝
+
Alberta Democracy Taskforce
+
Defending freedom
+
Platform Provider
diff --git a/mkdocs/docs/phil/index.md b/mkdocs/docs/phil/index.md index 4487a79..3c996d6 100644 --- a/mkdocs/docs/phil/index.md +++ b/mkdocs/docs/phil/index.md @@ -1,6 +1,6 @@ # Philosophy: Your Secrets, Your Power, Your Movement -## The Question That Changes Everything +## The Question That Changes Everything! **If you are a political actor, who do you trust with your secrets?** @@ -10,7 +10,7 @@ This isn't just a technical question—it's the core political question of our t ### How They Hook You -Corporate software companies have perfected the art of digital colonization: +Corporate software companies have perfected the art of digital snake oil sales: 1. **Free Trials** - They lure you in with "free" accounts 2. **Feature Creep** - Essential features require paid tiers diff --git a/mkdocs/mkdocs.yml b/mkdocs/mkdocs.yml index 85a4ea3..a45ff65 100644 --- a/mkdocs/mkdocs.yml +++ b/mkdocs/mkdocs.yml @@ -14,8 +14,8 @@ edit_uri: "" theme: name: material custom_dir: docs/overrides - # logo: assets/logo.png # Commented out until logo exists - # favicon: assets/favicon.png # Commented out until favicon exists + logo: assets/logo.png # Commented out until logo exists + favicon: assets/favicon.png # Commented out until favicon exists palette: - scheme: slate primary: deep purple @@ -161,7 +161,7 @@ nav: - services/index.md - Homepage: services/homepage.md - Code Server: services/code-server.md - - MkDocs: services/mkdocs.md + - MKDocs: services/mkdocs.md - Static Server: services/static-server.md - Listmonk: services/listmonk.md - PostgreSQL: services/postgresql.md @@ -173,8 +173,8 @@ nav: - Configuration: - config/index.md - Cloudflare: config/cloudflare-config.md - - mkdocs: config/mkdocs.md - - Coder: config/coder.md + - MKdocs: config/mkdocs.md + - Code Server: config/coder.md - Advanced Configuration: - adv/index.md - SSH + Tailscale + Ansible: adv/ansible.md diff --git a/mkdocs/site/404.html b/mkdocs/site/404.html index 3786233..2ab7a6b 100644 --- a/mkdocs/site/404.html +++ b/mkdocs/site/404.html @@ -15,8 +15,8 @@ - - + + @@ -110,8 +110,7 @@ Changemaker Archive.
Learn more