Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "blog",
"image": "mcr.microsoft.com/devcontainers/base:debian-12@sha256:23fa69fed758b7927c60061317d73baf7d66b9fca5c344e80bce3a940b229af0",
"postCreateCommand": "bash .devcontainer/post-create.sh",
"customizations": {
"vscode": {
"extensions": [
"blueglassblock.better-json5",
"dprint.dprint",
"foxundermoon.shell-format",
"redhat.vscode-yaml",
"timonwong.shellcheck"
],
"settings": {
"git.postCommitCommand": "none"
}
}
}
}
{
"name": "blog",
"image": "mcr.microsoft.com/devcontainers/base:debian-12@sha256:23fa69fed758b7927c60061317d73baf7d66b9fca5c344e80bce3a940b229af0",
"postCreateCommand": "bash .devcontainer/post-create.sh",
"customizations": {
"vscode": {
"extensions": [
"blueglassblock.better-json5",
"dprint.dprint",
"foxundermoon.shell-format",
"redhat.vscode-yaml",
"timonwong.shellcheck"
],
"settings": {
"git.postCommitCommand": "none"
}
}
}
}
85 changes: 85 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# Line endings for this repository, bootstrapped by DevSecNinja/.github
# config-sync (config-sync/templates/.gitattributes). Config-sync adds it only
# when the repository has no .gitattributes and never overwrites it: the
# repository owns this file. Add repository-specific rules at the end; later
# lines win. Based on the shared ~/.gitattributes in DevSecNinja/dotfiles
# (home/dot_gitattributes).

# LF in the repository and in every checkout, on every OS. A path that needs
# CRLF gets its own rule below, for example:
# *.ps1 text eol=crlf CRLF in the checkout, LF in the repository
# *.ics -text stored byte for byte (RFC 5545 calendars need CRLF)
# The shared Lint workflow (lint-line-endings) fails on text files committed
# with CRLF, except -text paths.
* text=auto eol=lf

# Scripts stay LF even when a repository changes the default above.
*.bash text eol=lf
*.fish text eol=lf
*.ksh text eol=lf
*.sh text eol=lf
*.zsh text eol=lf

# cmd.exe misreads labels and GOTO in batch files with LF line endings.
*.bat text eol=crlf
*.cmd text eol=crlf

# A patch keeps the line endings of the files it changes.
*.patch -text

# SVG is XML: text, not binary.
*.svg text

# Binary files: no line-ending conversion and no text diff.
# Images
*.avif binary
*.eps binary
*.gif binary
*.ico binary
*.jpeg binary
*.jpg binary
*.png binary
*.tif binary
*.tiff binary
*.webp binary
# Documents
*.docx binary
*.pdf binary
*.pptx binary
*.xlsx binary
# Fonts
*.eot binary
*.otf binary
*.ttf binary
*.woff binary
*.woff2 binary
# Audio and video
*.mp3 binary
*.mp4 binary
*.wav binary
*.webm binary
# Archives
*.7z binary
*.bz binary
*.bz2 binary
*.bzip2 binary
*.gz binary
*.lz binary
*.lzma binary
*.rar binary
*.tar binary
*.taz binary
*.tbz binary
*.tbz2 binary
*.tgz binary
*.tlz binary
*.txz binary
*.xz binary
*.Z binary
*.zip binary
*.zst binary
# Executables and libraries
*.dll binary
*.dylib binary
*.exe binary
*.so binary
24 changes: 12 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Hugo build output
public/
resources/
# Hugo lock file
.hugo_build.lock
# OS files
.DS_Store
Thumbs.db
# Other app files
# Hugo build output
public/
resources/

# Hugo lock file
.hugo_build.lock

# OS files
.DS_Store
Thumbs.db

