update maintanance

This commit is contained in:
michi
2026-02-15 12:57:51 +01:00
parent c8333e5997
commit 68c749becc
18 changed files with 322 additions and 153 deletions

View File

@@ -63,7 +63,7 @@ Löscht den letzten Commit und alle darin enthaltenen Änderungen unwiderruflich
| Befehl | Beschreibung |
| :--- | :--- |
| `htop` / `btop` | Interaktiver Prozess-Manager (CPU/RAM). |
| `ps aux | grep [app]` | Zeigt spezifische laufende Prozesse. |
| `ps aux (pipe) grep [app]` | Zeigt spezifische laufende Prozesse. |
| `kill -9 [PID]` | Beendet Prozess hart (SIGKILL). |
| `systemctl status [dienst]` | Prüft Status eines Service (z.B. docker, sshd). |
| `journalctl -xe` | Zeigt System-Logs (bei Fehlern). |
@@ -115,4 +115,112 @@ Löscht den letzten Commit und alle darin enthaltenen Änderungen unwiderruflich
| `ssh -p 2222 user@ip` | Verbindet auf spezifischem Port. |
| `ssh-copy-id user@ip` | Kopiert den Public Key auf den Server (Passwortloses Login). |
| `ip a` | Zeigt eigene IP-Adressen und Interfaces. |
| `ss -tulpn` | Zeigt offene Ports und lauschende Dienste (Sockets). |
| `ss -tulpn` | Zeigt offene Ports und lauschende Dienste (Sockets). |
# ledger
1\. Core Syntax: The Journal Entry
Every transaction must satisfy the **Accounting Equation** (AE) where the sum of all postings equals zero (∑\=0).
Code snippet
```
YYYY-MM-DD [Status] Description
Account:Name:Subaccount [Amount] [Unit]
Account:Other:Subaccount [Amount] [Unit]
```
* **Indentation:** At least two spaces for postings.
* **Status Marks:** `*` for **Cleared** (C), `!` for **Pending** (P).
* **Automatic Balancing:** You can leave **one** amount blank; the system calculates the remainder to maintain equilibrium.
---
## 2\. Account Types (Standard Hierarchy)
| Category | Account Prefix | Normal Balance | Physics Analogy |
| --- | --- | --- | --- |
| **Assets** | `assets:` | Debit (+) | Potential Energy (Stored) |
| **Liabilities** | `liabilities:` | Credit (-) | External Tension (Debt) |
| **Equity** | `equity:` | Credit (-) | System Origin / Initial State |
| **Income** | `income:` | Credit (-) | Energy Inflow (Flux) |
| **Expenses** | `expenses:` | Debit (+) | Energy Dissipation (Entropy) |
Export to Sheets
---
## 3\. Advanced Notation
### Comments and Metadata
* `;` or `#` or `%` starts a comment.
* `; tag: value` defines metadata for custom filtering.
### Balance Assertions (BA)
Force the system to validate the state at a specific point in time.
Code snippet
```
2026-02-11 * Grocery Store
expenses:food $50.00
assets:checking $-50.00 == $1000.00 ; Fails if balance != $1000
```
### Commodities and Prices
Define exchange rates between different units (e.g., Currency or Stocks).
Code snippet
```
P 2026-02-11 15:00:00 AAPL $230.00 ; Price of 1 AAPL in USD
```
---
## 4\. Command Line Interface (CLI) Quick Ref
| Goal | Command | Key Flags |
| --- | --- | --- |
| **Current Totals** | `hledger bal` | `-p` (period), `-R` (real) |
| **Transaction Log** | `hledger reg` | `-W` (weekly), `-M` (monthly) |
| **Verify Integrity** | `hledger check` | Useful after git pull |
| **Interactive UI** | `hledger-ui` | `--watch` (auto-reload on save) |
| **Export Data** | `hledger print` | `-o file.csv` |
Export to Sheets
---
## 5\. hledger-Specific Features
Unlike the original **Ledger** (LGR), **hledger** (HLGR) includes specialized directives:
* **`account`**: Define account properties.
* **`alias`**: Rename accounts on the fly.
* **`include`**: Modularize your journal (e.g., `include 2025.journal`).
---
## 6\. Workflow: Git + hledger
Since your journal is plain text, use this workflow to maintain a **Distributed Ledger** (DL):
1. **Edit:** Update your `.journal` file.
2. **Verify:** Run `hledger check`.
3. **Commit:** `git commit -am "Update transactions"`
4. **Sync:** `git pull --rebase && git push`