From a379427be2768c9262a84079b69f47dcdda67590 Mon Sep 17 00:00:00 2001 From: conectado Date: Wed, 9 Jul 2025 13:25:26 -0300 Subject: [PATCH 1/5] add codespell to check for typos --- .codespell-ignore | 1 + .github/workflows/codespell.yml | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 .codespell-ignore create mode 100644 .github/workflows/codespell.yml diff --git a/.codespell-ignore b/.codespell-ignore new file mode 100644 index 0000000..9ac17d5 --- /dev/null +++ b/.codespell-ignore @@ -0,0 +1 @@ +crate diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 0000000..b0c3a7a --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,17 @@ +name: Codespell + +on: [push, pull_request] + +jobs: + codespell: + name: Check for misspellings + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Run Codespell + uses: codespell-project/actions-codespell@v2 + with: + codespell_args: "--ignore-words .codespell-ignore --skip *.svg" From 269ede64d3cc7415c0b0d743c53bda6df9ee22fc Mon Sep 17 00:00:00 2001 From: conectado Date: Wed, 9 Jul 2025 13:28:24 -0300 Subject: [PATCH 2/5] fix codespell workflow --- .codespell-ignore => .codespellignore | 0 .github/workflows/codespell.yml | 4 +++- 2 files changed, 3 insertions(+), 1 deletion(-) rename .codespell-ignore => .codespellignore (100%) diff --git a/.codespell-ignore b/.codespellignore similarity index 100% rename from .codespell-ignore rename to .codespellignore diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index b0c3a7a..c231544 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -14,4 +14,6 @@ jobs: - name: Run Codespell uses: codespell-project/actions-codespell@v2 with: - codespell_args: "--ignore-words .codespell-ignore --skip *.svg" + check_filenames: true + ignore_words_file: .codespellignore + skip: *.svg From 49b615da7fa8b2f42c16977c397b95beaff88e08 Mon Sep 17 00:00:00 2001 From: conectado Date: Wed, 9 Jul 2025 13:30:11 -0300 Subject: [PATCH 3/5] fix typo on yml file --- .github/workflows/codespell.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index c231544..cac1693 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -16,4 +16,4 @@ jobs: with: check_filenames: true ignore_words_file: .codespellignore - skip: *.svg + skip: "*.svg" From fc5c1e38b929d08d0c137622c0336f2aa65ebe21 Mon Sep 17 00:00:00 2001 From: conectado Date: Wed, 9 Jul 2025 13:32:18 -0300 Subject: [PATCH 4/5] fix workflow run for codespell --- .github/workflows/codespell.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index cac1693..09cff7a 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -1,6 +1,10 @@ name: Codespell -on: [push, pull_request] +on: + push: + branches: + - main + pull_request: jobs: codespell: From f1e68bc4c13a3b8165ef5c5b86a4bb060026c169 Mon Sep 17 00:00:00 2001 From: conectado Date: Wed, 9 Jul 2025 13:35:32 -0300 Subject: [PATCH 5/5] fix typos detected by codespell --- content/temporaries-rabbit-hole.md | 2 +- posts/2025-05-23/ebpf-firewall/README.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/content/temporaries-rabbit-hole.md b/content/temporaries-rabbit-hole.md index 8f12b35..1dd7b26 100644 --- a/content/temporaries-rabbit-hole.md +++ b/content/temporaries-rabbit-hole.md @@ -223,7 +223,7 @@ So, the question is, how temporary is a temporary really? That's to say, we have ## Temporaries' lifetimes -Now we have the neccesary definitions to talk about what makes temporaries temporary. Well, not exactly, temporaries are just temporaries because they are anonymous, meaning there's no alias associated with that memory location. It has nothing to do with their lifetime. But you could ask, since there's no associated alias, then what's their lifetime? And you would be asking all the right questions. +Now we have the necessary definitions to talk about what makes temporaries temporary. Well, not exactly, temporaries are just temporaries because they are anonymous, meaning there's no alias associated with that memory location. It has nothing to do with their lifetime. But you could ask, since there's no associated alias, then what's their lifetime? And you would be asking all the right questions. Let's go to the relevant part of the definition of a temporary. diff --git a/posts/2025-05-23/ebpf-firewall/README.md b/posts/2025-05-23/ebpf-firewall/README.md index b5e7292..c031abd 100644 --- a/posts/2025-05-23/ebpf-firewall/README.md +++ b/posts/2025-05-23/ebpf-firewall/README.md @@ -521,12 +521,12 @@ And most importantly, we lookup in the rulestore if the `port` that arrived exis if left == 0 { false } else { - let indx = left - 1; - if indx >= MAX_RULES { + let index = left - 1; + if index >= MAX_RULES { return false; } // SAFETY: Again, we are already bound checking - end(*unsafe { self.rules.get_unchecked(indx) }) >= val + end(*unsafe { self.rules.get_unchecked(index) }) >= val } } ```