Arch Linux with root on LVM and systemd boot.
- Set a bigger font (if using a 4K laptop display)
setfont latarcyrheb-sun32
- To connect to the internet add the ESSID and passphrase
| # build stage | |
| FROM python:3.12-bookworm AS build | |
| RUN curl -LsSf https://astral.sh/uv/install.sh | sh | |
| ENV PATH="/root/.cargo/bin:$PATH" | |
| WORKDIR /app | |
| COPY requirements.txt requirements.txt |
| from injector import Module, provider, singleton, inject | |
| from typing import List, Dict | |
| # Suponha que as interfaces e classes serão definidas em outros arquivos | |
| # Exemplos de interfaces e classes serão definidas mais tarde: | |
| # IProduct, Product, ICustomer, Customer, OrderManager | |
| class AppModule(Module): | |
| def configure(self, binder): | |
| # Vinculando interfaces às suas implementações concretas |
| # This file controls the behavior of Trunk: https://docs.trunk.io/cli | |
| # To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml | |
| version: 0.1 | |
| cli: | |
| version: 1.21.0 | |
| # Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins) | |
| plugins: | |
| sources: | |
| - id: trunk | |
| ref: v1.4.5 |
| |
| |
| ```mermaid | |
| classDiagram | |
| %% Inheritance (Herança) | |
| %% Uma classe (Subclasse) herda características de outra classe (Superclasse). | |
| %% Usado quando um tipo é uma especialização de outro. | |
| Animal <|-- Dog : Inheritance | |
| %% Composition (Composição) | |
| %% Uma classe (Composta) é formada por uma ou mais instâncias de outras classes (Componentes). | |
| %% Usado quando uma parte é essencial para o todo e é destruída junto com o todo. |
| #!/bin/sh | |
| # create conda environment with folder name | |
| # This code here replace all spaces with underscores | |
| # and use the folder name as the environment name | |
| env_name=$(basename "$PWD") | |
| conda env create-n "$env_name" --dry-run |