Skip to content

Instantly share code, notes, and snippets.

@planetis-m
planetis-m / fedora_guide.md
Created January 29, 2026 19:01 — forked from yokoffing/fedora_guide.md
Fedora setup

Fedora GNOME setup

Mostly to help me keep track of my doings in Linux Fedora.

Context

             .',;::::;,'.                 yokoffing@my-fedora
         .';:cccccccccccc:;,.             -------------------
      .;cccccccccccccccccccccc;.          OS: Fedora Linux 40 (Workstation)
    .:cccccccccccccccccccccccccc:.        Host: 2020 XPS 15 9500

Engineering Specification: KDEAI Translation System

Version: 1.0
Status: Implementation Ready
Runtime: Python 3.12+
Storage: SQLite
Key libraries: polib, portalocker, spaCy, sqlite-vector


Raspberry Pi Headless Setup Guide

Prerequisites

  • Raspberry Pi (tested on Pi 3A+)
  • MicroSD card (minimum 8GB recommended)
  • SD card reader
  • Linux computer for setup
  • WiFi network (2.4GHz for Pi 3A+)

Nimony + raylib Tic-Tac-Toe

A minimal, single-file Tic-Tac-Toe game in Nim using raylib. It demonstrates a multi-threaded setup with a custom FFI wrapper for the shared library.

Prerequisites

  • Nimony compiler
  • A C compiler and raylib development libraries. See the official raylib wiki for platform-specific setup instructions.

Build & Run

Nimony + raylib Tic-Tac-Toe

A minimal, single-file Tic-Tac-Toe game in Nim using raylib. It demonstrates a multi-threaded setup with a custom FFI wrapper for the shared library.

Prerequisites

  • Nimony compiler
  • A C compiler and raylib development libraries. See the official raylib wiki for platform-specific setup instructions.

Build & Run

@planetis-m
planetis-m / MakeExamples.md
Created October 28, 2025 14:39
Prompts for Nimony release announcement

Prompt: Demonstration Example Generator

You are an AI assistant tasked with writing a demonstration code example showcasing the currently working features of the Nimony toolchain and standard library ports. This example is aimed at experienced programmers who prefer clarity and grounded demonstrations over hype.

Important: You must only use features and modules that are confirmed working in the implementation state described in the extracted feature list. Do not assume or invent features.

I will provide:

  1. A feature list of constructs currently working
@planetis-m
planetis-m / example1.nim
Last active October 30, 2025 20:28
Demonstration examples for nimony
import std / [syncio, tables, hashes, intsets, assertions]
type
Point = object
x, y: int
Drawable = concept
proc draw(p: Self)
proc draw(p: Point) =
#!/bin/bash
# Custom toolbox container for ESP-IDF development
# From: https://discussion.fedoraproject.org/t/creating-toolbx-with-custom-settings/37067
# Configuration
toolbox_name="esp-42-dev"
toolbox_hostname="esp-dev"
toolbox_home=$HOME
toolbox_user=$USER
toolbox_shell=$SHELL
import std / [strutils, os, parseopt, sets]
import "$nim" / compiler / [lexer, llstream, pathutils, parser, ast, options, idents, renderer, syntaxes, msgs]
const
Usage = """
Nim AI Documentation Generator
Usage: nimaidoc [options] <input-file>
Options:
FROM registry.fedoraproject.org/fedora-toolbox:42
# Base tools and Python development environment
RUN dnf -y upgrade --refresh && \
dnf -y --setopt=install_weak_deps=False install \
git-credential-libsecret nano git curl wget ca-certificates \
unzip xz tar nodejs nodejs-full-i18n npm \
python3 python3-devel uv \
gcc gcc-c++ make cmake \
libxml2-devel libxslt-devel \