diff --git a/.zk/notebook.db b/.zk/notebook.db index 6f9dc90..cc99cda 100644 Binary files a/.zk/notebook.db and b/.zk/notebook.db differ diff --git a/README.md b/README.md index 9f5a276..b57dd37 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ computer science. It is a [Zettelkasten](https://en.wikipedia.org/wiki/Zettelkasten) work in progress. I've recently converted the topic-based subdirectories into a single flat directory structure organised by tags. I'm in the process of partitioning -longer notes into smaller informational units. +longer notes into smaller units. I use the [zk](https://github.com/zk-org/zk) CLI package to help with indexing and task automation alongside its [zk-nvim](https://github.com/zk-org/zk-nvim) @@ -22,48 +22,8 @@ Neovim wrapper. I occassionally utilise [Obsidian](https://obsidian.md/) alongside Neovim for when I want to view my notes as a knowledge graph or read them alongside their rich content (images, videos etc). -## Commands - -Commands are local to my Linux machine, specified in my -[dotfiles](https://github.com/thomasabishop/dotfiles). They are how I generate -new entries and manage the knowledge base. - -| Alias | Command | Output | -| -------------- | ---------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `z` | `cd $HOME/repos/eolas` | Access Zettelkasten | -| `zn` | `zk new --title ...` | Create new entry from template | -| ` zk` | `:ZkNotes` | Access Zettelkasten from anywhere within `nvim` | -| ` zi` | `:ZkIndex` | Index Zettelkasten within `nvim` | -| ` zt` | `:ZkTags` | View tags via [Telescope](https://github.com/nvim-telescope/telescope.nvim) within `nvim` | -| ` ztt` | `:ObsidianTags` | View tags in a Vim buffer via within `nvim` using [obsidian-nvim](https://github.com/epwalsh/obsidian.nvim) | -| ` zl` | `:ZkLinks` | View links in current entry via Telescope within `nvim`, using [obsidian-nvim](https://github.com/epwalsh/obsidian.nvim) | -| ` zb` | `:ZkBacklinks` | View backlinks to current entry via Telescope within `nvim`, using [obsidian-nvim](https://github.com/epwalsh/obsidian.nvim) | - -## Frontmatter - -When I run the `zn` command this generates a new Zettelkasten entry with the -following frontmatter template: - -```yaml ---- -id: o8yzcrtv -title: test -tags: [] -created: Saturday, February 17, 2024 | 17:44 ---- -``` - ## Scripts The [scripts](/scripts) directory contains several Bash and Python scripts I use for general housekeeping, such as formatting image URLs, removing unused assets, and autosaving. - -## Autosave - -I use a [bash script](./scripts/auto_save.sh) to create autosave functionality -via Git. This script runs every 15 minutes via a -[systemd time](https://github.com/thomasabishop/dotfiles/tree/master/systemd/zettelkasten_autosave) -timer. It tidies up the directory (removes unused images, ensures all file names -use underscores rather than spaces and hyphens etc) and commits and pushes to -GitHub. diff --git a/zk/2_POST.md b/zk/2_POST.md index 63482ab..47698fa 100644 --- a/zk/2_POST.md +++ b/zk/2_POST.md @@ -62,7 +62,7 @@ client. We should accept alterations to the database that are not first validated. We can use the -[Joi validator](Validation.md) to vet +[Joi validator](Validation_in_NodeJS.md) to vet the request: ```js diff --git a/zk/CPU_architecture.md b/zk/CPU_architecture.md index 63d8002..fcf5663 100644 --- a/zk/CPU_architecture.md +++ b/zk/CPU_architecture.md @@ -1,7 +1,6 @@ --- tags: - CPU - - clock - computer-architecture --- diff --git a/zk/Circuits.md b/zk/Circuits.md index c7e4369..e70918e 100644 --- a/zk/Circuits.md +++ b/zk/Circuits.md @@ -1,7 +1,6 @@ --- tags: - electricity - - circuits - electronics --- diff --git a/zk/Clock_signals.md b/zk/Clock_signals.md index a93f1f0..e8866cf 100644 --- a/zk/Clock_signals.md +++ b/zk/Clock_signals.md @@ -2,7 +2,6 @@ tags: - binary - memory - - clock - electromagnetism - hardware --- diff --git a/zk/Expansions_and_substitutions.md b/zk/Expansions_and_substitutions.md index ce38073..57d39c9 100644 --- a/zk/Expansions_and_substitutions.md +++ b/zk/Expansions_and_substitutions.md @@ -79,7 +79,7 @@ the second list against them. ## Parameter expansion: `${...}` We use most frequently for returning the value of stored -[variables](Variables_and_data_types.md). +[variables](Variables_and_data_types_in_Bash.md). Techically we do not have to use the braces, we can retrieve with just `$var` however it's better to use them to minimise interpretation fuck-ups which happen a lot. diff --git a/zk/Flip_flops.md b/zk/Flip_flops.md index 10aea4b..597a3a5 100644 --- a/zk/Flip_flops.md +++ b/zk/Flip_flops.md @@ -1,5 +1,8 @@ --- -tags: [logic-gates, binary, memory, clock] +tags: + - logic-gates + - binary + - memory --- # Flip-Flops diff --git a/zk/Monitoring_processes_and_resources.md b/zk/Monitoring_processes_and_resources.md index 48129e2..43e17bf 100644 --- a/zk/Monitoring_processes_and_resources.md +++ b/zk/Monitoring_processes_and_resources.md @@ -61,7 +61,7 @@ _Here I have pressed `u` to show only the processes associated with my user:_ ``` - `VIRT` - The total amount of - [virtual memory](Virtual_memory_and_the_MMU.md) used by + [virtual memory](Virtual_memory_and_the_MMU_in_Linux.md) used by the process including: program code, data, shared libraries, pages that have been swapped, pages that have been mapped but not used. - `RES` @@ -69,7 +69,7 @@ _Here I have pressed `u` to show only the processes associated with my user:_ - The non swapped _physical_ memory the process has used - `SHR` - The size of the process's - [shared pages](Virtual_memory_and_the_MMU.md#shared-pages) + [shared pages](Virtual_memory_and_the_MMU_in_Linux.md#shared-pages) - `S` - Status: - S for sleeping (idle) @@ -168,7 +168,7 @@ $ uptime We know that processes primarily interact with virtual memory in the form of pages which are then translated to physical blocks by the kernel via the -[MMU](Virtual_memory_and_the_MMU.md). There are several tools +[MMU](Virtual_memory_and_the_MMU_in_Linux.md). There are several tools which provide windows onto this process. ### System page size diff --git a/zk/The_kernel.md b/zk/The_kernel.md index 20df89e..f11a68d 100644 --- a/zk/The_kernel.md +++ b/zk/The_kernel.md @@ -64,7 +64,7 @@ It has the following jobs to manage: - Allowing for the use of disk space as auxiliary memory > Modern CPUs include a -> [memory management unit](Virtual_memory_and_the_MMU.md#the-memory-management-unit-mmu) +> [memory management unit](Virtual_memory_and_the_MMU_in_Linux.md#the-memory-management-unit-mmu) > which provides the kernel with **virtual** memory. In this scenario, memory > isn't directly accessed by the process instead it works on the assumption that > is has access to the entire memory of the machine and this is then translated diff --git a/zk/Three_bit_counter.md b/zk/Three_bit_counter.md index db0df1e..cd8c71b 100644 --- a/zk/Three_bit_counter.md +++ b/zk/Three_bit_counter.md @@ -1,5 +1,8 @@ --- -tags: [logic-gates, binary, memory, clock] +tags: + - logic-gates + - binary + - memory --- # 3-bit Counter diff --git a/zk/User_Space.md b/zk/User_Space.md index 578147d..67825d2 100644 --- a/zk/User_Space.md +++ b/zk/User_Space.md @@ -1,5 +1,6 @@ --- tags: + - operating-systems --- # User space diff --git a/zk/User_management.md b/zk/User_management_in_Linux.md similarity index 92% rename from zk/User_management.md rename to zk/User_management_in_Linux.md index cb76a14..4fc8682 100644 --- a/zk/User_management.md +++ b/zk/User_management_in_Linux.md @@ -1,5 +1,7 @@ --- -tags: [] +tags: + - Linux + - procedural --- # User management diff --git a/zk/Using_env_vars.md b/zk/Using_env_vars.md deleted file mode 100644 index b58fb6e..0000000 --- a/zk/Using_env_vars.md +++ /dev/null @@ -1 +0,0 @@ -// Add notes on using env vars locally and in prod diff --git a/zk/Utilities,_operators,_flags.md b/zk/Utilities_operators_flags.md similarity index 100% rename from zk/Utilities,_operators,_flags.md rename to zk/Utilities_operators_flags.md diff --git a/zk/Validating_Mongoose_schemas.md b/zk/Validating_Mongoose_schemas.md index 9cc166d..cce4998 100644 --- a/zk/Validating_Mongoose_schemas.md +++ b/zk/Validating_Mongoose_schemas.md @@ -31,7 +31,7 @@ the property of `required` for a cell in the table. If we didn't set any validation via Mongoose, Mongo would accept whatever we sent to it. What is the relationship between this Mongoose validation and the -[Joi](Validation.md) validation that we +[Joi](Validation_in_NodeJS.md) validation that we use when validating API requests in Node/Express? They complement each other. We use Joi to validate the client request to the API. If this is valid, the process would then move onto the next stage which would be transforming the data from a diff --git a/zk/Validation.md b/zk/Validation_in_NodeJS.md similarity index 100% rename from zk/Validation.md rename to zk/Validation_in_NodeJS.md diff --git a/zk/Variable_indirection.md b/zk/Variable_indirection_in_Bash.md similarity index 100% rename from zk/Variable_indirection.md rename to zk/Variable_indirection_in_Bash.md diff --git a/zk/Variables_and_data_types.md b/zk/Variables_and_data_types_in_Bash.md similarity index 100% rename from zk/Variables_and_data_types.md rename to zk/Variables_and_data_types_in_Bash.md diff --git a/zk/variables_in_c.md b/zk/Variables_in_C.md similarity index 100% rename from zk/variables_in_c.md rename to zk/Variables_in_C.md diff --git a/zk/Views_in_relational_databases.md b/zk/Views_in_relational_databases.md index 8c3aa6a..fc45817 100644 --- a/zk/Views_in_relational_databases.md +++ b/zk/Views_in_relational_databases.md @@ -1,5 +1,6 @@ --- -tags: [] +tags: + - databases --- # Views in relational databases diff --git a/zk/Virtual_memory_and_the_MMU.md b/zk/Virtual_memory_and_the_MMU_in_Linux.md similarity index 99% rename from zk/Virtual_memory_and_the_MMU.md rename to zk/Virtual_memory_and_the_MMU_in_Linux.md index 9c1f427..d0a91c3 100644 --- a/zk/Virtual_memory_and_the_MMU.md +++ b/zk/Virtual_memory_and_the_MMU_in_Linux.md @@ -1,5 +1,7 @@ --- -tags: [memory] +tags: + - memory + - Linux --- # Virtual memory and the Memory Management Unit diff --git a/zk/virtual_private_cloud.md b/zk/Virtual_private_cloud.md similarity index 100% rename from zk/virtual_private_cloud.md rename to zk/Virtual_private_cloud.md diff --git a/zk/What_are_disks.md b/zk/What_are_disks.md index 126244c..246a834 100644 --- a/zk/What_are_disks.md +++ b/zk/What_are_disks.md @@ -1,6 +1,7 @@ --- tags: - disks + - computer-architecture --- # What are disks? diff --git a/zk/Why_computers_use_binary.md b/zk/Why_computers_use_binary.md index a37722c..414c1db 100644 --- a/zk/Why_computers_use_binary.md +++ b/zk/Why_computers_use_binary.md @@ -1,5 +1,7 @@ --- -tags: [binary] +tags: + - binary + - computer-architecture --- # Why computers use binary