summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-05-06 17:51:09 +0200
committerJasper Ras <jras@hostnet.nl>2025-05-06 17:51:09 +0200
commitbb5c734d7445097e94c4a602f5ce066a836dbead (patch)
treef7c3a85f2d2d3af62561f1ef6c3cebe90e388b36
parent50626752711b563185eda78ba25c145079111d14 (diff)
vault backup: 2025-05-06 17:51:09
-rw-r--r--.obsidian/workspace.json224
-rw-r--r--Git ignore.md12
-rw-r--r--Globbing patterns.md24
-rw-r--r--Ignoring a file that is already committed.md14
-rw-r--r--daily/archive/01-May-2025.md (renamed from daily/01-May-2025.md)0
-rw-r--r--weekly/2025 W18.md3
6 files changed, 53 insertions, 224 deletions
diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json
deleted file mode 100644
index 6016eeb..0000000
--- a/.obsidian/workspace.json
+++ /dev/null
@@ -1,224 +0,0 @@
-{
- "main": {
- "id": "7f0b11e44951b0ae",
- "type": "split",
- "children": [
- {
- "id": "4fd0f768c6bb245c",
- "type": "tabs",
- "children": [
- {
- "id": "17cd99f144675d66",
- "type": "leaf",
- "state": {
- "type": "markdown",
- "state": {
- "file": "daily/archive/22-Apr-2025.md",
- "mode": "source",
- "source": false,
- "backlinks": true,
- "backlinkOpts": {
- "collapseAll": false,
- "extraContext": false,
- "sortOrder": "alphabetical",
- "showSearch": false,
- "searchQuery": "",
- "backlinkCollapsed": false,
- "unlinkedCollapsed": true
- }
- },
- "icon": "lucide-file",
- "title": "22-Apr-2025"
- }
- }
- ]
- }
- ],
- "direction": "vertical"
- },
- "left": {
- "id": "04edd518860eb1eb",
- "type": "split",
- "children": [
- {
- "id": "2397effb8763e885",
- "type": "tabs",
- "children": [
- {
- "id": "f1111e0bbe22e125",
- "type": "leaf",
- "state": {
- "type": "file-explorer",
- "state": {
- "sortOrder": "alphabetical",
- "autoReveal": false
- },
- "icon": "lucide-folder-closed",
- "title": "Files"
- }
- },
- {
- "id": "a7d38b9dfcdb980e",
- "type": "leaf",
- "state": {
- "type": "search",
- "state": {
- "query": "",
- "matchingCase": false,
- "explainSearch": false,
- "collapseAll": true,
- "extraContext": false,
- "sortOrder": "alphabetical"
- },
- "icon": "lucide-search",
- "title": "Search"
- }
- },
- {
- "id": "ab6d5f81f8263ef7",
- "type": "leaf",
- "state": {
- "type": "bookmarks",
- "state": {},
- "icon": "lucide-bookmark",
- "title": "Bookmarks"
- }
- }
- ]
- }
- ],
- "direction": "horizontal",
- "width": 300
- },
- "right": {
- "id": "4c2d9261a6d27fe3",
- "type": "split",
- "children": [
- {
- "id": "72d892cdc5001398",
- "type": "tabs",
- "children": [
- {
- "id": "85b7e37f12e873f6",
- "type": "leaf",
- "state": {
- "type": "backlink",
- "state": {
- "file": "NixOS - Imperative container management.md",
- "collapseAll": false,
- "extraContext": false,
- "sortOrder": "alphabetical",
- "showSearch": false,
- "searchQuery": "",
- "backlinkCollapsed": false,
- "unlinkedCollapsed": true
- },
- "icon": "links-coming-in",
- "title": "Backlinks for NixOS - Imperative container management"
- }
- },
- {
- "id": "0cd81621ed683245",
- "type": "leaf",
- "state": {
- "type": "outgoing-link",
- "state": {
- "file": "NixOS - Imperative container management.md",
- "linksCollapsed": false,
- "unlinkedCollapsed": true
- },
- "icon": "links-going-out",
- "title": "Outgoing links from NixOS - Imperative container management"
- }
- },
- {
- "id": "2196498eb2fbdd42",
- "type": "leaf",
- "state": {
- "type": "tag",
- "state": {
- "sortOrder": "frequency",
- "useHierarchy": true,
- "showSearch": false,
- "searchQuery": ""
- },
- "icon": "lucide-tags",
- "title": "Tags"
- }
- },
- {
- "id": "00a689c4c9b061ac",
- "type": "leaf",
- "state": {
- "type": "outline",
- "state": {},
- "icon": "lucide-list",
- "title": "Outline"
- }
- },
- {
- "id": "b0f1c4ab2b436d68",
- "type": "leaf",
- "state": {
- "type": "git-view",
- "state": {},
- "icon": "git-pull-request",
- "title": "Source Control"
- }
- }
- ],
- "currentTab": 4
- }
- ],
- "direction": "horizontal",
- "width": 300
- },
- "left-ribbon": {
- "hiddenItems": {
- "switcher:Open quick switcher": false,
- "graph:Open graph view": false,
- "canvas:Create new canvas": false,
- "daily-notes:Open today's daily note": false,
- "templates:Insert template": false,
- "command-palette:Open command palette": false,
- "obsidian-git:Open Git source control": false,
- "obsidian-excalidraw-plugin:New drawing": false
- }
- },
- "active": "f1111e0bbe22e125",
- "lastOpenFiles": [
- "daily/archive/23-Apr-2025.md",
- "daily/archive/24-Apr-2025.md",
- "daily/archive/25-Apr-2025.md",
- "weekly/2025 W17.md",
- "daily/archive/22-Apr-2025.md",
- "daily/archive/18-Apr-2025.md",
- "daily/archive/17-Apr-2025.md",
- "weekly/2025 W16.md",
- "daily/archive/10-Apr-2025.md",
- "daily/archive/14-Apr-2025.md",
- "daily/archive",
- "Cleaning the Nix store.md",
- "A nice way to test flake output.md",
- "A reason for becoming senior is that when Rutger is off I take most of his responsibilities.md",
- "A useful Go oneliner to run a fileserver.md",
- "conflict-files-obsidian-git.md",
- "ceilometer data is going into Prometheus as Ihor fixed the out of order issue.md",
- "Using JQ to construct an array and filtering empty strings.md",
- "Use ssh -O exit user@host to exit a control master session.md",
- "Reinstalling packages with APT.md",
- "Prometheus endpoints.md",
- "OVN Clusters.md",
- "Nix flake.md",
- "Nix derivations.md",
- "Income tax statement and reductions from mortgage.md",
- "Hypotheekrenteaftrek.md",
- "GroupVPS Platform.md",
- "Untitled.canvas",
- "weekly",
- "archive",
- "daily",
- "ESP",
- "Excalidraw"
- ]
-} \ No newline at end of file
diff --git a/Git ignore.md b/Git ignore.md
new file mode 100644
index 0000000..d86cc07
--- /dev/null
+++ b/Git ignore.md
@@ -0,0 +1,12 @@
+---
+tags:
+ - git
+---
+File statuses:
+- tracked: previously staged or committed
+- untracked: not staged or committed
+- ignored: explicit ignore
+
+Ignore files by adding them (or patterns) to `.gitignore` . Uses [[Globbing patterns]].
+
+[[Ignoring a file that is already committed]] \ No newline at end of file
diff --git a/Globbing patterns.md b/Globbing patterns.md
new file mode 100644
index 0000000..12b7582
--- /dev/null
+++ b/Globbing patterns.md
@@ -0,0 +1,24 @@
+---
+tags:
+ - linux
+---
+https://linux.die.net/man/7/glob
+
+**Wildcards**
+- \*: any str, including empty
+- ?: any single char
+
+**Character classes** are wrapped with []. First char can't be ! and it can't be empty. Thus to match [ ] and ! we need to wrap them like so `[][!]`
+
+**Ranges** two chars separated by `-`.
+
+**Complementation** `[!..]` match any chars not in the character class.
+
+**Pathnames** globbing applies to component seperately. `/` not allowed in character classes. Wildcards don't match `/`.
+Dot files must be explicitly matched, thus `*` will not match it.
+
+**Empty lists** A wildcard can expand into an empty list (e.g `*.gif` where no .gif exist). If the wildcard expands to an empty list or is invalid it will remain unchanged per POSIX specifications.
+In bash `shopt -s nullglob` enables expanding into an empty list.
+
+### Difference with Regular Expressions
+With globbing we match filenames rather than text. \ No newline at end of file
diff --git a/Ignoring a file that is already committed.md b/Ignoring a file that is already committed.md
new file mode 100644
index 0000000..33fdfb2
--- /dev/null
+++ b/Ignoring a file that is already committed.md
@@ -0,0 +1,14 @@
+---
+tags:
+ - git
+---
+This is where `git rm` comes in: If we add `--cached` it removes a file from the git repository (but it will stay in the working directory).
+
+```bash
+$ echo debug.log >> .gitignore
+  
+$ git rm --cached debug.log
+rm 'debug.log'
+  
+$ git commit -m "Start ignoring debug.log"
+```
diff --git a/daily/01-May-2025.md b/daily/archive/01-May-2025.md
index bd368d6..bd368d6 100644
--- a/daily/01-May-2025.md
+++ b/daily/archive/01-May-2025.md
diff --git a/weekly/2025 W18.md b/weekly/2025 W18.md
new file mode 100644
index 0000000..caebf1c
--- /dev/null
+++ b/weekly/2025 W18.md
@@ -0,0 +1,3 @@
+[[01-May-2025]]
+
+Besides the OVN upgrades we didn't do very much interesting here because being cooked from the nightwork. \ No newline at end of file