Skip to content

Instantly share code, notes, and snippets.

@planetis-m
planetis-m / fedora_setup.md
Last active September 14, 2025 10:13
New Fedora Workspace Installation Guide

New Fedora Workstation Installation Guide

Author: planetis-m


Download and Boot Fedora ISO

  1. Download the latest Fedora Workstation ISO from Fedora Downloads.
  2. Burn the ISO to a USB drive using Fedora Media Writer or Rufus.
FROM registry.fedoraproject.org/fedora-toolbox:42
ARG ESP_IDF_VERSION=v5.5
ENV IDF_GITHUB_ASSETS=dl.espressif.com/github_assets \
IDF_TOOLS_PATH=/opt/.espressif \
PATH=/usr/local/bin:$PATH
# Base tools and compilers
RUN dnf -y upgrade --refresh && \
@planetis-m
planetis-m / AGENTS.md.prompt
Last active August 12, 2025 17:38 — forked from ksprashu/GEMINI.md.prompt
AGENTS.md starter file generator for an existing project
You are an expert software architect and project analysis assistant specializing in Nim language projects. Analyze the current project directory recursively and generate a comprehensive AGENTS.md file. This file will serve as a foundational context guide for any future AI model, like yourself, that interacts with this project. The goal is to ensure that future AI-generated code, analysis, and modifications are consistent with the project's established standards, architecture, and Nim ecosystem practices.
+ Scan and Analyze: Recursively scan the entire file and folder structure starting from the provided root directory.
+ Identify Key Artifacts: Pay close attention to package files (.nimble), nimble.lock (dependency lock file), configuration files (nim.cfg, config.nims, Dockerfile, etc.), build and script files (.nims, nakefile.nim, .sh, Makefile, etc.), READMEs, folder hierarchy, documentation files (.md, .rst), source code files (.nim), and nimbledeps or deps directories (where dependencies are stored).
+ I
@planetis-m
planetis-m / AGENTS.md.prompt
Last active August 13, 2025 16:00
AGENTS.md starter file generator for an existing project
You are an expert software architect and project analysis assistant specializing in Nim language projects. Analyze the current project directory recursively and generate a comprehensive AGENTS.md file. This file will serve as a foundational context guide for any future AI model, like yourself, that interacts with this project. The goal is to ensure that future AI-generated code, analysis, and modifications are consistent with the project's established standards, architecture, and Nim ecosystem practices.
1. Scan and Analyze: Recursively scan the entire file and folder structure starting from the provided root directory.
2. Identify Key Artifacts: Pay close attention to package files (`.nimble`), dependency lock files (`nimble.lock`), configuration files (`nim.cfg`, `config.nims`, Dockerfile, etc.), build and script files (`.nims`, `nakefile.nim`, `.sh`, `Makefile`, etc.), READMEs, folder hierarchy, documentation files (`.md`, `.rst`), source code files (`.nim`), and CI/CD pipeline definitions (`.github/workf
@planetis-m
planetis-m / esp32s3_tutorial.md
Last active July 28, 2025 15:18
ESP32-S3 Tutorial

ESP32 Development Setup Guide

This guide walks you through setting up an ESP-IDF project, configuring your ESP32, and flashing the firmware. Complementary video: https://www.youtube.com/watch?v=zW9wOples-Q


1. Set Up the Development Environment

First, install the ESP-IDF toolchain by following the official documentation for your operating system.

import gzip
import json
import unicodedata
from collections import Counter
def validate_diaeresis_mark(word):
diaeresis_chars = 'ϊϋΐΰ'
vowels_with_accent = 'άέήίόύώ'
diphthongs = {'αι', 'ει', 'οι', 'υι', 'αυ', 'ευ', 'ου'}
diaeresis_found = False
Understand the Task: Grasp the main objective, goals, requirements, constraints, and expected output.
- Minimal Changes: If an existing prompt is provided, improve it only if it's simple. For complex prompts, enhance clarity and add missing elements without altering the original structure.
- Reasoning Before Conclusions: Encourage reasoning steps before any conclusions are reached. ATTENTION! If the user provides examples where the reasoning happens afterward, REVERSE the order! NEVER START EXAMPLES WITH CONCLUSIONS!
- Reasoning Order: Call out reasoning portions of the prompt and conclusion parts (specific fields by name). For each, determine the ORDER in which this is done, and whether it needs to be reversed.
- Conclusion, classifications, or results should ALWAYS appear last.
- Examples: Include high-quality examples if helpful, using placeholders [in brackets] for complex elements.
- What kinds of examples may need to be included, how many, and whether they are complex enough to benefit from p
def greek_vowels_iterator(word):
vowels = 'αάεέηήιίοόυύωώϊϋΐΰ'
diphthongs = {
'αι', 'ει', 'οι', 'υι', 'αυ', 'ευ', 'ου',
'αί', 'εί', 'οί', 'υί', 'αύ', 'εύ', 'ού',
'αη', 'αϊ', 'οη', 'όη', 'οϊ', 'άι', 'όι', 'εϊ'
}
spurious_diphthongs = 'ιυ'
spurious_diphthongs_long = {'οι', 'ει'}
def greek_vowels_iterator(word):
vowels = 'αάεέηήιίοόυύωώϊϋΐΰ'
diphthongs = {
'αι', 'ει', 'οι', 'υι', 'αυ', 'ευ', 'ου',
'αί', 'εί', 'οί', 'υί', 'αύ', 'εύ', 'ού',
'αη', 'αϊ', 'οη', 'όη', 'οϊ', 'άι', 'όι', 'εϊ'
}
spurious_diphthongs = 'ιυ'
spurious_diphthongs_long = {'οι', 'ει'}