# Other app files
bin/
78 changes: 39 additions & 39 deletions .lefthook.toml
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
[pre-commit]
parallel = true
[pre-commit.commands.actionlint]
run = "mise exec -- actionlint {staged_files}"
glob = [".github/workflows/*.yml", ".github/workflows/*.yaml"]
[pre-commit.commands.format-yaml]
run = "mise exec -- yamlfmt {staged_files}"
glob = ["**/*.yaml", "**/*.yml"]
stage_fixed = true
[pre-commit.commands.gitleaks]
run = "mise exec -- gitleaks protect --staged --redact"
[pre-commit.commands.shellcheck]
run = "mise exec -- shellcheck {staged_files}"
glob = ["**/*.sh"]
[pre-commit.commands.shfmt]
run = "mise exec -- shfmt --write {staged_files}"
glob = ["**/*.sh"]
stage_fixed = true
[pre-commit.commands.yamllint]
run = "mise exec -- yamllint {staged_files}"
glob = ["**/*.yaml", "**/*.yml"]
[pre-commit.commands.zizmor]
run = "mise exec -- zizmor {staged_files}"
glob = [".github/workflows/*.yml", ".github/workflows/*.yaml"]
[pre-commit.commands.dprint]
run = "mise exec -- dprint fmt {staged_files}"
glob = ["**/*.md"]
stage_fixed = true
[commit-msg.commands.cocogitto]
run = "mise exec -- cog verify \"$(cat {1})\""
[pre-commit]
parallel = true

[pre-commit.commands.actionlint]
run = "mise exec -- actionlint {staged_files}"
glob = [".github/workflows/*.yml", ".github/workflows/*.yaml"]

[pre-commit.commands.format-yaml]
run = "mise exec -- yamlfmt {staged_files}"
glob = ["**/*.yaml", "**/*.yml"]
stage_fixed = true

[pre-commit.commands.gitleaks]
run = "mise exec -- gitleaks protect --staged --redact"

[pre-commit.commands.shellcheck]
run = "mise exec -- shellcheck {staged_files}"
glob = ["**/*.sh"]

[pre-commit.commands.shfmt]
run = "mise exec -- shfmt --write {staged_files}"
glob = ["**/*.sh"]
stage_fixed = true

[pre-commit.commands.yamllint]
run = "mise exec -- yamllint {staged_files}"
glob = ["**/*.yaml", "**/*.yml"]

[pre-commit.commands.zizmor]
run = "mise exec -- zizmor {staged_files}"
glob = [".github/workflows/*.yml", ".github/workflows/*.yaml"]

[pre-commit.commands.dprint]
run = "mise exec -- dprint fmt {staged_files}"
glob = ["**/*.md"]
stage_fixed = true

[commit-msg.commands.cocogitto]
run = "mise exec -- cog verify \"$(cat {1})\""
12 changes: 6 additions & 6 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"recommendations": [
"editorconfig.editorconfig",
"dprint.dprint"
]
}
{
"recommendations": [
"editorconfig.editorconfig",
"dprint.dprint"
]
}
60 changes: 30 additions & 30 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
{
"editor.defaultFormatter": "dprint.dprint",
"editor.formatOnSave": true,
"files.autoSave": "onWindowChange",
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/*/**": true,
"**/.hugo_build.lock": true
},
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
"**/Thumbs.db": true
},
"search.exclude": {
"**/.git": true,
"**/node_modules": true,
"**/public": true,
"**/resources": true
},
"[markdown]": {
"editor.defaultFormatter": "dprint.dprint"
},
"[shellscript]": {
"editor.defaultFormatter": "foxundermoon.shell-format",
"editor.formatOnSave": true
},
"git.postCommitCommand": "sync"
}
{
"editor.defaultFormatter": "dprint.dprint",
"editor.formatOnSave": true,
"files.autoSave": "onWindowChange",
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/*/**": true,
"**/.hugo_build.lock": true
},
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
"**/Thumbs.db": true
},
"search.exclude": {
"**/.git": true,
"**/node_modules": true,
"**/public": true,
"**/resources": true
},
"[markdown]": {
"editor.defaultFormatter": "dprint.dprint"
},
"[shellscript]": {
"editor.defaultFormatter": "foxundermoon.shell-format",
"editor.formatOnSave": true
},
"git.postCommitCommand": "sync"
}
40 changes: 20 additions & 20 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
MIT License
Copyright (c) 2026 Jean-Paul van Ravensberg
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
MIT License

Copyright (c) 2026 Jean-Paul van Ravensberg

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading
Loading