From d2b37ab3930d687849b5629ef75832eb4e0d7ea3 Mon Sep 17 00:00:00 2001 From: Joao P Dubas Date: Wed, 28 May 2025 18:50:24 +0000 Subject: [PATCH] chore: minor random updates (#240) * Add `tmuxp` configuration to access local `raspberry pi` cluster * Configure editor behaviour through `editorconfig` * Fix format for `24-bit-color` script * Add volume for `supermaven` data * Remove the `ANTHROPIC_API_KEY` environment variable Reviewed-on: https://gitea.dubas.dev/joao.dubas/ide/pulls/240 Co-authored-by: Joao P Dubas Co-committed-by: Joao P Dubas --- .editorconfig | 28 ++++++++++++++++++++++++++++ config/tmuxp/rpi.yml | 14 ++++++++++++++ docker-compose.yml | 3 ++- scripts/24-bit-color.sh | 2 +- 4 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 .editorconfig create mode 100644 config/tmuxp/rpi.yml diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..3a45996 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,28 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[Makefile] +indent_style = tab +indent_size = 4 + +[*.lua] +indent_style = space +indent_size = 2 +quote_style = single + +[*.md] +trim_trailing_whitespace = false +max_line_length = 80 + +[*.sh] +indent_style = tab +indent_size = 4 + +[*.yml] +indent_style = space +indent_size = 2 diff --git a/config/tmuxp/rpi.yml b/config/tmuxp/rpi.yml new file mode 100644 index 0000000..4552d9c --- /dev/null +++ b/config/tmuxp/rpi.yml @@ -0,0 +1,14 @@ +--- +session_name: rpi +start_directory: /opt/personal +windows: + - window_name: rpi + focus: true + layout: tiled + start_directory: labs + panes: + - focus: true + shell_command: ssh rpi00 + - shell_command: ssh rpi01 + - shell_command: ssh rpi02 + - shell_command: ssh rpi03 diff --git a/docker-compose.yml b/docker-compose.yml index b6dda0b..d3496bf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,7 +14,6 @@ services: entrypoint: sleep command: infinity environment: - ANTHROPIC_API_KEY: ${NVIM_ANTHROPIC_API_KEY:-no-api} GH_TOKEN: &github_token ${NVIM_GH_TOKEN:-no-token} GITHUB_TOKEN: *github_token COMPOSE_BAKE: 'true' @@ -33,6 +32,7 @@ services: - 'home_local_share:/home/coder/.local/share' - 'home_local_state:/home/coder/.local/state' - 'home_plugins_tmux:/home/coder/.config/tmux/plugins' + - 'home_supermaven:/home/coder/.supermaven' chroma: image: 'ghcr.io/chroma-core/chroma:1.0.10' @@ -52,4 +52,5 @@ volumes: home_local_share: {} home_local_state: {} home_plugins_tmux: {} + home_supermaven: {} chroma_data: {} diff --git a/scripts/24-bit-color.sh b/scripts/24-bit-color.sh index 01236b4..e425d8f 100755 --- a/scripts/24-bit-color.sh +++ b/scripts/24-bit-color.sh @@ -23,7 +23,7 @@ resetOutput() # $red $green and $blue are integers # ranging between 0 and 255 inclusive rainbowColor() -{ +{ let h=$1/43 let f=$1-43*$h let t=$f*255/43