OpenRa on Raspberry Pi

Install snap sudo apt update sudo apt install snapd sudo reboot sudo snap install core Install openra snap install openra Run openra openra.ra NOTE For other mods like tiberium sun use openra.ts For all alternatives see the terminal output or tab your way through the openra. alternatives

November 22, 2024 · 1 min · Ask Blaker

OpenRa on Ubuntu

Remember to open firewall for port 1234 sudo add-apt-repository universe -y sudo apt install libfuse2t64 -y sudo apt-get update && sudo apt-get upgrade -y sudo apt-get install libopenal1 mono-runtime mono-complete screen libasound2t64 tmux -y curl -L https://github.com/OpenRA/OpenRA/releases/download/release-20231010/OpenRA-Red-Alert-x86_64.AppImage --output OpenRA-Red-Alert-x86_64.AppImage chmod a+x OpenRA-Red-Alert-x86_64.AppImage ./OpenRA-Red-Alert-x86_64.AppImage --server Server.Name="MyServerName" Server.ListenPort=1234 Server.AdvertiseOnline=True Server.Password=MyPassword Server.EnableSingleplayer=true Tmux # New session # tmux new-session -t openra # Escape: # ctrl-b, d # List sessions # tmux list-session # Kill session # tmux kill-session -t openra # Attach # tmux attach-session -t openra

November 20, 2024 · 1 min · Ask Blaker

FastAPI and OpenAPI with Union type and oneOf

# .python-version # 3.12.0 # # requirements.txt # fastapi[standard]==0.114.0 # # main.py from typing import Literal, Union from pydantic import BaseModel, Field from fastapi import FastAPI app = FastAPI() class Cat(BaseModel): pet_type: Literal["c"] meows: int class Dog(BaseModel): pet_type: Literal["d"] barks: float class Pet(BaseModel): pet: Union[Cat, Dog] = Field(..., discriminator="pet_type") age: int @app.post("/cat") def post_cat(pet: Cat): return {"pet": pet} @app.post("/dog") def post_dog(pet: Dog): return {"pet": pet} @app.post("/pet") def post_pet(pet: Pet): return {"pet": pet}

September 8, 2024 · 1 min · Ask Blaker

Exposing homelab services publicly

Components wireguard “WireGuard® is an extremely simple yet fast and modern VPN that utilizes state-of-the-art cryptography. It aims to be faster, simpler, leaner, and more useful than IPsec, while avoiding the massive headache. " caddy " ‘The Ultimate Server’ - makes your sites more secure, more reliable, and more scalable than any other solution.” docker “Accelerate how you build, share, and run applications. Docker helps developers build, share, run, and verify applications anywhere — without tedious environment configuration or management....

May 14, 2024 · 4 min · Ask Blaker

fooocus ollama open-webui docker compose

Components ollama “Get up and running with large language models. Run Llama 2, Code Llama, and other models. Customize and create your own.” open-webui “Open WebUI is an extensible, feature-rich, and user-friendly self-hosted WebUI designed to operate entirely offline. It supports various LLM runners, including Ollama and OpenAI-compatible APIs.” fooocus “Fooocus is an image generating software, similar to stable diffusion with focus on ease of use” labmdalabs “On-demand & reserved cloud NVIDIA GPUs for AI training & inference....

April 2, 2024 · 3 min · Ask Blaker