Skip to content

Instantly share code, notes, and snippets.

@airtonix
airtonix / build.sh
Created December 18, 2025 09:51
OpenCode build script for Fedora Docker builds
#!/bin/bash
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
DOCKER_IMAGE_NAME="${DOCKER_IMAGE_NAME:-opencode-builder}"
DOCKER_BASE_IMAGE="${DOCKER_BASE_IMAGE:-fedora:latest}"
# Display usage
usage() {
@airtonix
airtonix / INDEX.md
Last active December 18, 2025 09:52
Linux App Packaging Research - Comprehensive guide for icons, desktop files, AppData metadata, and Tauri integration

Linux App Packaging Research - Complete Index

Research Date: December 18, 2025
Total Documentation: ~95 KB across 7 comprehensive files
Coverage: Icon requirements, AppData metadata, Desktop files, Tauri configuration, Screenshots
Quality: HIGH confidence (95%) for standards; MEDIUM-HIGH (75%) for Tauri specifics


📚 Document Directory

17:54:25 Dedicated host created.
17:54:25 [Inputs] Loading inputs default "bin/constants.xml"
17:54:25 [Inputs] Loading inputs default "bin/specific.xml"
17:54:25 [Inputs] Loading inputs cfg "/home/zenobius/.local/share/DayZ Other Profiles/Server\Server.core.xml"
17:54:25 [Inputs] Exporting inputs cfg "/home/zenobius/.local/share/DayZ Other Profiles/Server\Server.core.xml"
17:54:28 BattlEye Server: Initialized (v1.219, DayZ 1.28.160123)
[S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK.
CAppInfoCacheReadFromDiskThread took 4 milliseconds to initialize
Setting breakpad minidump AppID = 221100
SteamInternal_SetMinidumpSteamID: Caching Steam ID: 76561197960265728 [API loaded no]
@airtonix
airtonix / AGENTS.md
Created November 23, 2025 08:12
Memory in an AGENT.md

AGENTS.md

Note

CRITICAL Before doing any work, read the entire contents of this file carefully.

!`cat TODO.md`
@airtonix
airtonix / eslint.sh
Last active November 6, 2025 23:59
work around for zed not running eslint fix on older versions of eslint
#!/usr/bin/env bash
find_eslint_config() {
local dir
dir="$1"
while [ "$dir" != "/" ]; do
if [ -f "$dir/eslint.config.cjs" ]; then
@airtonix
airtonix / GetGithubEnvironmentVariables.sh
Created October 14, 2025 22:07
Get github environment variables without triggering deployment
#!/usr/bin/env bash
# set errors to fail the script
set -e
function require_arg() {
if [[ -z "${1}" ]]; then
echo "${2} is required."
exit 1
fi
@airtonix
airtonix / provision-wsl.ps1
Last active July 29, 2025 06:09
Quickly provision new wsl instances
#!/usr/bin/env pwsh
function List-AvailableDistros {
# List available WSL distros and only include first column
$distroList = wsl --list --online | Where-Object { $_ -ne "" } | Select-Object -Skip 3 | ForEach-Object { $_.Split(" ")[0] } | Where-Object { $_ -ne "" }
if ($LASTEXITCODE -ne 0) {
Write-Error "Failed to list available WSL distros."
exit 1
}
#!/bin/bash
# read the JSON input from stdin
inputs=$(cat);
# pick the paths_released from the JSON input and turn it into a bash array
paths_array=$(jq -r '.paths_released | fromjson | .[]' <<< "$inputs")
for release in $paths_array; do
echo "Creating release branch for $release"

Zed Remote Devcontainers

Caution

I personally couldn't get my fedora setup to connect.

Failed to check metadata of Zed executable path for use in askpass. Please try again.

> tree . -a
.
├── connect.sh
@airtonix
airtonix / ThemeProvider.tsx
Created May 1, 2025 06:50 — forked from WellDone2094/ThemeProvider.tsx
Tan Stack Start Theme provider
import {
createContext,
useCallback,
useContext,
useEffect,
useState,
} from 'react';
import type { Context, PropsWithChildren } from 'react';