Skip to content

Instantly share code, notes, and snippets.

@ewired
ewired / README.md
Last active June 24, 2025 23:02
Quadlet + git quick start and post-receive hook

Quick start for a Git-based Quadlet container host

This guide will help you set up a git repository to manage your Podman Quadlet container configurations. The included post-receive hook will automatically deploy your container configurations when you push changes.

⚠️ Important Warning

This setup will delete any existing Quadlet units in your ~/.config/containers/systemd directory as it is designed to manage your entire Quadlet configuration through the git repository.

Step 1: Create the Bare Git Repository

@ewired
ewired / post-receive.sample
Last active June 23, 2025 18:19
Quadlet post-receive hook
#!/bin/bash
set -e
# Get current username and hostname
USERNAME=$(whoami)
HOSTNAME=$(hostname)
DIR_NAME="${USERNAME}-at-${HOSTNAME}"
# Define target directories
WORK_TREE="$HOME/${DIR_NAME}"
@ewired
ewired / openrouter.ts
Last active December 13, 2024 21:48
OpenRouter MCP Server
#!/usr/bin/env -S deno run --allow-net --allow-env
/*
{
"mcpServers": {
"openrouter": {
"command": "/path/to/deno",
"args": [
"run",
"--allow-net",
"--allow-env",
@ewired
ewired / searxng.ts
Created December 13, 2024 06:27
SearXNG MCP server
#!/usr/bin/env -S deno run --allow-net
/*
{
"mcpServers": {
"searxng": {
"command": "/path/to/deno",
"args": [
"run",
"--allow-net",
"/home/<YOUR USERNAME>/Documents/Cline/MCP/searxng.ts",