Friendica traefik docker compose

Friendica Friendica “A Decentralized Social Network”. I wanted to try friendica, but it seems quite difficult to try without having every setting complitely corect. This compose will make it possible to just try ut with localhost, and use mailhog so you dont need a correct working email as well. Set a A record for your domain pointing to the ip address where you are running this (e.g. friendica.yourdomain.com). Add an ....

June 2, 2025 · 1 min · Ask Blaker

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