diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | .obsidian/core-plugins.json | 3 | ||||
-rw-r--r-- | .obsidian/graph.json | 8 | ||||
-rw-r--r-- | .obsidian/workspace.json | 270 | ||||
-rw-r--r-- | A useful Go oneliner to run a fileserver.md | 11 | ||||
-rw-r--r-- | Inheriting from sets.md (renamed from Nix Inherit.md) | 3 | ||||
-rw-r--r-- | Network outage on single hypervisor causes Freenet to shutdown EVERYTHING.md | 1 | ||||
-rw-r--r-- | NixOS - Imperative container management.md | 3 | ||||
-rw-r--r-- | NixOS - container directories.md | 3 | ||||
-rw-r--r-- | Working with Nix shells.md | 5 | ||||
-rw-r--r-- | daily/18-Apr-2025.md | 4 | ||||
-rw-r--r-- | weekly/2025 W16.md | 16 |
12 files changed, 51 insertions, 278 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ab19508 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ + +.obsidian/workspace.json
\ No newline at end of file diff --git a/.obsidian/core-plugins.json b/.obsidian/core-plugins.json index 436f43c..c89a841 100644 --- a/.obsidian/core-plugins.json +++ b/.obsidian/core-plugins.json @@ -26,5 +26,6 @@ "workspaces": false, "file-recovery": true, "publish": false, - "sync": false + "sync": false, + "webviewer": false }
\ No newline at end of file diff --git a/.obsidian/graph.json b/.obsidian/graph.json index f8af85f..4b5202e 100644 --- a/.obsidian/graph.json +++ b/.obsidian/graph.json @@ -1,7 +1,7 @@ { - "collapse-filter": true, - "search": "", - "showTags": false, + "collapse-filter": false, + "search": "tag:#work", + "showTags": true, "showAttachments": false, "hideUnresolved": false, "showOrphans": true, @@ -17,6 +17,6 @@ "repelStrength": 10, "linkStrength": 1, "linkDistance": 500, - "scale": 0.13348388671875, + "scale": 1.0136432647705078, "close": true }
\ No newline at end of file diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json deleted file mode 100644 index 3205eda..0000000 --- a/.obsidian/workspace.json +++ /dev/null @@ -1,270 +0,0 @@ -{ - "main": { - "id": "7f0b11e44951b0ae", - "type": "split", - "children": [ - { - "id": "ec3db664ff2276a8", - "type": "tabs", - "children": [ - { - "id": "c28bb2cb6b37ee8a", - "type": "leaf", - "state": { - "type": "markdown", - "state": { - "file": "Using Libvirt to manage QEMU image bitmaps.md", - "mode": "source", - "backlinks": true, - "source": false - }, - "icon": "lucide-file", - "title": "Using Libvirt to manage QEMU image bitmaps" - } - }, - { - "id": "1308c4e6460da0ff", - "type": "leaf", - "state": { - "type": "markdown", - "state": { - "file": "Examples of proper JQ usage.md", - "mode": "source", - "backlinks": true, - "source": false - }, - "icon": "lucide-file", - "title": "Examples of proper JQ usage" - } - }, - { - "id": "f665cbd99b48e2f8", - "type": "leaf", - "state": { - "type": "markdown", - "state": { - "file": "Bash process substition (tmp file).md", - "mode": "source", - "backlinks": true, - "source": false - }, - "icon": "lucide-file", - "title": "Bash process substition (tmp file)" - } - }, - { - "id": "b702b296d7bec9aa", - "type": "leaf", - "state": { - "type": "markdown", - "state": { - "file": "About keyboard layout on Wayland.md", - "mode": "source", - "backlinks": true, - "source": false - }, - "icon": "lucide-file", - "title": "About keyboard layout on Wayland" - } - }, - { - "id": "d5736e0335ccad0f", - "type": "leaf", - "state": { - "type": "markdown", - "state": { - "file": "Nix derivations.md", - "mode": "source", - "backlinks": true, - "source": false - }, - "icon": "lucide-file", - "title": "Nix derivations" - } - } - ], - "currentTab": 4 - } - ], - "direction": "vertical" - }, - "left": { - "id": "04edd518860eb1eb", - "type": "split", - "children": [ - { - "id": "2397effb8763e885", - "type": "tabs", - "children": [ - { - "id": "f1111e0bbe22e125", - "type": "leaf", - "state": { - "type": "file-explorer", - "state": { - "sortOrder": "alphabetical" - }, - "icon": "lucide-folder-closed", - "title": "Files" - } - }, - { - "id": "a7d38b9dfcdb980e", - "type": "leaf", - "state": { - "type": "search", - "state": { - "query": "stdenv:", - "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" - } - } - ], - "currentTab": 1 - } - ], - "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 - }, - "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": "d5736e0335ccad0f", - "lastOpenFiles": [ - "Nix flake.md", - "Nix derivations.md", - "About keyboard layout on Wayland.md", - "Automatic configuration deployment with NixOS.md", - "Booting a NixOS on OpenStack.md", - "Build custom modules as profiles to manage various NixOS hosts.md", - "daily/25-Apr-2025.md", - "Ansible ad-hoc commands.md", - "Bash process substition (tmp file).md", - "Examples of proper JQ usage.md", - "Using JQ to construct an array and filtering empty strings.md", - "Using Libvirt to manage QEMU image bitmaps.md", - "daily/16-Apr-2025.md", - "daily/15-Apr-2025.md", - "daily/14-Apr-2025.md", - "daily/17-Apr-2025.md", - "daily/18-Apr-2025.md", - "daily/22-Apr-2025.md", - "daily/23-Apr-2025.md", - "daily/24-Apr-2025.md", - "OVN upgrade.md", - "OVN Clusters.md", - "Prometheus endpoints.md", - "ceilometer data is going into Prometheus as Ihor fixed the out of order issue.md", - "GroupVPS Platform.md", - "Income tax statement and reductions from mortgage.md", - "daily", - "ESP", - "Excalidraw" - ] -}
\ No newline at end of file diff --git a/A useful Go oneliner to run a fileserver.md b/A useful Go oneliner to run a fileserver.md new file mode 100644 index 0000000..97037da --- /dev/null +++ b/A useful Go oneliner to run a fileserver.md @@ -0,0 +1,11 @@ +--- +tags: + - golang + - howto +--- +Multiple times I wish I had remembered this one-liner, now I come across it again whilst reading about Golang/WASM. So that's where it was from! Here it is: + +```sh +# install goexec: go install github.com/shurcooL/goexec@latest +goexec 'http.ListenAndServe(`:8080`, http.FileServer(http.Dir(`.`)))' +``` diff --git a/Nix Inherit.md b/Inheriting from sets.md index 4a8adb0..556f3d4 100644 --- a/Nix Inherit.md +++ b/Inheriting from sets.md @@ -1,6 +1,7 @@ --- tags: - - nix-lang + - nix + - programming --- ```nix let x = 123; in diff --git a/Network outage on single hypervisor causes Freenet to shutdown EVERYTHING.md b/Network outage on single hypervisor causes Freenet to shutdown EVERYTHING.md index d342ab9..640d35f 100644 --- a/Network outage on single hypervisor causes Freenet to shutdown EVERYTHING.md +++ b/Network outage on single hypervisor causes Freenet to shutdown EVERYTHING.md @@ -2,6 +2,7 @@ tags: - work - freenet + - outage --- [[Freenet CPU steal graph]] [[Random notes on Freenet deployment]] diff --git a/NixOS - Imperative container management.md b/NixOS - Imperative container management.md index 7099e6e..4dba2ec 100644 --- a/NixOS - Imperative container management.md +++ b/NixOS - Imperative container management.md @@ -1,7 +1,6 @@ As root using `nixos-container`. -Container root: `/var/lib/nixos-containers -Config file: `/etc/nixos-containers` +[[NixOS - container directories]] Create with: `nixos-container create foo`. During create we can pass `--config` or `--config-file`. diff --git a/NixOS - container directories.md b/NixOS - container directories.md new file mode 100644 index 0000000..8c02bad --- /dev/null +++ b/NixOS - container directories.md @@ -0,0 +1,3 @@ + +Container root: `/var/lib/nixos-containers +Config file: `/etc/nixos-containers`
\ No newline at end of file diff --git a/Working with Nix shells.md b/Working with Nix shells.md index c042edd..5a073a9 100644 --- a/Working with Nix shells.md +++ b/Working with Nix shells.md @@ -1,5 +1,10 @@ +--- +tags: + - nix +--- Basic invocation: `nix-shell -p [ pkgs ... ]` +Nix shells are also used for [[Exposing development headers on Nixos]] # Shebang ``` #! /usr/bin/env nix-shell diff --git a/daily/18-Apr-2025.md b/daily/18-Apr-2025.md index 2b9620d..7105132 100644 --- a/daily/18-Apr-2025.md +++ b/daily/18-Apr-2025.md @@ -1,3 +1,7 @@ +--- +tags: [] +--- +# Today Encountered oom on lxchosts. Turned out that octavia wsgi was using huge amounts of ram. First we disabled the apache on all octavia to prevent more oom kills. After that Erik limited their allowed memory usage, and we turned them back on. diff --git a/weekly/2025 W16.md b/weekly/2025 W16.md new file mode 100644 index 0000000..bd3f392 --- /dev/null +++ b/weekly/2025 W16.md @@ -0,0 +1,16 @@ +This is the first week in the new format! I almost forgot about doing this.. Let's try to keep it up! + +* [[14-Apr-2025]] +- [[15-Apr-2025]] +- [[16-Apr-2025]] +- [[17-Apr-2025]] + +QA with Webglobe team, who are developing another control panel. Was short. Happy that Rutger was there, they asked some question that I wouldn't be able to answer easily. Which means there is a gap in my knowledge. I added a note about this in my kast. + +We did an interview with Ali. Ali has prior OpenStack experience and seems like a chill guy. We'll have a technical interview at the office on Tuesday. Looking forward to it! + +On Wednesday we were supposed to have an interview with Isabel who couldn't make it. Haven't heard yet if she will meet with us another time. + +Fixed nexthop/gateway in Puppet neutron. Learnt that updating Puppet dependencies in the normal way is nearly impossible. Simply slapped the commit hash in the lock file instead. + +Encountered OOM situation due to Octavia. Learned a little bit about memory profiling. Not yet found the actual cause sadly.
\ No newline at end of file |